|powerlevel.mac by lep18, heal code taken from healtarget.mac by Macrofest (Thanks Macrofest!)
--Modified by blade2580--
#turbo 40
#include spellcast.inc
#chat tell
#event temp "#*#Your Resolution spell has worn off of#1#"
#event magic "#*#Your Symbol of Naltron spell has worn off of#1#"
#event gate "#*#You have insufficient mana to cast this spell#1#"
#event conv "#*#Your conviction fades#*#
#event armor "#*#The zealous aura fades#*#
#event spell "#*#Your thoughts slow#*#
#event damage "#*#tells you, 'damage shield'#*#
#event root "#*#tells you, 'root'#*#
#chat tell
/echo usage /MAC PL
/echo Target the PLee
Sub Main
|/declare Plee String Outer ${Target.ID}
:loop
/doevents
/if (${Me.PctHPs}<20) /gate
/if (${Me.Casting.ID}) /goto :loop
/target Newb01
/if (${Target.PctHPs}<40) {
/goto :heal
} else {
/goto :loop
}
:heal
/doevents
/cast 4
/doevents
/doevents
/if (${Me.Standing} && !${Me.Mount.ID}) /sit
}
/goto :loop
Sub Event_temp
/target Newb01
/call cast "Resolution"
/return
Sub Event_magic
/target Newb01
/call cast "Symbol of Naltron"
/return
Sub Event_conv
/target Cleric01
/call cast "Conviction"
/return
Sub Event_armor
/target Cleric01
/call cast "Armor of the Zealot"
/return
Sub Event_spell
/target Cleric01
/call cast "Blessing of Devotion"
/return
Sub Event_damage
/assist Newb01
/delay 1s
/call cast "Mark of the Blameless"
/delay 2s
/return
Sub Event_root
/assist Newb01
/delay 1s
/call cast "Immobilize"
/delay 2s
/return
Sub Event_gate
/gate
/endmacro
/return