User:Azaram/My Macros

This is mainly a repository for the macros I use, but if other people find them useful, here they are. Many of them are kind of outdated; any that include '(rank #)' or '' are way old. Mainly you can just remove the entire section. Instead of Healing Touch (rank 14), just Healing Touch. Same for the ones that include open/close paren, like  Pounce. At one point that was 'use maximum available rank', now it's just unnecessary.

Gear Slot Numbers
Slot 10 is gloves, slot 15 is back, slot 6 is belt, slot 13 is top trinket and 14 is bottom. '/use 13' activates the top trinket. If the slot is not activatable, nothing happens.

Identify the UI element
/run local f = GetMouseFocus; if f then DEFAULT_CHAT_FRAME:AddMessage(f:GetName) end

Open a chat message, paste this in, put the mouse over what you want to identify and hit enter. It will return the frame name which will usually tell you what it is.

Powershift
/cast [stance:1] !Dire Bear Form /cast [stance:2] !Aquatic Form /cast [stance:3] !Cat Form /cast [stance:4] !Travel Form

Shift from form X to form X. This has the effect of removing snares/roots and gives a shot of energy or rage from Furor. Because it's a direct shift, there's no chance of being hit in caster. The exclamation point prevents it from shifting out if you're on a global cooldown.

No longer works, sadly.

Shift from bear/cat to cat/bear
If you're in cat talents, it switches to bear, or vice versa. One macro does both. Remember to click the little gear on your gear set and choose to load the proper outfit.

Maim/Lacerate/HT4
/cast [stance:1] Lacerate; [stance:3] Maim; [nostance] Healing Touch
 * 1) showtooltip

This puts two of my form dependent moves on one button, plus healing touch when I'm in caster. If I'm in bear, it shows lacerate, if I'm in cat it shows maim, if I'm not in either it shows healing touch. Seal or bird shows the ? icon. But, since you can't do anything in those anyway...

Pounce/Savage Roar
/cast [nostealth] Savage Roar; [stealth] Pounce
 * 1) showtooltip

Pounce is only usable from stealth. Savage Roar is a finishing move. Once you're out of stealth, pounce is a wasted button, so this switches between depending.

Hunter
' NOTE: These shot macros are woefully'' outdated now. Mainly still here because the 'identify the button' one is still useful, and for figuring out how to do other things.'''

Power Aura imports
To use these, open power auras classic (get it from Curse) go to the listings and click on 'import'.

http://huntsmanslodge.com/hunter-power-auras/ has a bunch of them. The ones I'm currently using are:

Barn (level 3) trapping (6.1)

Turns off attacking, calls the pet back, drops the trap.

/stopattack /petpassive /petfollow /use Iron Trap
 * 1) showtooltip Deadly Iron Trap

Mend Pet

Shows when Mend Pet is not active on the pet while in combat. Poor thing. How can you be so mean to your pets?

Version:4.23.11; anim1:2; icon:Ability_Hunter_MendPet; buffname:Mend Pet; begin:1; x:-77; customname:Mend Pet; unitn:Pet; alpha:0.5; sound:23; customtex:true; combat:true; size:0.19; optunitn:true; y:-450; inverse:true; timer.Texture:Original; timer.enabled:true; timer.Relative:BOTTOM; timer.ShowActivation:true

Serpent Sting

Shows when your current target in combat does not have Serpent Sting active. Version:4.23.11; target:true; buffname:Serpent Sting; begin:1; x:-130; customname:Serpent Sting; bufftype:2; alpha:0.52; sound:22; customtex:true; combat:true; size:0.19; y:-450; inverse:true

Aimed shot + DPS trinket (if available)
(Gives 'you must equip' or 'not ready yet' errors if the trinket isn't ready for whatever reason.) Only one of the trinkets can be used at a time, even if both are ready; this will use top one first. Generally, you want to put your better one there. /use 13 /use 14 /cast Aimed Shot
 * 1) show Aimed Shot

Pull shot
Low-calorie low hate instant shot that taps the target but does so little damage your pet (or tank) can easily pull it off you, and turns off auto-shot so you don't plink it more. /cast Arcane Shot(Rank 1) /stopcasting
 * 1) showtooltip

Edit: This doesn't seem to work anymore. Not to mention that rank 1 arcane shot costs more than the rank 14 or whatever the max currently is. Someone has suggested using /target (yourself) instead of stopcasting to detarget whatever you're shooting at.

Auto Shot macros
(WOLTK Note; tested on the PTR. It does work, but since Kill Command is now a +pet-crit% you may or may not want to use it every time it's up as this does.)

Live WOLTK note: Now it's a decreasing damage increase, so using it as often as possible should be ok. This does still work, too.

Two macros that go together, plus one to identify which button to feed to the first one.

Macro 1 (This one you frob repeatedly, use with any pet but windserpent):

/console Sound_EnableSFX 0 /cast !Auto Shot /cast Steady Shot /use 10 /click [target=pettarget,exists] The button name from the 'identify the button' macro /console Sound_EnableSFX 1 /script UIErrorsFrame:Clear
 * 1) showtooltip Steady Shot

The '/use 10' line fires my Hand-Mounted Pyro Rocket when it's available.

Macro 1 (for use with wind serpent) /console Sound_EnableSFX 0 /cast [target=pettarget,exists] Lightning Breath /cast !Auto Shot /cast Steady Shot /click [target=pettarget,exists] The button name from the 'identify the button' macro /console Sound_EnableSFX 1 /script UIErrorsFrame:Clear
 * 1) showtooltip Steady Shot

