Target Last Target Macro Help

Is there a way to have a macro execute a target command and when you click it again, have it execute a target last target command? What i’m trying to do is have my /tar dutiful attendant macro swap back to my last target after i click it again when the attendant dies.

/cleartarget [exists]
/targetexact Dutiful Attendant
/targetlasttarget [noexists]

You could also do…

/cleartarget
/targetexact Dutiful Attendant
/stopmacro [exists]
/targetexact First Priority Boss Name
/stopmacro [exists]
/targetexact Second Priority Boss Name
1 Like

Let me try to understand the second macro, please correct me if i’m wrong :] When I use it the first time, it will target the Dutiful Attendant and stop the macro there if that target exists. When I use it again, since the attendant no longer exists, it will move to the first priority and stop there if that target exists, so on and so forth?

Correct.

You could probably simplify it to the following if you wanted to

/targetexact Second Priority Boss Name
/targetexact First Priority Boss Name
/targetexact Dutiful Attendant

I’ve come across a snag with this. The macro is targeting the body of the dutiful attendant instead of targeting my first priority target. Is there a way to circumvent the targeting of the dead body?

I currently have this going:

/cleartarget
/targetexact Dutiful Attendant
/stopmacro [exists]
/targetexact Baroness Frieda
/stopmacro [exists]
/targetexact Lord Stavros
/stopmacro [exists]
/targetexact Castellan Niklaus

would adding a [dead] conditional here do the trick?

/cleartarget
/targetexact Dutiful Attendant
/stopmacro [exists][dead]

nodead not dead

/cleartarget
/targetexact Dutiful Attendant
/stopmacro [harm,nodead]
/targetexact Baroness Frieda
/stopmacro [harm,nodead]
/targetexact Lord Stavros
/stopmacro [harm,nodead]
/targetexact Castellan Niklaus
2 Likes

Works like a charm!