Basicly I want my pet to kill and if the mob is below 40% health I blast him away till dead. then loot... seems fairly simple... but cant test it yet cus im at work.. ( working hard huh ) input welcome!!
Code: Select all
sub CombatSub
/if $target()=="FALSE" { |Get the target
/varset HasTarget 0
/return
}
:combatloop
/face fast nopredict |Face the target
/pet attack
/if $target(hp,pct)<=40 {
/cast 2
/delay 3s
}
/if n $target(id)==0 /varset TargetDead 1 |target dead
/if n $TargetDead!=1 /goto :combatloop |target still alive
/delay 1s
/target corpse $MobToHunt
/return

