The usage is as follows:
add the #include Gmcheck line to the macro, before the main SUB command.
then add a /call Gmcheck as the first command of your main loop in your macro.
This snippet will detect the GM, and issue 3 beeps, do a screen popup and then end your macro.
Alternatively, if you want to have your toons attempt to camp out, add a /quit line right after the /endmacro line.
Code: Select all
|--------------------------------------------------------------------------------
|SUB: GM in zone Check
|--------------------------------------------------------------------------------
Sub Gmcheck
/if (${Spawn[gm].ID}) {
/beep
/beep
/beep
/echo GM has entered the zone!
/popup A GM has entered the zone, shutting down macros
/endmacro
}
/return



