Macro Anatomy: Walk phase
If you have been following Macro Anatomy, you should be comfortable with macro basics by now. If not, you may want to consider taking a moment to review what we have covered thus far. For the rest of you, welcome to the next installment, where we'll be covering a commonly used, but powerful macro type, the /castsequence command.This slash command will allow the user to specify a given sequence of commands, tied to a single button. As a reminder, this will not facilitate one-click sequences, but will require you to click or press a bound key for each iteration in the sequence. This also means you'll be timing your input in step with the Global Cooldown.
The most obvious use of the /castsequence command comes into play when you realize you're casting the same spells in nearly every fight. I use this type of macro for grinding, with one for PvP situations as well. (Curse of Exhaution be praised!)
To use this macro, you simply open your macro interface, create a new macro and in the text box, start with /castsequence, then list the spells you want to cast, in order, separated by a comma. It should end up looking something like this:
/castsequence Spell 1, Spell 2, Spell 3, Spell 4
One helpful addition to your cast sequence is a reset function, which will allow you to reset the macro (start your sequence over), preventing you from having to step through each spell before starting again. A good example of this is when I run through a series of DoT's on someone in PvP, then switch targets (sometimes before finishing my sequence) and want to start my sequence again. This is accomplished by inputting a reset conditional, like so:
/castsequence reset=conditional Spell 1, Spell 2, Spell 3, Spell 4
There are a number of conditions you can use to reset your sequence. They include:
- combat - resets the sequence when you leave combat
- target - resets the sequence when you change targets
- n - the number of seconds before the macro times out
- control, shift, alt - resets the macro when you press the macro key with one of these keys pressed
"Where n is a number of seconds. You can specify any number of these conditions separated by slashes as shown. Seconds are used as a timeout for the command. Each time the sequence runs, it resets the timer. If you don't use the macro within the number of seconds specified, the sequence will start over. This is a very important distinction because it means you cannot use a reset timer to account for cooldown. target resets the sequence when you change targets; combat when you leave combat; shift, alt, and ctrl when you activate the macro with one of those keys depressed."
My own cast sequence, which I use to grind on my Warlock looks like this:#showtooltip
/petattack
/castsequence reset=combat/target/shift Siphon Life, Curse of Agony, Corruption, Life Tap, Drain Life, Drain Soul(Rank 1)
I also use the "?" icon for my macro, which causes the macro to update the icon to the appropriate spell in the sequence. The #showtooltip line also shows the corresponding tooltip for each spell as they cycle through the cast sequence. This sequence sends my pet to attack my target and runs through the given sequence. I do have to click once for each spell, but I find the whole business very efficient for grinding. As a note, I also use an addon that auto-destroys Soul Shards once I have filled up my shard bag, this keeps me from filling my bags with them, but I get the benefit of Improved Drain Soul.
One more thing, you can use items, abilities and spells in your sequence, don't feel limited!
That should give you enough of a start to begin writing your own cast sequence macros. This can bring a measure of efficiency to your grinding. Try this out and check back often for the comments section, as many readers provide great feedback, advice and more tips! Until next time, take good care of those macros!
Filed under: Tips, How-tos, Features, Guides, Macro Anatomy






