Macro Anatomy: Crawl Phase
Welcome, my friends, to the second installment of Macro Anatomy. In this episode we'll be going over some basic macro commands and I'll introduce some simple macros for you to learn and play with.Before we move ahead, I wanted to reiterate an important change to many macros since the release of Patch 2.3 for those of you who are already writing and using macros. The /stopcasting command is no longer necessary between instant-cast, non-GCD spells. An example would be the following macro:
/cast Divine Favor
/stopcasting
/cast Divine Illumination
/stopcasting
/cast Holy Light
To conserve space, it can be shortened to:
/cast Divine Favor
/cast Divine Illumination
/cast Holy Light
Previous articles found on this site may feature macros that still contain this command. So, feel free to remove it when you copy and paste said macros.
Now, let us move onto the "Crawl" portion of our Crawl-Walk-Run approach to macro writing.
Last time, we went over some basic principles of what macros were and what they could and could not do. The most basic macros are simply slash commands that have been redefined for easier use. An example of a simple macro would be something like:
/wave
or
/y The cake is a lie!
This macro, once used, would either wave, in the event you have no target, or wave to your current target, just as if you typed the /wave command. Macros can facilitate the stacking of multiple slash commands. A word of caution, however, stacking too many emotes and/or chat in a macro can threaten the edge of spamming. Here is an example
/y You eated my cookie!
/roar
/sob
This macro will yell: "You eated my cookie!", roar and then sob. However, you won't see your character actually do roar emote, as its overridden by the sob emote, but it will show in the chat log.
So we've lock-stepped through basic emotes and chatting, but lets try some other basic commands.

