Code: Select all
#include spellsub.inc
#event aebolt "Your Envenomed Bolt spell has worn off."
#event avos "Your Venom of the Snake spell has worn off."
#event aroot "Your Immobilize spell has worn off."
#event aslow "Your Turgur's Insects spell has worn off."
#event ahaste "Your pet's Alacrity spell has worn off."
#event attacked "YOU for"
#define fighting v1
#define ebolt v2
#define vos v3
#define root v4
#define slow v5
#define haste v6
Sub Main
/zapvars
:mainloop
/varset ebolt 0
/varset vos 0
/varset root 0
/varset slow 0
/call Downtime
/call Fighting
/goto :mainloop
/return
Sub Downtime
/sit off
/sit on
:downloop
/doevents
/if n $fighting==1 /return
/if $char(buff,"Chloroplast")==0 {
/sit off
/target myself
/call SpellSub "Chloroplast"
/sit on
/press Esc
/goto :downloop
}
/if $char(buff,"Talisman of Altuna")==0 {
/sit off
/target myself
/call SpellSub "Talisman of Altuna"
/sit on
/press Esc
/goto :downloop
}
/if $char(buff,"Alacrity")==0 {
/sit off
/target myself
/call SpellSub "Alacrity"
/sit on
/press Esc
/goto :downloop
}
/if n $haste==0 {
/sit off
/target myself
/press F1
/call SpellSub "Alacrity"
/varset haste 1
/sit on
/press Esc
/goto :downloop
}
/goto :downloop
/return
Sub Fighting
/press F8
/press F8
/press `
:fightloop
/doevents
/if $target(id)==0 {
/varset fighting 0
/return
}
/face fast nopredict
/if n $char(hp,pct)<65 /if n $char(buff,"Stoicism")==0 {
/press Tab
/call SpellSub Stoicism
/press Tab
/goto :fightloop
}
/if n $slow==0 {
/call SpellSub "Turgur's Insects"
/varset slow 1
/goto :fightloop
}
/if n $vos==0 {
/call SpellSub "Venom of the Snake"
/varset vos 1
/goto :fightloop
}
/if n $ebolt==0 {
/call SpellSub "Envenomed Bolt"
/varset ebolt 1
/goto :fightloop
}
/if n $target(distance)>20 /if n $root==0 {
/call SpellSub "Immobilize"
/varset root 1
/goto :fightloop
}
/goto :fightloop
/return
Sub Event_attacked
/varset fighting 1
/return
Sub Event_aslow
/echo slow expired
/varset slow 0
/return
Sub Event_aebolt
/echo ebolt expired
/varset ebolt 0
/return
Sub Event_avos
/echo vos expired
/varset vos 0
/return
Sub Event_aroot
/echo root expired
/varset root 0
/return
Sub Event_ahaste
/varset haste 0
/return
