Talk:Useful macros for hunters

Hunter Macro
I was just wondering if it is possible (and if so, how?) to write a macro to only cast Hunter's Mark IF the target does not already have Hunter's Mark on it. —The preceding unsigned comment was added by. 05:50, 21 November 2007
 * Don't know if it's really possible. A problem I encountered often lately, you can find out whether the mark is on the target or not through /script (see UnitDebuff), but you cannot cast spells in that code, and you cannot give the info back to the normal part of the macro, or cancel the execution of the macro. 12:32, 28 November 2007 (UTC)
 * If you cast a Hunter's Mark on something already marked, it simply refreshes the the original mark so that it doesnt run out. If your Mark is a buffed one it takes dominance, if the one already there is buffed yours renews it.

Revive pet, Mend pet, Call pet and Dismiss pet in one button
For some time i had revive pet, mend pet and call pet in different buttons (and used spell book to cast dismiss pet), but then i came up with a macro that combines all those:

/castsequence [nopet] reset=20 Call pet, Revive pet /cast [modifier:shift] dismiss pet; [target=pet, dead] revive pet; [target=pet, nodead] mend pet
 * 1) showtooltip

I was really surpriced not to find this on hunter macro -page.


 * Actually i noticed that the dismiss-part cant be at the end of the macro, rearranged the commands :)

Swithu 00:29, 23 February 2008 (UTC)

Petattack macro with dynamic tooltip?
I'm using the one button pet attack macro, and have been scratching my head trying to get it to display a dynamic tooltip (or atleast icon) of the attack and follow commands. The problem is ofc that the pet attack and follow commands are not in the spellbook... Is there a way to get around this?

I have been experimenting by using #show and the name of the icons themselves as defined in the macros-cache.txt file, like below, but it doesn't work either.

/petfollow [target=pettarget,exists] /petattack [target=pettarget,noexists]
 * 1) show [target=pettarget,exists]Ability_TrackBeasts;[target=pettarget,noexists]Ability_GhoulFrenzy

Any ideas?

Harrumph 13:40, 2 April 2008 (UTC)

I don't know how to do the tooltip, but Just use the ? icon to have it pick the icon based on the spell that it will cast first.

Dabombnl 05:53, 9 April 2008 (UTC)


 * On a warlock macro I use with drain life and two ranks of drain soul on it, I used #showtooltip as the first line and the ? icon, and the icon and tooltip both look like whatever spell will go off when clicked. --Azaram (talk) 01:44, 2 June 2008 (UTC)
 * (Later, after rereading) Not sure how, or if it's possible, to have it show a different icon depending on if there's a target or not.. --Azaram (talk) 02:52, 4 June 2008 (UTC)

Removed Some Macros
I removed all macros that had hunters and pets attack at the same time. Anyone who understand aggro knows this is a bad idea. Send the pet in first, then once he has a hit or two then start shooting. I understand that PVP hunters might do things differently, but the macros were titled "Farming" etc. for the most part. Anyway one suggestion going forward is for people to tag their macros with a PVP warning if they intend it as such.


 * Removing macros because you don't like them is a bit much. Different people have different styles, and what works for me may not work for you. Whether or not it's something you would use is irrelevant; someone uses it or it wouldn't be here.--Azaram (talk) 02:52, 4 June 2008 (UTC)


 * Also, this page doesn't belong to you so don't go around altering other people efforts. You deleted too much in the first place. You could simply have renamed the PVP macros, or put in a text explaining what you opinion of that macro is.

Managing Mounts and Cheetah/Pack
I made a macro that enables me to mount or throw on Aspect of the Cheetah or Pack with one click, and thought I might share it:

/use [indoors,nogroup,nopet][combat,nogroup,nopet][button:3,nogroup,nopet]Aspect of the Cheetah;[indoors][combat][button:3]Aspect of the Pack /use [flyable,outdoors,button:1]1 1 /use [flyable,outdoors,button:2][noflyable,outdoors,button:1]1 2
 * 1) showtooltip

If you're alone (not in a group and don't have your pet out) and indoors, or alone and click with the middle mouse button, you will use Aspect of the Cheetah. If you do the same thing but are in a group or have an active pet, you will use Aspect of the Pack. If you're in Outland, outdoors, and left click the button, you will use a flying mount. The 1 1 indicates that the mount is in the first slot of your second bag, and may be adjusted to fit where your mount is. If you're in Outland, outdoors, and right click, or if you're outdoors but not in Outland and left click, you will use a regular mount (again, assuming that it is in the second slot of your second bag, can again be adjusted).

It sounds kind of complicated, but in my experience it's very smooth and easy to use. - Arnen (talk) 23:35, 9 June 2008 (UTC)

What's the deal with /castrandom?
Lots of the examples (now, with all the pre-3.0 stuff cleaned up) utilize /castrandom in a bit of weird fashion. Can someone explain to me whats the idea eg. here:

/castsequence Wing Clip, Raptor Strike, Wing Clip /castrandom [target=target, exists] Mongoose Bite
 * 1) showtooltip Attack

