- 190 Talk
-
Useful macros
| Macros |
|---|
| General guides |
|
Macros Beginners Guide |
| Useful macros (by class) |
New macros
- Put candidates for the "Useful macros" section below here. Move them to Useful macros, if you have verified they work and are useful.
Burst Macro for Protection [PvP] By Mälkiyore-Chambers of Aspects, I find this macro useful when you need to deal heavy damage to a player, (You need 100 Rage to do this properly!!!)
- showtooltip Recklessness
- /cast Recklessness
- /cast Inner Rage
- /cast Shield Block(Defensive Stance)
- /use <damage trinket>
Remember to put in the "(Defensive Stance)" after Shield Block or WoW will be confused as to what you are looking for
Fury Burst Macro [PvP] By Mälkiyore-Chambers of Aspects. This macro is just like the protection one but will do MUCH more damage as you have +10% damage from being in berserker stance
- showtooltip Recklessness
- /cast Recklessness
- /cast Death Wish
- /cast Inner Rage
- /use <damage trinket>
Again you must have 100 rage to do this properly
Fury Charge Macro [PvP/PvE] By Mälkiyore-Chambers of Aspects. This macro is a charge macro just like the one in the Old Macro section, However it is a bit more..."Complicated"
- showtooltip Charge
- /equipslot 16 "Your Main hand/Main 2 Hander"
- /equipslot 17 "Your Offhand/Off 2 hander"
- /cast [nocombat,stance:1] Charge; [combat,stance:3] Intercept; [nocombat,nostance:1] Battle Stance; [combat,nostance:3] Berserker Stance
- /cast Hamstring
This is what it does... If you are not in combat , It will switch you into battle stance. If you are IN combat it will put you into Berserker Stance. If you are in Battle Stance and not in combat when you select a target for this to be used on, It will cast charge (then press it again) and put you into Berserker Stance. When you are IN combat and IN berserker Stance, It will do Intercept. It will apply hamstring once that is done (remember that Charge and Intercept are off the global cooldown!, Be careful if you are going to spam it as it MAY use CHARGE and INTERCEPT togeather!)
All the macro's I have placed have been tested in 4.3
New macro format request
Edit
NOTE: There were substantial changes to macros in
Cataclsym (Patch 4.0.1 and later). Many spells were renamed and much of the scripted command functionality has been modified. In an effort to keep WoWWiki posts relevant please re-validate and re-post macros that work in the current version.
Re-creating old macros
Edit
When re-creating a macro in Useful macros please:
- follow the example format posted below (to get the frame around your macro, add a space before you start it)
- describe what it does
- note the version of WoW that you tested it in
- remove it from the Old macros page
Example macro
Edit
/y Hooray, I made a macro!
- Use: This yells, "Hooray, I made a macro!"
- Works in 4.0.6
Useful macros
Edit
Heroic Throw + Charge macro:
/cast Heroic Throw /cast Charge
This is a macro that puts in a little damage before charging...useful for PvP and PvE. You can add some things to this....Try to mess around with it if ypu want to make it better!
Determine your current map coordinates
Edit
/run px,py=GetPlayerMapPosition("player"); DEFAULT_CHAT_FRAME:AddMessage(format("You are at: %s (%0.1f, %0.1f)",GetZoneText(),px*100,py*100));
This macro will display in your chat frame your current map coordinates with one decimal place precision. "You are at:" is flavor text.
Swapping Talents, Equipment and Stances
Edit
Swap Current Dual-Spec Talent
Edit
/run if( GetActiveTalentGroup() == 1 ) then DEFAULT_CHAT_FRAME:AddMessage("Spec1...");SetActiveTalentGroup(2) else DEFAULT_CHAT_FRAME:AddMessage("Spec2...");SetActiveTalentGroup(1) end
/in 6 /equipset [spec:2]Eq1;Eq2
- Credit: Earthsoul of Thunderhorn, many thanks to Desiday of Antonidas for inspiration
- Use: "Quickly" swaps your Primary/Secondary talent specs.
- Also changes your equipped item set, only need to change the name of Eq1 and Eq2
- Works in 3.1.1
- Note that
/inis a command added by external libraries, such as Ace or Chronos, and will not work without.
Here is one that switches the set before the spec (may avoid some errors):
/equipset [spec:1] PSS ; SSS /usetalents [spec:1] 2; [spec:2] 1
Just have to replace PSS with the name of your primary spec set, and SSS with the name of your secondary spec set.
Swap Talents, Equipment, and Stance
Edit
This macro will switch your talent spec and put you into the respective gear and stance.
/equipset [spec:1] <Secondary Set Name>; <Primary Set Name> /cast [spec:1] <Secondary Stance>; <Primary Stance> /usetalents [spec:1] 2; 1
Here is an alternate version for fury warriors that cannot use the above macro due to Titan's Grip. Left click swaps the talent spec, right click swaps gear and stance.
#show [spec:1] <Secondary Stance>; [spec:2] <Primary Stance> /usetalents [button:1,spec:1] 2; [button:1,spec:2] 1 /equipset [button:2,spec:1] <Primary Set Name>; [button:2,spec:2] <Secondary Set Name> /cast [spec:1] <Primary Stance>; [spec:2] <Secondary Stance>
A one button spec, stance and equipment interchanger, caters for Furry Warriors Titan's Grip
/cast [stance:3] Defensive Stance; [Stance:1] Berserker Stance /usetalents [spec:1] 2; [spec:2] 1 /in 5.30 /equipset [spec:1] Tank ; DPS
Offhand weapon switching
Edit
You might find yourself in a situation where you have two offhand weapons with the same name but different poisons on them and you want to switch between them quickly. Or perhaps you just want to alternate between two offhand weapons with just one hotkey.
#showtooltip [mod] 0 16; 17 /equipslot 17 0 16
- Keep your alternate dagger in the sixteenth slot (lower right corner) of your main (rightmost) backpack.
- The number 17 refers to your offhand weapon slot.
- #showtooltip makes the macro's icon and tooltip display the icon of the equipped weapon, or hold down a modifier key (say Alt) and it will display the icon of the weapon that's ready to be switched in.
- Works in 3.2.2
Suppressing Sound and Error Messages
Edit
No Error Text or Sound (Improved)
Edit
For people that macro cd's into normal spells, such as petattacks, trinkets, everlasting potions, etc. it gets annoying being spammed with "This ability is not ready" and that fun error sound. I've seen a common solution online (similar to the macro above) that fixes this problem with a single issue that's almost as bad as the problem it's fixing.
For people who play without sound to begin with, these macro will -enable your sound- every time you use them. So here is my solution:
/run sfx=GetCVar("Sound_EnableSFX");
/console Sound_EnableSFX 0
/cast ExampleTrinket1
/cast ExampleSpell2
/run UIErrorsFrame:Clear()
/run SetCVar("Sound_EnableSFX",sfx);
The overall effect is the same, but my macro checks to see what you sound currently is set to (enabled or disabled), disables it for the error, and then sets it back where you had it. (ex: if your sound was already off, it will prevent the text error without turning your sound on at the end)
- Credit: Xaeros of Shadowmoon
- Use: Replace "ExampleTrinket1" and "ExampleSpell2" with your cd(s) and abilities, then drag to your bar like a normal macro.
- Works in 3.3.3a
No Error Text or Sound (Improved Again)
Edit
This is just like the one above but with an added tooltip that matches the original skill, and doesn't disable sound for the skill's error messages. Sound and error messages for the trinket use are still suppressed though. If you set the name of the macro to a blank space, you can't even tell it's a macro. This one is designed more for trinket use than anything else, but it's here for when you only want to silence one of the two skills this macro uses.
#showtooltip ExampleSpell1
/run sfx=GetCVar("Sound_EnableSFX");
/console Sound_EnableSFX 0
/use ExampleTrinket2
/run UIErrorsFrame:Clear()
/run SetCVar("Sound_EnableSFX",sfx);
/cast ExampleSpell1
If you're running low on characters and you're using this for a trinket, you can replace the use command with "use 13" (for upper trinket) or "use 14" (for lower trinket).
- Credit: Vandalite of Feathermoon, and Xaeros of Shadowmoon for the macro this was based on.
- Use: Replace "ExampleTrinket2" and "ExampleSpell1" With your cooldowns and abilities, then drag to your bar like a normal macro.
- Works in 4.2
Training and Levelling
Edit
Learn all Spells from a Trainer
Edit
/run LoadAddOn"Blizzard_TrainerUI" f=ClassTrainerTrainButton f.e = 0 if f:GetScript"OnUpdate" then f:SetScript("OnUpdate", nil)else f:SetScript("OnUpdate", function(f,e) f.e=f.e+e if f.e>.01 then f.e=0 f:Click() end end)end
- Click a second time to stop learning
Tanks: Check unhittability and avoidance (+ how far away hard-defcap)
Edit
/run local b,d,p,r,a=GetBlockChance(),GetDodgeChance(),GetParryChance(),GetCombatRating(CR_DEFENSE_SKILL) a=1/(.0625+.956/(r/122.9625)) ChatFrame1:AddMessage(format("Unhittable: %.2f%% Avoidance: %.2f%% Defense %+.0f rating",b+d+p+5+a,d+p+5+a,r-689))
Trading, Bags and Money
Edit
Print Money and Currencies to Chat Frame
Edit
/script local cu = GetMoney(); print(GetCoinTextureString(cu,"12")) /stopmacro [btn:1] /script yy = GetNumWatchedTokens(); for xx = 1, yy,1 do aa, bb, cc, dd, ee = GetBackpackCurrencyInfo(xx); print(bb, aa) end
- Left click to display your total money in the chat window.
- Click any other way to display your money and all your watched currencies.
- Works in 3.3.2
Sell all grey items
Edit
/run local c,i,n,v=0;for b=0,4 do for s=1,GetContainerNumSlots(b)do i={GetContainerItemInfo(b,s)}n=i[7]if n and string.find(n,"9d9d9d")then v={GetItemInfo(n)}q=i[2]c=c+v[11]*q;UseContainerItem(b,s)print(n,q)end;end;end;print(GetCoinText(c))
- Use: sells all grey items, shows what was sold and how much money was made from selling
- Works in 4.0.3a
Destroy all grey items
Edit
/run local i,n=0;for b=0,4 do for s=1,GetContainerNumSlots(b) do ClearCursor();i={GetContainerItemInfo(b,s)};n=i[7];if n and string.find(n,"9d9d9d") then PickupContainerItem(b,s); DeleteCursorItem() end end end
- Use: destroy all grey items without confirmation
- Works in 4.0.6
Item Link
Edit
/run local s={"10000"} for i=1,#s do DEFAULT_CHAT_FRAME:AddMessage("\124c00ffffff\Item Link: \124c00FF0033\124Hitem:"..s[i]..":0:0:0:0:0:0:0:0\124h[ID: "..s[i].."]\124h\124r\124c00ffffff - Click ID for item info.")end
- Use: Displays an item link in the default chat frame.
- Replace "10000" with the desired item ID #.
- Works in 3.3.2
Spell Link
Edit
/run local s={"10000"} for i=1,#s do DEFAULT_CHAT_FRAME:AddMessage("\124c00ffffff\Spell Link: \124c00ff0033\[ID: "..s[i].."] \124c00ffffff\- "..GetSpellLink(""..s[i])..".")end
- Use: Displays a spell link in the default chat frame.
- Replace "10000" with the desired spell ID #.
- Works in 3.3.2
Professions
Edit
Link your professions in the trade channel
Edit
Link a single profession
Edit
/script CastSpellByName(#prof#);SendChatMessage("I'll create items against mats, look out: "..GetTradeSkillListLink(),"CHANNEL",nil,GetChannelName("Trade - City"));CloseTradeSkill();
This macro sends a link with your Profession recipes to a Channel.
Replace #prof# with your profession. If your Profession is Engineering, then write:
/script CastSpellByName("Engineering");SendChatMessage("I'll create items against mats, look out: "..GetTradeSkillListLink(),"CHANNEL",nil,GetChannelName("Trade - City"));CloseTradeSkill();
Link two professions
Edit
One button to link both of your professions to trade chat and guild chat. Just replace "Inscription" and "Enchanting" with your two professions. Also, trade chat is not necessarily always your number 2 channel. Make sure you check it and adjust accordingly. Replace channel with guild to link it to your guild, or raid to link to raid chat.
/cast Inscription
/run SendChatMessage("Free with your mats "..GetTradeSkillListLink(), "channel", nil, "2")
/cast Enchanting
/run SendChatMessage(GetTradeSkillListLink().." I'll even give you 5g if I skill up!", "channel", nil, "2") CloseTradeSkill()
One-Button Disenchant/Milling/Prospecting
Edit
#showtooltip /use [nomod] Disenchant; [mod:alt] Milling;
You can of course change the order, skill and modifier to suite your needs
AIO Profession Button
Edit
#showtooltip [nomod] Enchanting; [mod:alt] Inscription; [mod:ctrl] Cooking;[mod:shift] First Aid; /use [nomod] Enchanting; [mod:alt] Inscription; [mod:ctrl] Cooking; [mod:shift] First Aid;
You can of course change the order, skill and modifier to suite your needs
Fishing
Edit
Equip Set With Find Fish Toggle
Edit
/equipset [equipped:Fishing Poles] 1; Fishing /run SetTracking(1,false) /stopmacro [equipped:Fishing Poles] /run SetTracking(1,true)
- Equips your "Fishing" set if you don't have a pole equipped and enables fish tracking, or equips set 1 if you do have a pole equipped and disables Find Fish.
- The tracking toggle is set up for the first item in the tracking drop down menu. If Find Fish is the 2nd or 3rd item on the drop down, you will need to change the 1, to 2 or 3.
- Useful if you're a miner/herbalist and you don't want to confuse fish with Firebloom.
- Works with v4.0.3
Modifier Swap
Edit
#showtooltip /cast [nomod] Fishing /equip [noequipped:Fishing Poles, mod] Nat Pagle's Extreme Angler FC-5000 /equip [equipped:Fishing Poles, mod] Titansteel Guardian /equip [equipped:Fishing Poles, mod] Matriarch's Spawn
- Credit: Xaeros of Shadowmoon
- Use:(Make sure to replace the fishing pole/weapons with your own)
- On click, you will attempt to cast fishing.
- On mod+click you will switch between your fishing pole and your weapon(s).
- Works in 3.3.3a
Set Swap
Edit
/equipset [noequipped:Fishing Pole, mod] Fishing; [noequipped:Fishing Pole, nomod, spec:1] [mod, spec:1] Set1; [noequipped:Fishing Pole, nomod, spec:2] [mod, spec:2] Set2 /use [equipped:Fishing Pole, nomod] Fishing
- Uses the Blizzard Equipment Manager
- Requires one set called Fishing that contains your fishing pole and any equipment you want to wear while fishing (fishing hat, gloves or similar) and two sets that fit your specs (replace Set1 and Set2 with your names)
If your fishing set is equipped, click will cast Fishing, mod-click will equip the set fitting your current spec. Otherwise, mod-click will equip your fishing set, normal click will equip the spec-relevant set.
Alternate version for toons with just one spec or equipment set:
/equipset [noequipped:Fishing Pole, mod] Fishing; [noequipped:Fishing Pole, nomod] [mod] Set1 /use [equipped:Fishing Pole, nomod] Fishing
Automated Equipment Manager Fishing & Lure Macro
Edit
/equipset [noequipped:Fishing Poles, nomod] Fishing /cast [equipped:Fishing Poles, nomod] Fishing /use [mod:shift] Bright Baubles /use [mod:shift] 16 /equipset [mod:alt] Normal /equipset [mod:ctrl] DPS
- To use:
- Create a Fishing outfit in your equipment manager (or if you use the Outfitter Addon, save the outfit to server)
- Outfit must be named Fishing
- Create a Normal outfit for your primary spec
- Create a DPS outfit for your secondary spec (or remove the last line in the macro if you only have one set of gear/spec)
- If you don't have your fishing pole equipped, it will automatically equip your "Fishing" outfit from your equipment manager
- Clicking on this macro after your fishing pole is equipped, will automatically cast your line and start fishing.
- Shift-Clicking on this macro will apply a lure to your equipped fishing pole (Change Bright Baubles to any lure you'd like. I.E. Weather-Beaten Fishing Hat)
- Alt-Clicking on this macro will equip your Normal set of gear.
- Ctrl-Clicking on this macro will equip your DPS set of gear.
Binding this macro to a button on your mouse will allow for easy one handed casting and reeling. --Taurolyon (talk) 15:53, October 14, 2009 (UTC)
Multi Gathering Macro
Edit
#showtooltip /cast [nomodifier] <Mount of your choice> /cast [modifier:ctrl] Find Minerals /cast [modifier:shift] Find Herbs /cast [modifier:alt] Smelting
Can of course be modified to your liking and professions
- Not holding down a button: Will summon a mount of your choice (Note:<Mount of your choice> has to be swapped with a mount in your possession).
- Holding down ctrl: Will make mining nodes appear on your minimap.
- Holding down shift: Will make herb nodes appear on your minimap.
- Holding down alt: Will show the Smelting pane, where you can smelt your ore bars.
Enchant to Vellum Macro
Edit
/run DoTradeSkill(GetTradeSkillSelectionIndex()); /run for i=0,4,1 do for l=1,GetContainerNumSlots(i),1 do if GetContainerItemID(i,l)==38682 then UseContainerItem(i,l);end;end;end; /run ReplaceEnchant(); /run ClearCursor();
- To Use:
- Open Enchanting Skill
- Select Enchantment in skill panel to apply
- Have Enchanting Vellum in your inventory
- Press macro
- Credit: Ajudication of Terokkar-US
Raiding and Parties
Edit
Reload UI and notify group
Edit
Reload your UI, send a message to your party/raid telling them you're doing so and set an appropriate /afk message.
/afk reloading UI
/run SendChatMessage("reloading my UI - afk for a sec", ((UnitInRaid("player")and "RAID")or(GetNumPartyMembers()>0 and "PARTY")or "AFK"));
/console reloadui
- Credit: Ashel of Antonidas
- Works in 3.2.0a
Autoassist tank if the tank's target can be attacked
Edit
/target [target=focustarget, harm, nodead]
- Use /focus to set focus on the main tank (or right click on the tank and select focus).
- Your target will be set to the main tank's target, but only if the tank is targeting an enemy which is alive.
- Works in 3.3
#show Attack /target [target=focustarget, harm, nodead] /startattack
- The melee dps version also starts attacking, and sets the icon to your attack ability.
Multi-Purpose Party/Solo Attack Spell
Edit
#showtooltip <spellname> /cast [harm] [@targettarget, harm] [@focus, harm] [@focustarget, harm] <spellname>
- Note: Replace <spellname> with the name of the ability you want to cast. This includes the <>! And don't forget both places!
- Use: Cast an attack spell with limited need to change target. Is not useful for AoE spells as they often do not use a direct target.
- Credit: Wu of Kael'thas
- Tested and working in 4.0.6
This macro works a little differently than some others, as it does not perform a change to your playstyle, but merely limits mouse clicks (if desired) and encourages coordinated assaults. This casts a spell or ability on a priority based target. If you are targetting an enemy, it will cast at your target; if you are targeting a friend who is attacking a mob, it will cast at their target; if you have no target, but your focus is a mob (i.e. boss fight), it will cast at the mob; and finally if you have no target but your focus is friendly and has an enemy target, it will cast at the enemy.
This has been particularly useful for our guild, allowing us to easily coordinate assaults without the requirement for mad AoE damage. Our Off-tanks typically select the main tank as their focus, while our DPS (ranged and melee) select their particular tank or off tank. When the focus changes targets, the DPS are immediately updated to the new target. Quite Handy! For soloing or special circumstances where each person needs their own target, the macros don't hinder us in anyway because it chooses OUR target first.
Example
#showtooltip Fire Blast /cast [harm] [@targettarget, harm] [@focus, harm] [@focustarget, harm] Fire Blast
Multi-Purpose Party Healing
Edit
#showtooltip <spellname> /cast [help] [@targettarget, help] [@focustarget, help] [@focus, help] [@player] <spellname>
- Note: Replace <spellname> with the name of the ability you want to cast. This includes the <>! And don't forget both places!
- Use: Cast an healing/buff spell with limited need to change target. Is not useful for AoE spells as they often do not use a direct target.
- Credit: Wu of Kael'thas
- Tested and working in 4.0.6
This macro works like the above, save the order of priority is switched a little (based on observed need). It can be used with a number of strategies, particularly when combined with the above macro. Priorities are as follows: If you are targeting a friendly, cast at them; if your target is targeting a friendly, cast at the friendly (useful for quick adds and bosses with random targeting); if your focus is targeting a friendly, cast at the friendly (useful for bosses); if your focus is friendly, cast at the focus; otherwise, cast at yourself.
Particular bonus when you are using the Multi-Purpose Attack Spell above, as it means you may keep the same person targeted for both healing and harming. You may also create awesome heal groups, for parties with weak AoE heals setting one person as the "main heal". These are just a couple of uses.
Parties
Edit
Announce Vent in Party
Edit
/party My Guild Vent | abc.leetvent.com /party My Guild Vent | 1234 /party My Guild Vent | secretpassword /party Normalize Vent - http://some.vent.server/somewhere /threshold rare
- Use: Announces your Vent details to your party, sets your loot threshold Rare if you are the leader.
- Works in 3.1.1
Raiding
Edit
Announce Vent in Raid
Edit
/rw Vent Details Posted /raid My Guild Vent | abc.leetvent.com /raid My Guild Vent | 1234 /raid My Guild Vent | secretpassword /raid Normalize Vent - http://some.vent.server/somewhere /threshold epic /master player
- Use: Announces your Vent details to your raid, sets your loot threshold Epic master looter (with yourself as the master looter) if you are the leader.
- Works in 3.1.1
List raid members without a food buff
Edit
Use this version to list members without a food buff to yourself:
/run nfb="[Eat!]: ";for i=1,GetNumRaidMembers()do for b=1,40 do ua=UnitAura('raid'..i,b);if ua=="Well Fed"or ua=="Food"then break;elseif b==40 and ua~="Well Fed"then nfb=nfb..UnitName('raid'..i).." ";end;end;end;print(nfb);
Use this version to send the list to raid chat:
/run nfb="[Eat!]: ";for i=1,GetNumRaidMembers()do for b=1,40 do ua=UnitAura('raid'..i,b);if ua=="Well Fed"or ua=="Food"then break;elseif b==40 and ua~="Well Fed"then nfb=nfb..UnitName('raid'..i).." ";end;end;end;SendChatMessage(nfb,"raid");
- Credit: Xaeros of Shadowmoon
- Use: Click the macro to report members in raid that are neither food buffed nor eating.
- Works in 3.3.3a
List raid members without a flask active
Edit
Use this version to list members without an active flask to yourself:
/run nf="[Flask!]: ";for i=1,GetNumRaidMembers()do for b=1,41 do ufl=UnitAura('raid'..i,b);if ufl then if strfind(ufl,"Flask")or strfind(ufl,"Distilled")then break;end;elseif b==41 then nf=nf..UnitName('raid'..i).." ";end;end;end;print(nf);
Use this version to send the list to raid chat:
/run nf="[Flask!]: ";for i=1,GetNumRaidMembers()do for b=1,41 do ufl=UnitAura('raid'..i,b);if ufl then if strfind(ufl,"Flask")or strfind(ufl,"Distilled")then break;end;elseif b==41 then nf=nf..UnitName('raid'..i).." ";end;end;end;SendChatMessage(nf,"raid");
- Credit: Xaeros of Shadowmoon
- Use: Click the macro to report members in raid that are neither food buffed nor eating.
- Works in 3.3.3a
- Will not report people using the Flask of the North.
Just For Fun
Edit
Below are macros that serve to real purpose in-game beyond amusement.
Mounts
Edit
There's a whole page dedicated to Mount Macros.
Vanity Pets
Edit
/run DismissCompanion("CRITTER"); CallCompanion("CRITTER", random(GetNumCompanions("CRITTER")));
- Use: This will first attempt to dismiss any vanity pet you have summoned, and then attempt to randomly summon a new one.
- Works in 3.1.2
/run local z;for i=GetNumCompanions("CRITTER"),1,-1 do local _,_,_,_,s = GetCompanionInfo("CRITTER",i); if s==1 then z=1;end end if (z==nil) then CallCompanion("CRITTER", random(GetNumCompanions("CRITTER"))) else DismissCompanion("CRITTER") end
- Use: This is a more advanced version of the above macro, as it first attempts to determine whether or not you already have a pet summoned. If not, it summons one, else it dismisses it. (Note: There's no IsMounted() equivalent for pets, hence the for loop)
- Works in 3.1.2
Summon Random Pet with salutation
Edit
/run local z;t="CRITTER"u=GetNumCompanions(t)v=random(u)for i=u,1,-1 do local _,_,_,_,s=GetCompanionInfo(t,i);if s==1 then z=1;end end if(z==nil)then c,n=GetCompanionInfo(t,v)SendChatMessage("Wow, it's a "..n)CallCompanion(t,v) else DismissCompanion(t)end
- Credit: Strunge 12:55, December 23, 2009 (UTC) (Talk)
- Use: This is a compact version of the above macro that also sends a chat message stating what pet, you have summoned. All 255 characters are used, so you can only change the text in the SendChatMessage-part to a statement with the same amount of characters.
- Works in 3.3
Random Pet with Announce
Edit
/run g={"their","his","her"}; x=UnitSex("player");i=random(GetNumCompanions("critter"));id,name=GetCompanionInfo("critter",i);SendChatMessage("gasps as "..name .." hops out of "..g[x] .." pocket!","emote");CallCompanion("critter",i);
- Credit Xaeros of Shadowmoon
- Use: Click to summon a random vanity pet. This macro has 22 free characters, so feel free to change your message. By default it says: "[player] gasps as [pet] hops out of [his/her] pocket! (The [his/her] is based on the character's gender)
- Works in 3.3.3a
Target's Gender
Edit
Have you ever wondered, "Is Razorscale a boy or a girl?", when directing a raid to attack "him" or "her"? Well now you can pronoun with confidence!
Maybe not the most "useful" macro, but a fun one :) Use this to discover your target's gender. You may be surprised, every once in a while Blizz slips up and flags Male NPCs as Female and vice-versa.
/run local x=UnitSex("target");local g={"n unknown!", " boy!", " girl!"} n=GetUnitName("target");if IsShiftKeyDown()then SendChatMessage(n .." is a" ..g[x],"SAY");else print(n .." is a" ..g[x]);end
- Credit: Xaeros of Shadowmoon
- Use: Click the macro to print the target's gender. Shift+Click to announce in /SAY.
- Will not help in the Quest:Tails Up (Cats are flagged as unknown, Bears are all flagged male.)
- Works in 4.0.3a
Raid Blame (now with Guild Blame!)
Edit
Have you ever been in a raid that had an unfortunate wipe? Has your raid ever been left wondering, "What just happened? Who should we blame this on?"? Well, wonder no more! With this macro blame can always be placed upon those who most deserve it with 100% accuracy! [NEW!] Too much blame to go around, and not enough raiders? Well now you can blame the whole guild!
/run x=GetNumGuildMembers(1)g=x>0 and GetGuildRosterInfo(random(1,x))or 0;y=GetNumRaidMembers()r=y>0 and GetUnitName('raid'..random(1,y))or 0;if IsShiftKeyDown()then c,b="Raid",r else c,b="guild",g end;SendChatMessage("[iBlame]: "..b..".",c);
- Credit: Xaeros of Shadowmoon
- Use: Click the macro to blame any member of your guild in /guild ! (ex: [iBlame]: RandomGuildie)
- Use: Shift+Click the macro to blame any member of your raid in /raid ! (ex: [iBlame]: RandomRaider)
- Extra: This macro currently pulls a random guild member from the entire guild, if you'd rather only blame ONLINE members, change "x=GetNumGuildMembers(1)" to "x=GetNumGuildMembers(0)"
- Works in 3.3.3a
Food & Water
Edit
Eating and drinking
Edit
/use [btn:1] <name of water> /use [btn:1] <name of food>
- Use: Let you eat an drink at the press of one button
- Works in 3.3.5
Eating and drinking with dynamic food & water
Edit
#showtooltip [nomod:alt] 1 20; 1 16 /use [mod:shift][btn:3] 1 20 /use [mod:alt][btn:2] 1 16 /stopmacro [mod][nobtn:1] /use [nomod][btn:1] 1 20 /use [nomod][btn:1] 1 16
- Use:This macro uses Items from a fixed Bag slot so you can easily exchange the food (B1 Slot 20)/water (B1 Slot 16) you want to be consumed.
- Default: this macro will use the item in slot 20 and 16 of the first bag (to the left of the bavkpack wich is zero) so you immediately start eating an drinking.
- Modifiers: You can use the modifiers [alt] and [shift] if you only want to drink or eat. The Modifier alt also views a count of water currently in bag.
- Buttons: btn1 is default; btn3 is similar to the shift modifier; btn2 is similar to the alt modifier.
Old macros
Edit
Macros written before Patch 3.1 that have not been re-validated in newer patches can be found on the old macros page.