BBot - The best bot of the world
Macro with Basic Operations? - 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 with Basic Operations? (/thread-17525.html)



Macro with Basic Operations? - Garuh - 02-19-2015

its possible make the basic operations with variables in one macro?

For Example:
Code:
A:=1
B:=2
C:=(!A!+!B!)
Self.Say(!C!)

Code:
[b]Garuh[/b]: 3

For what?
  1. for example, one char are walking, when pass for Xplace for 2 times, change the way for other Yplace, when pass for the Yplace 3times, back to Xplace.
    when the times of Xcave + Ycave >= 10, go Zplace to hunt...
  2. logout char1 & relog char2 & relog char 9, etc etc.
  3. Check balance, balance=Self.Balance(), transfer=!balance!-500, transfer !transfer!

this is a small piece of so many aplications of this basic operation...


but is possible make basic operations?
if its not possible, who can make the same thing? (make additions or subtractions)



RE: Macro with Basic Operations? - MegaNo0body - 02-19-2015

It's a shame, but the current Macro Engine doesn't support that.

You have to use the helper functions: http://wiki.bmega.net/doku.php?id=macros_commands#internals


RE: Macro with Basic Operations? - Garuh - 02-19-2015

Thanks Mega, works little similar, thanks!
closed thread please.