I was never able to get this to work.
I went into my Everquest game and created a Social Hotkey
Name : Target
/declare cycletarget string outer yes
/if (${Target.PctHPs}<20 && ${Target.ID}==${Me.XTarget[1].ID} && ${cycletarget.Equal[yes]}) /target id ${Me.XTarget[2].ID}
/if...