Moderator: MacroQuest Developers
Code: Select all
/if $pressed(alt) /goto :mainloopCode: Select all
#event talking_to_self "Talking to yourself again?"
Sub Main
:LOOP
/doevents
/goto :LOOP
/return
/end macro
Sub Event_talking_to_self
/delay 5s
/return
Code: Select all
:WaitLoop
/delay 1s
/if $char(state)==DUCK /goto :WaitLoop
Code: Select all
Sub Main
/call CastSpell
/return
Sub CastSpell
[color=red]:Loop
/delay 1
/if $char(ismoving)==TRUE /goto :Loop[/color]
/cast "Spellname"
:Loop2
/delay 1
/if $char(casting)==TRUE /goto :Loop2
/return