I mean I have, (and it still works!) used the version where you have /cast raptor and /cast wing on separate lines, in single macro (works due to the fact that wing clip is immediate and raptor strike is queued for your next attack with melee weapons). After patch 3.0 and change to mongoose bite I would like to have WC + RS + MB in same macro, and this seems like the way to do it - however, can someone explain WHY it does work?

I mean, /castrandom and a single spell after it kinda doesn't look how documentation intends it to be used...

Zarhan (talk) 09:23, 20 October 2008 (UTC)

Answer: I believe it has to do with the way castrandom will automatically bypass spells that are not available. For example, when you use it for a mount macro, it chooses the mount you have in your bag (previously, this no longer works since you always have all your mounts now). So by making the MB segment a castrandom, it automatically ignores that line of code if Mongoose Bite is not available.

Ok, makes sense. However, this lead me into theorizing... I tried to make a spam-dmg macro:

/castrandom steady shot, arcane shot, arcane shot, arcane shot, arcane shot, arcane shot, arcane shot, arcane shot, arcane shot
 * 1) showtooltip

With the idea that whenever arcane shot is available, the randomness would pick it over steady (in this case with 8:1 odds), and otherwise shoot steadies - that way I could just spam the button (/castsequence reset=2/target arcane, steady,steady just fails occasionally).

Other variant I tried was

/castrandom arcane shot /cast steady shot

With the idea that if arcane wouldn't be available it'd skip the line and shoot a steady instead. Anyway, neither of these approaches didn't work - the former keeps complaining "spell is not ready yet" and doesn't shoot steady unless I really spam the button (Tried script UIErrorsFrame:Hide)- and latter one doesn't get to firing steadies at all.

Zarhan (talk) 20:53, 12 November 2008 (UTC)

Conditional button replace?
Ok, I know the answer to this is probably no, but no ask, no gain... Is there a way to replace, for example, arcane shot with kill shot when kill shot is A) active and B) not on cooldown? Doesn't even have to be an auto fire macro, just one that when it's up and ready to go, is there to be hit. --Azaram (talk) 19:55, 5 December 2008 (UTC)

Another use for it would be something like 'If I have a tenacity pet, show taunt and Master's Call, if I have a ferocity, show lick your wounds and rabid'... anyone know of a way to do that, or a mod that can? Too many buttons for the pet bar now. :-p --Azaram (talk) 06:41, 9 December 2008 (UTC)

More cleanup
I have updated the page to reflect 3.08 changes. Also broken the macros down into BM, MM, SV, and All Hunter Categories.

Might be controversial, but I added "macro-spammer" recommended specs. These are largely based on EJ's calculations, combined with my knowledge of the hunter class for what I think will work best for new players. Open to comment.

Encourage new players to learn to spam macros is not something anyone should recommend, and definitely not EJ forum posters.

These macros listed are absolutely horrible. The SV one doesn't even have Explosive Shot, but even adding ES still makes them all terrible. They should be completely removed or noted that they are horribly inefficient. Kronchev (talk) 12:28, 22 June 2009 (UTC)

Hi everybody.

I'm having some problems trying to configure a MACRO with these sequences.

snake trap disengage concursive shot aimed shot serpent sting

I realy hope some help becouse I'm prety newbie in this making-macro world. Can you help me?

simple and obv
Just removed the "I'm not sure if /assist pet works" because it, uh, it does

:/
Most of these are absolute trash. What's the policy for removing all of the worthless/non-working/poorly-written macros? - Auron 10:18, April 26, 2010 (UTC)

Hunter pet moves linked to hunter shots
I have been looking over the hunter macro page and have found a few useful things that I can apply to reduce the icons on my action bar but what I am really looking for is a macro that links a pets move with a shot/sting. Example being I want to link gorilla "Pummel" (spell interupt 30sec CD) to something like "Aimed Shot" so I use the ability at a more appropriate time rather than every 30 seconds if I am fighting casters. Another one is linking a Wolves "Furious Howl" to pet attack which I have keyed to "f" so I cast both at the same time. —The preceding unsigned comment was added by.

4.0.1 Changes
With 4.0.1 going live on US Servers this morning, I suggest that we wipe the page and only add in macros that are absolutely guaranteed to work with this latest patch. There are currently a lot of outdated and poorly written macros that will need to be modified and rewritten in order to be usable. Finally, why do we have by-lines for some of the Macros? That seems to, at the very least, go against what Wikis are about. You are generally credited in a pages History. &hearts; sunsmoon  (talk & cont ) 09:39, October 12, 2010 (UTC)
 * Example of Proposed Changes in a Sandbox Environment (please read my sandbox before editing!) &hearts; sunsmoon  (talk  & cont ) 16:37, October 12, 2010 (UTC)

Preventing autotargeting
Since 4.0.1 you will target a random nearby npc if you attempt to cast a spell with no target.

To prevent this behavior i have replaced all Spells with this macro:

/stopmacro [dead][noexists][help] /cast
 * 1) showtooltip

Using a conditioned stopmacro makes it easier to setup since you can use the 'auto-icon' without having a '?' symbol. Its still not perfect but at least it helps.