|
Post by paladiex on Aug 15, 2017 21:19:57 GMT
Hi, I am trying to find a way to make a loop.
if runeLvl == upgradeNormalLmt then
return true
else return false
while false do
click(runePowerUpButton)
findRuneLvl()
end runeLvl is a value that the bot determines with the function findRuneLvl() <-- the value ranges from 1-15 and goes up but never down upgradeNormalLmt is a value set by the user 1-15
I need the bot to determine if the runeLvl is equal to the value that a user sets, if it is not then it needs to press a button then check again; and it needs to do this indefinitely.
What snippet of code would make this work like I want it to?
while (runeLvl < upgradeNormalLmt)
do
click(Location(550, 675))
wait (3)
findRuneLvl()
end The above portion did what I wanted, hope it helps anyone in a similar situation as me
|
|