Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Macro with Basic Operations?
#1
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)
Reply
#2
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...#internals
Reply
#3
Thanks Mega, works little similar, thanks!
closed thread please.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)