Site Search:
 
Quick Links:
Random Tip:
You can remove a friendly spell enhancement on yourself by <Right>-Clicking on the spell effect icon.

Macros 2.0

Notice:
  • NO macro can check for BUFFS, DEBUFFS, COOLDOWNS, or HEALTH/MANA/RAGE
  • Any failed cast attempt stops the macro from casting any further spells.
  • Any spell cast without "(Rank X)" will automatically cast the highest rank of the spell you know.
  • All beneficial spells will automatically reduce rank if necessary to that of a lower level target.
  • Each shapeshift corresponds to a "stance." Either Moonkin or Tree of Life is stance 5, depending on spec. Flight Form would be the next number.
  • /castsequence resets after all listed spells are cast; reset=X will reset X seconds after last activation (not initial activation).
  • The Shift modifier is currently broken, I think. It should be fixed in the next patch. There might be a workaround.
  • Focus allows you to "store" a target (with /focus) until you clear the focus (with /clearfocus), which can be targetted at any time (with /target focus, or [target=focus]).

Targetting:
  • /targetenemy
  • /targetfriend
  • /targetparty
  • /targetraid
  • /targetlasttarget
  • /targetlastenemy
  • /assist [name] - Assist your target or the named unit if specified

Using Items:
  • /use <itemname>
  • /use <slot>
  • /use <bagid> <bagslot>
  • /equip <itemname>
  • /equipslot <slot> <itemname>
  • /userandom <item1>, <item2>, <item3>, etc.

Pets:
  • /petattack
  • /petstay
  • /petpassive
  • /petdefensive
  • /petaggressive
  • /petautocaston <spell>
  • /petautocastoff <spell>

Casting:
  • /stopcasting
  • /cast [option] <Spell Name>
  • /castrandom <Spell Name>, <Spell Name2>, etc.
  • /castsequence [reset=N/target/combat/shift/alt/ctrl] <Spell Name1>, <Spell Name2>, etc.

Sequenced Casting:
  • A new command /castsequence reset=N/target/combat/shift/alt/ctrl spell1, spell2, spell3
  • The reset line can specify a number of seconds after which a sequence resets, or if it should reset on target change or leaving combat.
  • The sequence tracks the 'next' spell in the sequence until it resets, the next spell only advances on a successful cast.
  • You can specify a conditional at the start of the command before the reset to filter whether the sequence is used (You cannot use per-spell conditionals).
  • You can specify items as well as spells.

Action Bars:
  • /changeactionbar <num>
  • /swapactionbar <num1> <num2>

Attacking:
  • /startattack [unit]
  • /stopattack

Buffs/Auras:
  • /cancelaura <name>

Macros:
  • /stopmacro [option]

Options:
If multiple options are provided for an action, they must all be met before the action will happen. The options supported are as follows:
  • target=unit - Run the command and perform tests on the specified unit (only applicable to spell casting or item use). You can specify 'none' as a target unit to act as if you have no target.
  • help/harm - Choose depending on whether target is assistable or attackable.
  • combat - Choose depending on whether you're in combat or not.
  • stance or stance:# - Choose depending on your stance/shapeshift ("stance" alone matches any stance).
  • stealth - Choose depending on whether you are stealthed.
  • mounted - Choose depending on whether you are mounted.
  • swimming - Choose depending on whether you are swimming.
  • flying - Choose depending on whether you are flying.
  • indoors - Choose depending on whether you are indoors.
  • outdoors - Choose depending on whether you are outdoors.
  • modifier or modifier:shift|ctrl|alt - Choose depending on any modifier keys you're holding at the time the macro runs.
  • equipped:<invslot>|<itemclass>|<itemsubclass> - Choose if you have the specific item type equipped.
  • actionbar:<bar> - Choose if a specific actionbar is shown.
  • button:Z - Choose if the specified button is held down.
  • pet:<name>|<family> - Choose if your current active pet has the specified name or family (e.g. pet:bear/wolf).
  • channeling or channeling:spell - Choose if you are channeling (possibly a specific spell).
  • exists - Choose if the target exists.
  • dead - Choose if the target is dead.

For stance and modifier you can list multiple matching values separated by the / character for the option to be true if ANY of them are true. For example modifier:shift/ctrl matches if shift or control is held down.
Any option can be prefixed with 'no' to select if it does NOT match. For example [nocombat].