Code: Select all
Sub Main
:LoopStart
/press F1
/varset v$target(Name)1 $target(hp,pct)
:F2
/press F2
/Call MemberExist
:F3
/press F3
/Call MemberExist
:F4
/press F4
/Call MemberExist
:F5
/press F5
/Call MemberExist
:F6
/press F6
/Call MemberExist
Sub MemberExist
/If $target()=="TRUE" {
/Call Scan
} Else /If $target()=="FALSE" {
/Call Scan
Sub Scan
/echo Scanning Classes
/If $target(Class)=="Bard"
/If $target(Class)=="Beastlord"
/If $target(Class)=="Cleric"
/If $target(Class)=="Druid"
/If $target(Class)=="Enchanter"
/If $target(Class)=="Magician"
/If $target(Class)=="Necromancer"
/If $target(Class)=="Shaman"
/If $target(Class)=="Wizard"
/varset v$target(Name) 1
/varset v$target(Name)1 $target(hp,pct)
/Call Heal
} Else /If $target(Class)=="Monk"
/If $target(Class)=="Paladin"
/If $target(Class)=="Ranger"
/If $target(Class)=="Rogue"
/If $target(Class)=="Shadow Knight"
/If $target(Class)=="Warrior"
/varset v$target(Name) 0
/varset v$target(Name)1 $target(hp,pct)
/Call Heal
Sub Heal
/If v$target(Name)1<=60 And
/If v$target(Name)==0 {
/Call CompleteHeal
} Else /If v$target(Name)1<=60 And
/If v$target(Name)==1 {
/Call FastHeal
}
/If v$target(Name)1<=40 {
/Call FastHeal
}
Sub FastHeal
/sit off
/cast 2
/delay 50
/sit On
/GoTo :LoopStart
Sub CompleteHeal
/sit off
/cast 4
/delay 120
/sit On
/GoTo :LoopStart
Sub GroupHeal
/sit off
/cast 3
/delay 60
/sit On
/GoTo :LoopStart

