This is a continuation of my original thread which recieved a warm welcome.Some of the feedback I recieved from that post was to go into more detail and to add more examples. Also some people asked for better organization as well as some free macros they can simply edit to their own spells. Well it took me all day to finish but here it is. If anyone finds ANYTHING wrong with this guide let me know A.S.A.P so I may correct the mistake.
Hunter Macro Guide
Chapter 1--"Power Words"
There are a total of nine ( 9 ) "Power Words." These are the most basic commands. These start your macro and dictate what it will do. The "Power Words" are:
/cast
/use
/target
/focus
/assist
/stopmacro
/cancelaura
/castrandom
/castsequence
These words can be used by themselves to perform simpler tasks. One example of this would be:
/cast Fireball (rank 7)
This will of course cast your fireball spell rank seven. These "Power Word" commands are very basic. They are easy to write and easy to understand. Now moving on. These "Power Words" although simple and basic are a necessity for your macro. If you use the wrong word you may create no effect or you may create a very bad effect.
Chapter 2--"Sub Words"
There are many "Sub Words" which are available to you. I will refer to these as "Options" from here on out however because it is easier to remember and may stick with you longer. These words make your macro do more specialized or intricate things that can range from making sure you don't cast fear while in a raid to making sure you don't waste bandages on your pet when you need it instead.
These words are:
help - determines 'true' if your target is friendly
harm - determines 'true' if your target is hostile
combat - determines 'true' if you you are in combat
stance or stance:# - determines 'true' if you are in a stance or a specific stance.
stealth - determines 'true' if you are stealthed.
modifier or modifier:shift|ctr|alt - determines 'true' is the selected key is held down when the command is prompted.
equipped:<item> - determines 'true' if the item is equipped.
target=<unit> - (special option)changes the default of "target" to any valid unitid.
actionbar:<number> - evaluates 'true' if the action bar is the same as the listed one
pet:<pet type 0R name> - evaluates 'true' if the pet exists.You can add names and types (THIS IS HANDY)
mounted,flying swimming - evaluates 'true' if you are mounted swimming or flying.
indoors, outdoors - evaluates 'true' if you are indoors or outdoors.
button<#> - evaluates 'true' if the selected button was used to click/activate the command.
channeling:<spell> - evaluates 'true' if you are channeling the listed spell.
exists, dead - evaluates 'true' if the target is dead or even exists.
party - evaluates 'true' if target is member of your party.
raid- evaluates 'true' if the target is a member of your part or raid.
group - evaluates 'true' if you are in a group
group:party, raid - evaluates 'true' if you are in the specified type of group.
With these "Options" you can do something such as set up one button to do different things in different stances or something as simple as targeting your pet's target so you don't pull aggro from it. As I said before you can also set up macros that will cast fear but only if you are not in a group among many many other things.
If you add the word "NO" to the beginning of an option then the opposite would be 'true.' An example being [nogroup] vs [group]
A few examples as to how these work:
/cast [nogroup] fear (rank 4)
/stopmacro [group]
This is the macro that will cast Fear (rank 4) only if you are not in any kind of group.
/target pet
/castsequence [target=targettarget,harm] serpent sting (rank 1),auto shot
This macro will do two things. The first time you click this macro it will cast serpent sting (rank 1) on whatever your pet has targeted. The second click will then use auto shoton the same target. Each time you click it will perform the next action in a loop. In other words when you click it the third time you will cast serpent sting (rank 1) again.
Chapter 3--"Advanced Macros"
Some macros in the game are by no means simple or easy to put together. Some of these macros change stance for warriors. While some of these will ,with one button, do different attacks depending on whether you are stealthed or not. You can even set up these macros that you will only use certain attacks if you have a certain pet out.
There are easier ways to make macros that will let you do different things depending on circumstance all with the same button. These are the lifesaver macros that save time and wrong clicks from wiping the group or wasting mana rage etc.
The best way to write these more complex macros is to start with one spell then add common situations to the senario.One example would be you are in a boss fight and you want to heak the tank who has aggro. But you do not want to use extra spell slots in order to heal other people.
This is a very nice macro for this particular situation.Just remember to put these ; in between each "scenario."
/cast [target=targettarget, help] Greater Heal; [help] Greater Heal
In order to heal whoever has the boss's aggro you target the boss then click the macro that simple.If you want to heal someone other than the boss's target target them and then click the macro and presto!
Another macro that is useful is a charge/intercept for warriors. It is written as follows:
cast [nocombat,stance:1] Charge; [combat,nostance:3] Berserker Stance; [nocombat,nostance:1] Battle Stance; [combat,stance:3] Intercept
These conclude the most "advanced" macros section. Most macros will be simple such as was shown in Chapter 2. However these advanced macros are very very handy sometimes.
Chapter 4--Pre-made macros
First off I would like to tell you to edit these as needed because we do not all use the same spells etc etc and therefor it will be in your own best interest. Also please note these are random macros I had written down because I used to write macros for all my friends so these will not be hunter-specific.
pyro/fireball -- casts pyro if you are in combat fireball otherwise.
/cast [nocombat] Pyroblast; Fireball
Greater Heal on current boss target, or on current target.
/cast [target=targettarget, help] Greater Heal; [help] Greater Heal
Feed/Mend Pet based on combat status.
/cast [combat] Mend Pet; [nocombat] Feed Pet
/use [nocombat] <food item>
This macro will always use Heavy Netherweave Bandages on yourself, regardless of target.
/use [target=player] Heavy Netherweave Bandage
A resetting Dot macro for locks.
/castsequence reset=combat/target Corruption, Immolate, Curse of Agony
This will either 1) Cast flash heal if the target is friendly and you are in combat, 2) cast greater heal if the target is friendly and you are NOT in combat, 3) cast Flash Heal on your target's target if you are in combat and that unit is friendly, or if none of those conditions is true, it will cast Greater Heal on yourself.
/cast [help, combat] Flash Heal; [help, nocombat] Greater Heal; [target=targettarget, help, combat] Flash Heal; [target=player] Greater Heal
Chapter 5-- Notes
Remember to separate all scenarios in advanced macros with a ;
Remember that simply by adding "NO" to the beginning of an option will make it work when the opposite condition is met. example- [group] is true if you are in a group [nogroup] is true when not in a group.
Be creative with your macros find uses for them and use them to be faster what casting your spells than your opponents. Or to keep ahead in a raid.
Use memorable pictures for each macro that do not look incredibly similar lest you risk getting confused or mis-clicking.
Always make sure you know how to operate the macro before you go into a raid.
HAVE FUN!
I hope this guide has helped everyone who read it. This took me a while to make and I did check my macros however anyone who could test and re-test them would be highly appreciated as I do not have enough toons in all the right classes to do so.
P.S rateups appreciated the "snipers" have been going to town on my karma lately.
Edited, Mar 25th 2007 5:16pm by dasraserei
Edited, Mar 25th 2007 5:56pm by dasraserei