Heal Buster PVP (A) by Jaseowns
# Heal Buster PVP by Jaseowns
# UO Outlands
@setvar! checkLastTarget lasttarget
@setvar! checkSelf self
@setvar! cdMagicArrow 5000
@setvar! cdHarm 5000
@setvar! cdBall 5000
if not timerexists magicArrowTimer
createtimer magicArrowTimer
settimer magicArrowTimer cdMagicArrow
endif
if not timerexists harmTimer
createtimer harmTimer
settimer harmTimer cdHarm
endif
if not timerexists ballTimer
createtimer ballTimer
settimer ballTimer cdBall
endif
if targetexists 'beneficial' or targetexists 'neutral'
hotkey 'Cancel Current Target'
endif
if timer magicArrowTimer >= cdMagicArrow
while not targetexists 'harmful'
cast 'Magic Arrow'
endwhile
if checkLastTarget = checkSelf
overhead "Not gonna blow yourself up" 34
while targetexists
wait 50
endwhile
else
target lasttarget
endif
settimer magicArrowTimer 0
cooldown FirstCircle cdMagicArrow
elseif timer harmTimer >= cdHarm
while not targetexists 'harmful'
cast 'Harm'
endwhile
if checkLastTarget = checkSelf
overhead "Not gonna blow yourself up" 34
while targetexists
wait 50
endwhile
else
target lasttarget
endif
settimer harmTimer 0
cooldown SecondCircle cdHarm
elseif timer ballTimer >= cdBall
while not targetexists 'harmful'
cast 'Fireball'
endwhile
if checkLastTarget = checkSelf
overhead "Not gonna blow yourself up" 34
while targetexists
wait 50
endwhile
else
target lasttarget
endif
settimer ballTimer 0
cooldown ThirdCircle cdBall
endif