Code: Select all
| - clericAH.mac -
| By powerspike
| Basic group auto heal script
|edited by Draekz
#include spellsub.mac
Sub Main
/press ESC
/press F1
/if "$target()"=="TRUE" /varset v7 0
/press ESC
/press F2
/if "$target()"=="TRUE" /varset v7 1
/press ESC
/press F3
/if "$target()"=="TRUE" /varset v7 2
/press ESC
/press F4
/if "$target()"=="TRUE" /varset v7 3
/press ESC
/press F5
/if "$target()"=="TRUE" /varset v7 4
/press ESC
/press F6
/if "$target()"=="TRUE" /varset v7 5
/press ESC
:LoopStart
/delay 1
|/echo $v7 --
/for v40 0 to $v7
/delay 5
/if n $v40==0 /press F1
/if n $v40==1 /press F2
/if n $v40==2 /press F3
/if n $v40==3 /press F4
/if n $v40==4 /press F5
/if n $v40==5 /press F6
/varset v59 $target(hp,pct)
| the if statement checks to see if HP are under 50% on the target if so stand heal and sit
/if n $v59<=48 { /goto :Heal
} else /if n $v59>=90 {
/delay 0
}
/next v40
/goto :LoopStart
/return
:Heal
/if n $target(class)=="Enchanter" /goto :Casters
/if n $target(class)=="Magician" /goto :Casters
/if n $target(class)=="Wizard" /goto :Casters
/if n $target(class)=="Druid" /goto :Casters
/if n $target(class)=="Shaman" /goto :Casters
/if n $target(class)=="Cleric" /goto :Casters
/else if n $target(class)=="Monk", "Warrior", "Shadow Knight", "Paladin" /goto :CHeal
/return
:Casters
/delay 5
/sit off
/gsay SHealing $target(name)
/cast "Superior Heal"
/delay 5
/sit on
/next v40
/goto :LoopStart
/return
:CHeal
/delay 5
/sit off
/gsay Complete Healing $target(name)
|THis casts Complete Heal
/cast "Complete Heal"
|This is Delay between beginning the CHeal cast and the time when it sits down
/delay 10
/sit on
/next v40
/goto :LoopStart
/return
Any help would be appreciated :) Just starting to try and get a grip on this scripting stuff.
This script originally used spellsub.mac, but i didnt see much sense in using it (mebbe you can point out why i should use it with an example :))
Anyway, Thanks for any help! Its much appreciated!
Draekz

