I can not take credit for this one, but it might come in handy.
:Loop
/call GMCheck
/hidec all
/target npc
/if (${Range.Between[1,355:${Target.Distance}]}) {
/delay 1s
/pet attack
} else {
/target clear
/echo no tragets in range
}
/delay 2s
/goto :Loop
/return
| -------------------------------------------------------------------------------------
| SUB : Check for GM's
| -------------------------------------------------------------------------------------
Sub GMCheck
/if (${Spawn[gm].ID}) {
/beep
/beep
/echo GM entered the zone!
/echo For safety reasons the macro is ending...
/endmacro
}
/return
:Loop
/call GMCheck
/hidec all
/target npc
/if (${Range.Between[1,355:${Target.Distance}]}) {
/delay 1s
/pet attack
} else {
/target clear
/echo no tragets in range
}
/delay 2s
/goto :Loop
/return
| -------------------------------------------------------------------------------------
| SUB : Check for GM's
| -------------------------------------------------------------------------------------
Sub GMCheck
/if (${Spawn[gm].ID}) {
/beep
/beep
/echo GM entered the zone!
/echo For safety reasons the macro is ending...
/endmacro
}
/return