what I would like is a
/target <myname>
if health < 60% go to heal owner
:healowner
/target owner
/pause 5
/cast 8
/pause 100
return
Just need help with the health part.
I can add it to the loop
so you know the code im using....
Code: Select all
|CLERIC TANK.mac
|
#include routines.mac
Sub Main
/varset v80 0
:Autokill
/call SelectTarget
/if "$target()"=="FALSE" /goto :WaitASec
/if "$target(type)"=="NPC" /call AttackAndFollow
:WaitASec
/call Rest
/goto :AutoKill
/return
Sub SelectTarget
/press esc
/for v81 1 to 5
/if "$target()"=="TRUE" /return
/delay 5
/doevents
/assist owner
/delay 5
/return
Sub AttackAndFollow
/varset v90 $target(id)
/echo Going after $target(name)...
/face
/attack on
/varset t0 5m
:CloserAF
/if "$target(id)"!="$v90" /goto :EndAF
/if n $target(distance)>13 /call AutoRun 1
/if n $target(distance)<15 /call cast
/if n $t0==0 /press esc
/if n $char(hp,pct)<30 /press esc
/face
/doevents
/goto :CloserAF
sub cast
/call AutoRun 0
/cast 1
/delay 10
/doability 1
/delay 15
/return
:EndAF
/call AutoRun 0
/attack off
/endmacro
/return
Sub Rest
/return
Sub Event_Death
/mqlog You died ;(
/return
Sub Event_SkillUp
/mqlog Your '$p0' went up: $p1
/return
Sub Event_Level
/return

