Macro - Printable Version +- BBot - The best bot of the world (https://forums.bmega.net) +-- Forum: Support (https://forums.bmega.net/forum-6.html) +--- Forum: Support & Help (https://forums.bmega.net/forum-8.html) +--- Thread: Macro (/thread-14707.html) |
Macro - BenQ - 04-19-2014 I been trying to do this for a long time..... Start-Of-Macro Creatures.ByNameBeside(Corym Vanguard) returned 0 !CorymVanguard! has been set to 0 Creatures.ByNameBeside(Corym Skirmisher) returned 0 !CorymSkirmisher! has been set to 0 Self.Level() returned 69 [True] Self.Level()>=35 Self.Mana() returned 244 [True] Self.Mana()>=115 Self.Health%() returned 88 [True] Self.Health%()>55 VarAdd(CorymVanguard, !CorymSkirmisher!) returned 1 [False] VarAdd(CorymVanguard, !CorymSkirmisher!)>=3 [@] Exit of macro End-Of-Macro Why would the macro always return 1 when it adds the 2 values even if its 0 0 it will still be 1, or even if it will be 1 and 2 it will be still 1, any clue why? RE: Macro - mr. Kris - 04-19-2014 0 - false 1 - true in procesor language RE: Macro - MegaNo0body - 04-19-2014 (04-19-2014, 05:15 PM)mr. Kris Wrote: 0 - false Returno 1 because the function worked, varadd always return 1. The sum result is stored on the first param, varname. RE: Macro - BenQ - 04-20-2014 So how would i make the bot execute the script if the calculation of 2 numbers is greater than 3? (!CorymVanguard!)<=3 something like that ? im not sure :p RE: Macro - BenQ - 04-22-2014 bumpbumper??????????????????????????????????? Re: Macro - MegaNo0body - 04-22-2014 Var1:=Creatures.ByNameRange(Mob1) Var2:=Creatures.ByNameRange(Mob1) Sum:=!Var1! VarAdd(Sum, !Var2!) !Sum!>=3 Sent using Tapatalk |