The third line makes your pet horf up a lightning shot whenever it can, without backing off to get at range.

Macro 2 (This one is run by the first) /castsequence reset=4 Kill Command, !Auto Shot, !Auto Shot, !Auto Shot

Identify the button macro /run local f = GetMouseFocus; if f then DEFAULT_CHAT_FRAME:AddMessage(f:GetName) end If you're using a bar replacement mod like Bongos or Bartender, put this in the chat window, mouse over the desired button, and hit enter. Replace the bold text in Macro 1 with the name that appears. On my Bongos 2, the bottom right button is BongosActionButton24. Unfortunately, the first time you run it after starting the game or reloading the UI, you get 'Bongos2 has done a Bad Thing that only Blizzard can do'. It does work if you put the macro on a hidden bar, as well, at least with Bongos2.

Discussion page on how this works, in case it does something Evil.  Page for new macro, not totally useful. 

From the info sticky, the reason for the two separate macros: One MAJOR benefit to this macro - Kill Command and all hunter shots are on SEPARATE macros - meaning if Kill Command "locks" - your shots are not locked with it! You can continue to fire, usually getting another critical strike within a few moments, and "unlock" Kill Command. Occasionally you will still end combat in a "locked" state, where you will not be able to feed your pet, open chests or doors, etc. This is a KNOWN BUG that Blizzard is currently in the process of fixing (supposedly) - to unlock from this state, you must either (1) enter combat, get a critical strike AND cast Kill Command, or (2) Re-log via ALT-F4 (you can't even hit Esc to access the options menu while "locked). The cause of the lock is KC attempting to trigger simultaneously with the start of the casting of another spell, having KC where it is in this macro reduces this occurring, as well as separating the macros so when it does occur, it doesn't prevent you from continuing to fire.

The other key thing to note - SEPARATED MACRO ALLOWS YOU TO DPS A DIFFERENT TARGET THAN YOUR PET. Your macro will mess you up if you try to use it on a target other than the one your pet has, and will end up changing your pet's target to your own, and sometimes changing your target to your pet's.

New macro, fires arcane shot whenever it's up.
1) UNTESTED as of now, from BRK, here

/script UIErrorsFrame:UnregisterEvent("UI_ERROR_MESSAGE"); /castsequence reset=3/combat Arcane Shot, Steady Shot, Steady Shot, Steady Shot;

2) UNTESTED as of now; from a poster named Haukness on same post as above.

/console Sound_EnableSFX 0 /castrandom Arcane Shot, Null /cast Kill Shot /cast Steady Shot /cast [target=pettarget, exists] Kill Command /console Sound_EnableSFX 1 /script UIErrorsFrame:Clear
 * 1) showtooltip Steady Shot

Drain Life/Soul/Soul
I tend to forget to do drain soul for a while, until I get my warlock reflexes. This makes it a bit easier on me because it's the same button. My warlock is 63 at the moment, which is why the downranked spells. And I tend to spaz on whichever button, so I set two of them to change it. Never bother with drain mana, it does so little... I changed the ctrl one to use rank 1 for purposes of getting more mana back than it spent.

/cast [nomodifier] Drain Life(rank 5) /cast [mod:alt] Drain Soul(rank 4) /cast [mod:ctrl] Drain Soul(rank 1)
 * 1) showtooltip

Ground mount with Crusader
Note: Replaced both of these with the mod GupPet on all my characters, since I have so many mounts now that I ran out of room in the castrandom macro I'd been using.

Casts Crusader aura and mounts at the same time. Clicked again, dismounts and casts retribution aura. /cast [nocombat, nomounted] !Crusader Aura; [mounted] !Retribution Aura; /cast [nocombat, nomounted] Charger /dismount
 * 1) showtooltip Charger

Flying mount with crusader
Same as above with a flying mount. /cast [nocombat, nomounted] !Crusader Aura; [mounted] !Retribution Aura; /cast [nocombat, nomounted] Golden Gryphon /dismount
 * 1) showtooltip Golden Gryphon

Fire glove tinker
/use 10

Parachute / Goblin Glider
/use 15
 * 1) showtooltip

Nitro boosts (or any other belt tinker)
/use 6
 * 1) showtooltip

Spec and gear change macro
(This is for my shaman) /equipset [spec:1] Heal; [spec:2] Elemental /usetalents [spec:1] 2; [spec:2] 1
 * 1) show [spec:1] Lightning Bolt; [spec:2] Chain Heal

(Translation by line: Replace icons and set names as necessary. Icon and gear set names are case sensitive. Note; if you use the name of a toggleable apell, like Cat Form for a druid, the icon will show the 'active' blue sunburst when you have that active. And if a spell requires a resource that you don't have, like chi for a monk's Tiger Palm, the icon will appear as the spell's does. (I use a mod to turn my entire icon blue when I have insufficient resources. Not sure what the base UI does...)
 * 1) If I'm in spec 1, show the icon for lightning bolt. If spec 2, chain heal.
 * 2) When I click the icon, if I'm in spec 1, switch to the gear set named 'heal', if 2, 'elemental'.
 * 3) If I'm in spec 1, switch to spec 2, if I'm in spec 2, switch to 1.

Monk: /equipset [spec:1] Heal; [spec:2] Normal /usetalents [spec:1] 2; [spec:2] 1
 * 1) show [spec:1] Invoke Xuen, the White Tiger; [spec:2] Zen Pilgrimage