Useful Macro Templates

You could also setup an @NAME macro but it’ll require updating it each time the tank has a different name. There’s a 2 macro setup that can automate that for you.

Create a blank macro called MD

Create a 2nd macro called Set MD with the following:

/run local n=UnitName("target") or "pet" if not InCombatLockdown() then EditMacro(GetMacroIndexByName("MD"),nil,nil,"#showtooltip\n/cast [@"..n..",help,nodead] [@pet,exists] [] Misdirection") print("Misdirection target set to "..n) end

Target the tank and hit Set MD. It’ll populate their name and the rest in MD then use that to cast on the tank.

Amazing!!!

Do you know a tutorial or a user guide to learn about WoW Macros?

Nope. I recommend reading through Adreaver’s stickied post.

2 Likes

macros work the first thing they see true, how is cast and use different in application when the first thing true would be a spell anyway?

There are some spells and items that have identical names.

eg
https://www.wowhead.com/item=7676/thistle-tea
https://www.wowhead.com/spell=381623/thistle-tea

https://www.wowhead.com/item=140749/horn-of-winter
https://www.wowhead.com/spell=57330/horn-of-winter

Is there a way to shorten this to save characters?

/stopmacro [channeling:Mind Flay: Insanity][channeling:Void Torrent][channeling:Penance][channeling:Dark Reprimand]

/stopmacro [channeling:Mind Flay: Insanity/Void Torrent/Penance/Dark Reprimand]

added that variant to the quoted post.

1 Like

I want this macro to cast Purify or Purify Disease on my alive friendly target if I have one. And cast on myself if I hold alt, have no target, or have an enemy target.

This macro works as expected, but can it be shortened at all?

#showtooltip [known:Purify] Purify; Purify Disease
/cast [mod:alt,@player] [help,nodead] [@player] [known:Purify] Purify
/cast [mod:alt,@player] [help,nodead] [@player] Purify Disease

Also without the extra tooltip stuff, only the Purify icon/tooltip is shown as Disc but Purify Disease is not as Shadow.

Purify Disease automatically becomes Purify so there’s no need to code them separately.

#showtooltip
/cast [mod:alt,@player] [help,nodead] [@player] Purify Disease
1 Like