Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[MACRO] Loops
#1
Can i use any loops in macros? If, while, etc. ? I don't see any of that in bbot wiki with functions and variables.
Reply
#2
Hi,

First of all, Macro was not designed to be a kind of scripting language, so no, no native support for it. But you can archive it working with the Condition engine:

Self.Health()==100 [NotHealth100]
Self.Say(My life is 100)
Exit()
{NotHealth100}
Self.Say(My life is not 100)

You can use the condition to jump around the macro ([ElseLabel] {Label}).

But remember: Macros are for simpler things, for more complex things it's expected to have a easier function.
Reply
#3
but if u fully understand how conditions work u can make pretty complex and long macros ;d
like i used to do ;d

My longest macro was over 250 lines, but now its useless, since thing it did is now one of bot build in fuctions
Reply
#4
(07-13-2016, 07:24 PM)Catar Wrote: My longest macro was over 250 lines, but now its useless, since thing it did is now one of bot build in fuctions

More info, please! haha
Reply
#5
(07-13-2016, 07:29 PM)MegaNo0body Wrote:
(07-13-2016, 07:24 PM)Catar Wrote: My longest macro was over 250 lines, but now its useless, since thing it did is now one of bot build in fuctions

More info, please! haha

Anti rs one? Remember? Had to add each sqm position that I didn't want my bot to aoe
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)