Quote:
Here's the one I use:
#showtooltip Shackle Undead
/stopcasting [nobutton:2]
/clearfocus [button:2]
/stopmacro [button:2]
/focus [target=focus, noexists]; [target=focus, dead]
/cast [target=focus,exists,nodead] Shackle Undead
What this does:
Target the mob you want to shackle. Click the button. You will make that target your focus & cast shackle all in that one click.
Now you can target other mobs if you like to start doing your DPS, etc. When you want to re-shackle your focus target, just click the button again - no retargeting is necessary.
If you find you ever need to switch focus, Right-Click the button to clear the focus target if the original focus is still alive. If it's dead, no worries - just click the button as normal & it will make that new target your current focus as well as cast your shackle.
FYI to those with Warlock alts - this same macro also works perfectly with Banish & Fear. I imagine the same with Polymorph for mages.
#showtooltip Shackle Undead
/stopcasting [nobutton:2]
/clearfocus [button:2]
/stopmacro [button:2]
/focus [target=focus, noexists]; [target=focus, dead]
/cast [target=focus,exists,nodead] Shackle Undead
What this does:
Target the mob you want to shackle. Click the button. You will make that target your focus & cast shackle all in that one click.
Now you can target other mobs if you like to start doing your DPS, etc. When you want to re-shackle your focus target, just click the button again - no retargeting is necessary.
If you find you ever need to switch focus, Right-Click the button to clear the focus target if the original focus is still alive. If it's dead, no worries - just click the button as normal & it will make that new target your current focus as well as cast your shackle.
FYI to those with Warlock alts - this same macro also works perfectly with Banish & Fear. I imagine the same with Polymorph for mages.
I would like to make more use of macros, and part of being able to do this is understanding what each instruction accomplishes. Most of this I can figure out, but specifically, what do the [nobutton:2] and [button:2] references accomplish? - Why are they there and what do they do?
I can see that the lines
/focus [target=focus, noexists]; [target=focus, dead]
/cast [target=focus,exists,nodead] Shackle Undead
work as an if/then setting focus on the target if it exists (not dead) and casting shackle undead upon it. But the button:2 part stumps me however.