Moderator: MacroQuest Developers
Code: Select all
|
| Example Macro
|
#turbo 50
#Event DoSub "[MQ2] DoSub"
Sub Main
:MainLoop
/doevents
/delay 0
/goto :MainLoop
/return
Sub Event_DoSub
all of your code here
/return

Code: Select all
/if n @SomeVariable==1 /call SomeSub
/return
Sub SomeSub
blah blah blah
..
...
/varset SomeVariable 0
/return