Patrick Bohnet (quu) wrote in worldofwarcraft,
Patrick Bohnet

Macro Fu

A guild mate wanted a quick macro to cast spells like he used to in City of Heroes, and while it is not complicated, i figured I would share what I wrote here.

Q: How do I make a macro that will cast my damage spell on my target if I have a mob targeted, or will cast the damage spell on the target of the player I have selected if it is a mob.

A: /cast [harm] [target=targettarget, harm] [] DAMAGE SPELL
That is a single line in the macro... type out the damage spell with out the rank, and it will always cast the highest rank.

What the macro does is...
[harm] if what I have targeted is harmful, then cast on the target (target=target is implied)
[target=targettarget, harm] if what I have targeted is targeting something harmful, then cast the spell on my target's target, not changing my current target
[] nothing special, cast like normal (ie it would pop up a "hand" mouse icon for you to pick someone if you had nothing targeted)

So, with this macro... you could just target the main assist, and what ever the assist has targeted you will attack, while at the same time, if you target a mob directly, it will attack that mob. In City of Heroes I played a blaster, I would simply target the tank, and then just click my attacks, it would auto target what ever the tank had targeted. This can be done with something called "focus" and setting the MA as your focus, but I think this macro is faster and simpler. It allows you to attack by direct choice, or to "pick" who you are assisting with out having to set anything, or even pick your mobs with a mouse over click if your friendly target is not targeting anything. (or add replace the [] with [target=mouseover, harm] to target your mouse over if the first two conditional fail)

for healers, you can use a different version (this is what I use)
/cast [target=mouseover, help] [help] [target=targettarget, help] [target=player] HEALING SPELL which checks to see if your mouseover target is helpful, then casts, otherwise follows the same logic (ending with a self cast if you had no other target). Having your mouse over a party/raid frame counts for a mouse over... so i can use this macro to hot key and click cast at the same time.

Btw, if you are having trouble typing out a spell name... just open up your spell book and your macro editing at the same time... put the cursor in the macro where you want the spell name and [shift] click the spell, it will paste the full name into the macro... then just back space to remove the rank

Be careful with certain spells like Wild Growth. for Wild Growth, I only do the mouse over (I have self cast turned on)... since many times I will have the boss targeted to cast wild growth on the 5 most wounded targets near that boss. So if you simply used the macro i posted with WG with out a change, it would cast WG on the tank, which sometimes is out of range of the rest of the melee, wasting 4 of the "targets" of wild growth.

If you want the icon of the macro to be your spell... pick the question mark as your icon

If you want the tooltip of the macro to be your spell... add #showtooltip as the first line of the macro. If you have multiple cast commands, and only want one spell to show up, add the spell's command

for example... here is a complete mage's macro

#showtooltip Arcane Barrage
/use 13
/use 14
/cast Presence of Mind
/cast Arcane Power
/cast [harm] [target=targettarget, harm] [] Arcane Barrage

What this macro will do is:
Always show the icon and tool tip for Arcane Barrage
Activate trinket slot 1 and 2 (if they are available on cool down, many times it will activate one, then put the second on a 30 second cool down)
Cast Presence of Mind if it is off cool down
Cast Arcane Power if it is off cool down
If a mob is targeted, cast Arcane Barrage on it
ELSE If a friendly is targeted that has a mob targeted, cast Arcane Barrage on it
ELSE act like this spell has been cast normally with out any modifiers

this will spam some error messages if the spells/trinkets are on cool down... to remove them, use the following modified macro

#showtooltip Arcane Barrage
/console Sound_EnableSFX 0
/use 13
/use 14
/cast Presence of Mind
/cast Arcane Power
/cast [harm] [target=targettarget, harm] [] Arcane Barrage
/console Sound_EnableSFX 1
/run UIErrorsFrame:Clear()

this is identical to the first, except it will turn off the "error" sound, and then clear the error boss when done.

I would be hesitant to suggest a mouse over cast in a raid setting, all it would take is a wondering mouse when you don't realize it. by leaving the last block as a []... you can still mouse over cast like normal... just have to mouse click after casting the spell.
  • Post a new comment


    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded