Name: rootdot.mac
|
|
|Requires spell_routines.inc by rusty, and the following:
|Breath of Wunshi, Curse of Sisslak
#include spell_routines.inc
#event wCurse "#*#Your Curse of Sisslak spell has worn off #*#"
#event wBreath "#*#Your Breath of Wunshi spell has worn off #*#"
|#event wRoot "#*#Your Petrifying Earth spell has worn off #*#"
#event rCurse "Your target resisted the Curse of Sisslak spell."
#event rBreath "Your target resisted the Breath of Wunshi spell."
|#event rRoot "Your target resisted the Petrifying Earth spell."
#event Done "You gain experience!!"
#event ImHit "|${Target.CleanName}|#*#YOU for#*#"
|
| Main Sub
|--------------------------------
sub Main
/popup Destroying targets...
| /declare cRoot int outer 0
/declare cCurse int outer 0
/declare cBreath int outer 0
| Call Mount
/call Cast "White Drum" item
/delay 5s
| Setting spells to cast...
/varset cCurse 1
/varset cBreath 1
:mainloop
/doevents
/call GMcheck
/assist bardsnamehere
/if (${Target.ID} && ${Target.PctHPs}<=95) /goto :castloop
/delay 5
/goto :castloop
/endmacro
:castloop
/doevents
/call dotcheck
| Casting Block
|-------
/if ( ${cCurse} && ${Me.SpellReady["Curse of Sisslak"]} ) {
/call cast "Curse of Sisslak"
/varset cCurse 0
/call dotcheck
}
/if ( ${cBreath} && ${Me.SpellReady["Breath of Wunshi"]} ) {
/call cast "Breath of Wunshi"
/varset cBreath 0
/call dotcheck
}
/goto :mainloop
/endmacro
Sub GMcheck
/if (${Spawn[gm].ID}) {
/echo GM detected
/mqlog GM detected, Exiting the game now.
/beep
/beep
/beep
/exit
/endmac
}
/return
|
| dotcheck
|-----------------------------------------
sub dotcheck
/return
|
| Wear Off Events
|--------------------------------
sub Event_wRoot
/varset cRoot 1
/return
sub Event_wCurse
/varset cCurse 1
/return
sub Event_wBreath
/varset cBreath 1
/return
|
| Resist Events
|--------------------------------
sub Event_rRoot
/varset cRoot 1
/return
sub Event_rCurse
/varset cCurse 1
/return
sub Event_rBreath
/varset cBreath 1
/return
|----------------------
|- Feign Death sub
|----------------------
sub Event_ImHit
/popup Oh no!
/call cast "Death Peace" alt
/delay 130s
/return
|
| Other Events
|---------------------
|sub Event_dostuff
|
|
|/return
sub Event_Done
| All Done
/popup All done, the target is dead..
/endmacro