/cast Spell name – this one casts whatever spell you input
- Example: /cast Holy Light – casts your highest ranked Holy Light spell.
- Example: /cast Holy Light(Rank 2) – casts Rank 2 of your Holy Light spell.
- Example: /use Moroes' Lucky Pocket Watch – would use this trinket.
- Example: /use 13 – this would use the item equipped in slot 13 of your inventory, the first trinket slot.
- Example: /use 1 11 - uses the item in the "11" slot of the bag in the first bag slot
- Example: /equip Carrot on a Stick – this will place the item in a default slot, just as if you had right-clicked the item.
- Example: /equipslot 14 Carrot on a Stick – this will equip the Carrot on a Stick in slot 14, your second trinket slot.
- Example: /target Stab – this would target that pesky rogue Stabsu, or the closest match in range. (Watch out if you're a priest named Stabme.)
- Exampe: /assist – if you were targeting your Main Tank, you would target his or her target.
- Example: /assist Ondos – would target Ondos' target.
This, fair reader, is just the tip of the iceberg! I would suggest that those of you who are new to macro writing practice with these basics, learn by doing!
There are a few more things to know from the get-go. To access your macro interface, you can type /macro or /m in your command prompt. You can also access if from the Options menu, which is found by clicking the Options icon or hitting Esc, then clicking the Macros button.

When selecting an icon for your macro, the "?" icon will automatically choose the icon that matches the spell or item being used. You can change this with the following command:
#show name – This will show the icon for whatever spell or item you designate.
- Example: /show Summon Charger - will display the Summon Charger icon
#showtooltip – by default, when you mouse over a macro icon it shows the name of the macro in the tooltip. This command will toggle the display of the tooltip for the appropriate spell. You can also opt to input a name for a specific spell tooltip.
- Example: #showtooltip Lesser Heal – this will always show the Lesser Heal tooltip, and if you're using the "?" icon, it will also show the Lesser Heal icon.
Mount and equip a trinket (by name)
/use Reins of the Striped Frostsaber
/equip Carrot on a Stick
This macro, as written, will cause you to mount your Striped Frostsaber and equip your speed-increasing Carrot on a Stick.
Eat and Drink at the same time!
/use Sweet Nectar
/use Stormwind Brie
Will allow you to eat and drink at the same time. (Sweet Nectar and Stormwind Brie in this case, since we input them by name.) This one is even more handy because it adds an item count on the icon to tell you how many eat/drink combinations you have available.
Suggested by Richie:
#showtooltip Consecration
/fart
/cast Consecration
This one, for Paladins, can be adapted to any class using AoE spells. I've added the Consecration tooltip, and if you're using the "?" icon, it will display the Consecration icon. (Tip: for paladins trying to find a pesky enemy who is stealthed, change /cast Consecration to /cast Consecration(Rank 1) to conserve mana.)
Next week, we'll delve into how to create more complex command sequences. You can also refer to last week's Macro Anatomy: Primer for links to previous macro-related articles or this page for some good information.
Filed under: Tips, Tricks, How-tos, Features, Guides, Macro Anatomy






Reader Comments (Page 1 of 1)
Lori Mar 1st 2008 2:58PM
I believe there is a way to copy text from outside the game (a notepad window) to the in game macro window. Does anyone know how to do this?
szoltomi Mar 1st 2008 3:08PM
Ctrl+C
Alt+Tab
Ctrl+V
Qix Mar 1st 2008 4:16PM
As Szoltomi said, "Ctrl+C" copies the highlighted text, and "Ctrl+V" Pastes the text. "Alt+Tab" (Hold Alt and press Tab a few times to cycle through different windows) changes windows (from WoW to another program like notepad).
Be careful with the Paste's though, sometimes you end up copying extra space's, and it could mess something up since the macros need to be exact.
Lori Mar 1st 2008 5:46PM
Thanks guys.
thatguy629 Mar 1st 2008 9:37PM
ctrl+a = select all
Thander Mar 1st 2008 5:10PM
"/cast Divine Favor
/cast
/cast Holy Light"
I don't know what that extra "/cast" is for. I don't have that in mine and they work fine. (after 2.3)
Sean Forsgren Mar 1st 2008 6:08PM
Thanks for pointing that out, it's proof that no matter how many times you read over something, one can always miss important details...
/stopcasting may not break your macros, but its now obsolete.
Murmbe Mar 1st 2008 11:42PM
/stopcasting isn't obsolete, only in the way you are thinking of.
It is very useful for when you wish to interrupt your initial cast and start casting another spell that does not automatically interrupt.
For mages this is almost a necessity:
/stopcasting
/cast iceblock
since Iceblock will not automatically cancel any existing spell (unless it is channeled) whereas other spells like counterspell will interupt it.
Hould Mar 1st 2008 7:56PM
On the /sob then /roar bit... is there something that can be stuck in between the two emotes so that both will happen?
Shabubu Mar 3rd 2008 11:30PM
Not really. As a macro it will try to do everything that is in it one right after another. There is no way to have it do a pause because the pause would allow for you to time spells based upon the gcd and so therefore making the char a bot.
Chris Anthony Mar 1st 2008 10:44PM
Unfortunately, there isn't a way to pause a macro briefly in the default UI, which is what you'd need to do in order to be able to see both animations.
Grendalsh Mar 2nd 2008 1:39AM
You could use the /castsequence command to string together the /roar and /sob emotes.. you would have to hit th button twice, the first time would trigger the /say and the /roar, then the second would trigger the /sob.
This has been a great 'crawl' primer for how to write Macros.. I look forward to the rest of the series, cause there's always something you didn't know :)
For those of you looking for further references on WoW Macros, I HIGHLY suggest the book "Hacking World of Warcraft", Gilbert and Whitehead, Wiley Publishing, Inc. (ISBN 978-0-470-11002-7). It's $30, and it's a great primer and reference for how macros work, how to install addons, and introduction to writing LUA addons. I'd been using addons and written some basic macros, and there was still a wealth of info there.
Chris Anthony Mar 2nd 2008 4:59AM
Actually, unless you know something I don't, you can't use /castsequence that way; it can only be used with spells, abilities, and usable items.
Jeff Mar 5th 2008 11:01PM
I'm using this now, thanks to your tips:
#showtooltip Snowy Gryphon
/use Snowy Gryphon
/equip Riding Crop
However, I tried to use the equip to item slot line:
/equip 13 Riding Crop
And it's not working for me (it doesn't equip the item in that slot). If I just eliminate the number, it goes in the first trinket slot. As an aside, why is that slot 13? Should be 15 by my count?
Also, how do I craft this macro so that it summons the gryphon and equips the riding crop when I want to mount, but then replaces the trinket when I dismount(since I constantly forget)? Is there a way to make this one macro?
Jeff Mar 5th 2008 11:07PM
Turns out you have to use /equipslot:
/equipslot 13 Riding Crop
Jeff Mar 6th 2008 1:38AM
Got it -
#showtooltip Snowy Gryphon
/mounted dismount
/equipslot 13 Glowing Crystal Insignia
/use Snowy Gryphon
/equipslot 13 Riding Crop
If you're mounted, you will dismount, and equip whatever trinket you want in the first trinket slot (replace "Glowing Crystal Insignia" with whatever you have). If you're not mounted, you'll mount and equip the riding crop (or replace with carrot).