Reader Comments (Page 1 of 1)
Thyhammerr Mar 16th 2008 11:03AM
Thank You for this..
i've always wondered how /castsequence work..
scorch scorch scorch scorch scorch , fireball fireaball go go go xD
Irishpotato Mar 16th 2008 11:19AM
I bookmarked this page it is so helpful!
Thanks a lot!!!
freky Mar 16th 2008 11:41AM
I copy pasted that macro:
#showtooltip
/petattack
/castsequence reset=combat/target/shift Siphon Life, Curse of Agony, Corruption, Life Tap, Drain Life, Drain Soul(Rank 1)
but it does not work..only send my pet to attack,im a noob at macros so if anyone nows why it isnt working could they help me out?
camille.e Mar 16th 2008 1:18PM
Remove /shift and it should work. Shift is a modifier, so you would use it like :
/cast [modifier:shift] Drain Soul(Rank 1)
Thus, you could hold down your shift key while using your macro to drain soul. The full macro would look like:
#showtooltip
/petattack
/castsequence reset=combat/target Siphon Life, Curse of Agony, Corruption, Life Tap, Drain Life
/cast [modifier:shift] Drain Soul(Rank 1)
freky Mar 16th 2008 3:02PM
I tried yours an it still does not work...
does it matter that im playing in a spanish server?
i also tried putting the spell names in spanish as they are written in the interface but doesnt work either. haha why are macros so complicated!
Chris Anthony Mar 16th 2008 4:28PM
If you're on a Spanish-language server, you need to use the Spanish-language names. Open your macro window and your spellbook; type the following into your macro:
#showtooltip
/petattack
/castsequence reset=combat/target/shift
(Make sure to get the space after "shift".) Then shift-click on the spells that you want in your spellbook, in the order that you want them in the macro. That will give you the correct names for the spells you want to cast. Remember to put a comma after each spell except the last. (Shift-click, comma, shift-click, comma, etc.)
If that still doesn't work, let me know and I'll do some more checking.
Chris Anthony Mar 16th 2008 4:30PM
@camille.e, any of the modifier keys can also be used as reset conditions. 'reset=shift' means that when you activate the macro with the shift key held down, it will start the sequence over again regardless of where you are in the sequence.
glorft Mar 16th 2008 11:59AM
Are you not able to use heals for this? I can use wrath, moonfire, etc. just fine but not with heals.
Chris Anthony Mar 16th 2008 4:35PM
I can't see any reason why you wouldn't be able to use heals with /castsequence. (Then again, given the nature of healing, I'm not sure why you'd want to.) What's the full text of the macro you're trying to use?
Anotherspy Mar 16th 2008 12:04PM
how can i ,i'm a rogue, use my scrollwheel to go in stealth?
/cast stealth
/(by pressing scrollwheel:P)
HOWTO?
Aranon Mar 16th 2008 1:28PM
You won't need to use a macro for that. Simply place your cast stealth button on a button bar, then go into key binding options and find the slot for that button (if it's in your first slot, for example, find the entry for "Bar 1, button 1"). Then click the bound key one slot next to that line, and hit your mousewheel button. Done and done.
Daniel Mar 16th 2008 12:37PM
I'm fairly sure you wouldn't do that with a macro, but rather with your keybindings (i think they cover mouse buttons as well). Try it out, just press esc then go into the keybindings section.
sayling Mar 16th 2008 5:24PM
I think the thing that is confusing you here (and possibly others who don't play Rogues) is that Rogues have a special button for Stealth floating above the standard toolbars...
The stealth command is already bound to Ctrl+F1 (your post reminded me to find this out - started looking for it MONTHS ago...)
I have all the action bars showing in my UI (press Esc, choose Interface, then Advanced Options tab; put a tick in Show Bottom Left ActionBar, Show Bottom Right ActionBar and, optionally, the two tickboxes for the ActionBars on the right) - loads of options for clickers to stick stuff all over the place then.
You'll also find that, in Key Bindings you have options to assign keys for the Bottom Left and Bottom Right ActionBars under 'MultiActionBar Options'... so whatever you have in the Bottom Left bar (note this is the one that appears if you tick the Show Bottom Left ActionBar as above in Advanced Options, NOT the bar that is in the UI by default) can then be bound to whatever keys you want. what's also nice here is that the keys that you bind then appear in the icon for that action :)
For example, I have Vanish in the Bottom Left ActionBar first slot, and have it bound to V - I hate seeing nameplates ;) - and it shows a little 'v' in the top right corner.
With the above information, you could either create macros and assign them to the additional action bars and then assign Key Bindings to them
Or, even simpler (coming back to your original question) - open up the KeyBindings menu, scroll down to Special Action Button 1 and then click where it says Ctrl-F1 - then press (in your case) your middle mouse button (or wheel, or whatever) and that will assign it how you want.
Hope this helps :)
Samael Mar 16th 2008 12:30PM
@5
ESC->Keybindings->Whatever your stealth key is (ActionBar 1,2,3,4 etc etc) click it, scroll your mouse wheel up, and it should bind it, if you use bongos just go into keybind mode, hover over stealth, and scroll up. That will of course unbind the mapzoom though, I use the scrollwheel for druid shapeshifting (up for bear down for cat)
---------
My cast sequence macro I mostly use on my priest is
/castsequence [nochanneling:Mind Flay] reset=target/combat Vampiric Touch,Shadow Word: Pain,Mind Flay,Mind Flay,Mind Flay,Mind Flay,Vampiric Touch,Mind Flay,Mind Flay,Shadow Word: Pain,Mind Flay,Mind Flay,Vampiric Touch,Mind Flay,Mind Flay,Mind Flay
I dont use Mind Blast in there because my +damage doesn't really make it worth it when Im just farming, when I raid I might throw a SW:D in there, but I'll ask a healer if thats fine first, dont wanna stress them too much
souvlaki Mar 16th 2008 5:09PM
@freky
In a spanish server you must use spanish spells.
I use this macro.
/castsequence reset=target/combat Maldición de agonía, Corrupción, Inmolar
I keep away Siphon Life and other spells as i prefer to leave them out from the macro. So i can Sipon Life-TAB-Siphon life a group of opponents for instance.
Regarding using reset timers, the post says: "Each time the sequence runs, it resets the timer". Does this mean that the sequence is reset at each keypress? If i run this warrior macro ....
/castsequence reset=30 Berserker rage, Whirlwind, Whirlwind, Whirlwind
The sequence is reset after 30s past berserker rage or since the last whirlwind?
sayling Mar 16th 2008 5:26PM
The sequence is reset after 'n' seconds, no matter what point you are in within the sequence
Hope this helps
Joseph Mar 16th 2008 7:26PM
test
Joseph Mar 16th 2008 7:26PM
test
Lephturn Mar 24th 2008 5:22PM
Warlocks need this macro for affliction specced! From WoWWiki
http://www.wowwiki.com/Useful_macros_for_warlocks#Destroy_Shards_.26_Drain_Soul
If you're affliction specced and use Drain Soul to gain mana back due to the talent Improved Drain Soul you might have the problem of building up many more Soul Shards than needed and losing precious inventory room. This macro will stop everything from casting, destroy the first shard in your bag and then cast Drain Soul Rank 1.
It relies on your shard bag being the furthest left bag on your action bar(the F8 bag). If your shard bag is not in the F8 slot it will NOT delete items in the bag there.
This macro ensures these actions:
the item being destroyed is a soul shard
the bag is in fact full before attempting to delete an item. This is necessary since soulbags work in a "last in, first out" or LIFO behavior. /stopcasting [nochanneling:Drain Soul]
/run if GetContainerNumSlots(4)==GetInventoryItemCount("player",23) then PickupContainerItem(4,1); a,b=GetCursorInfo(); if a=="item" and b==6265 then DeleteCursorItem(); else ClearCursor(); end; end
/cast Drain Soul(Rank 1)