Want to sit character near spawn points. Sitting will cause aggro. As soon as spawns happen, character will be attacked, causing pet to attack and combat state. Due to combat state, it will then cast a spell.
Would this work for that?
Thanks for the critique.
Would this work for that?
Code:
Sub Main
:mainLoop
/if (${Me.CombatState.NotEqual[ACTIVE]} && ${Me.State.NotEqual[SIT]}) /sit
/if (${Me.CombatState.Equal[ACTIVE]} && ${Target.ID} && {Target.Type.Equal[NPC]} /call Attack
/if (${Me.PctHPs}<20) /call Feign
/goto :mainLoop
/end
Sub Attack
/echo ${Target.CleanName} doesn't stand a chance!
:attack
/if (${Target.ID} && ${Target.PctHPs}>5) /cast 1
/delay 4s
/goto :attack
Sub Feign
/echo Umm.. you suck!
:feigndeath
/cast 8
/delay 2s
/if (!${Me.Feigning}) /goto :feigndeath
else /if (${Me.Feigning}) /goto :feigned
:feigned
/echo Whew! That was close!
/if (${Me.PctHPs}<70) /delay 5m
else /if (${Me.PctHPs}>70 && ${Me.CombatState.NotEqual[ACTIVE]}) /stand
/goto :feigned
/return
Thanks for the critique.
Last edited: