Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Useful macros/Mage

From WoW Classic Wiki

Macros Beginners Guide
HOWTO: Make a Macro
UI FAQ/Macros and Scripts
Category:Macros


Mage

Conjure Next Gem

Conjures a Mana Ruby, a Mana Citrine, and a Mana Jade with just one macro. Requires multiple button presses between gem type.

/script local c=function(a) local f,d a="Mana "..a for i=0,4 do for k=1,GetContainerNumSlots(i) do d=GetContainerItemLink(i,k) or "" if strfind(d,a) then f = 1 end end end if not f then CastSpellByName("Conjure "..a) end end c "Ruby" c "Citrine" c "Jade"

Cast by Level

Arcane Intellect

Casts the highest rank Arcane Intellect available for the friendly target. This script also allows for self-casting by holding down the ALT key while casting.

Note: As of 10/14/2006 under Blizzard UI and Macro forum, Blizzard may make this script obsolete when v2.0 (Burning Crusade) is released. It seems they may allow some beneficial buffs to scale with the player's or target's level.

/script CSB=CastSpellByName; if IsAltKeyDown() then CSB("Arcane Intellect",1) else S="Arcane Intellect(Rank " sR={1,4,18,32,46}; T=UnitLevel("target"); if (T ~= nil) then for i=5,1,-1 do if (T >= sR[i]) then CSB(S..i..")"); return end end end end

Conjured Water

Casts the highest rank of conjured water available for the friendly target. If no target is specified, then the caster's level will be used. This script also allows for self-casting by holding down the ALT key while casting.

/script CSB=CastSpellByName T=UnitLevel("target") S="Conjure Water" sR={1,5,15,25,35,45,55} if (IsAltKeyDown() or T<1) then CSB(S) else for i=7,1,-1 do if (T >= sR[i]) then CSB(S.."(Rank "..i..")"); return end end end

Conjured Food

Casts the highest rank of conjured food available for the friendly target. If no target is specified, then the caster's level will be used. This script also allows for self-casting by holding down the ALT key while casting.

/script CSB=CastSpellByName T=UnitLevel("target") S="Conjure Food" sR={1,5,15,25,35,45,55} if (IsAltKeyDown() or T<1) then CSB(S) else for i=7,1,-1 do if (T >= sR[i]) then CSB(S.."(Rank "..i..")"); return end end end

Chained Spell Casts

Although recent patches have disallowed the ability to chain cast ToEP and ZHC trinkets, we can still chain cast PoM and either ToEP or ZHC with a spell of our choosing. This script requires two things.

  1. Trinkets linked to an action bar. This is useful to view when the spell has reached it's cooldown. The script above for using a bandage on yourself has a nice description of the action bar slot numbers and the UseAction function.
  2. The number of the spell you wish to cast, not the name. This script may exceed the 255 character limit imposed by WoW. You may use a script to find the spell number.

This example uses the ZHC trinket, followed by PoM and then Rank 11 Frostbolt.

/script UseAction(37); SpellStopCasting(); CastSpell(82,"spells"); SpellStopCasting(); CastSpell(158,"spells");

Request for Salvation

This script is similiar in nature to the Assist Main Tank script.

  1. If the script has not set a target and you Click the script, you will receive an interface error.
  2. If you <Alt>Click the script with a target, you will send them a private tell "You are my Salvation!".
  3. After setting the script target, no matter your target, and you just click the script, you will privately ask for Salvation "Salvation Please. Thanks!".

/script if (IsAltKeyDown() and UnitIsFriend("player","target")) then SV=UnitName("target"); SendChatMessage("You are my chosen Salvation. : )", "WHISPER", "Common", SV); else SendChatMessage("Salvation Please. Thanks!", "WHISPER", "Common", SV); end

Polymorph

Tell Targeters To Switch Targets

This script casts polymorph, and searches through the party and raid for anyone who is targeting what you are going to polymorph, and whispering them to change targets. This is much better than most people's announcement scripts (although if you're fighting multiple mobs with the same name it can be confusing).

/cast Polymorph
/script n,s=UnitName,UnitIsUnit;y,p,r,t="player","raid","party","target";for i=1,40 do a=((n(r..i)and r..i)or(n(p..i) and p..i)or nil);z=a and(not s(a,y)) and s(a..t,t) and SendChatMessage("Sheeping your: "..n(t),"WHISPER",nil,n(a))end

Announce Sheep Success

This script casts polymorph, and announces whether it was successful or not. It's very shaky, so feel free to improve upon it

/p Sheeping %t
/z debuff=nil
/cast Polymorph
/in 3 /z if UnitDebuff("target", 1) then debuff=string.sub(UnitDebuff("target",1), 17) end; if debuff=="Spell_Nature_Polymorph" then msg="Sheeped" else msg="NOT Sheeped!" end; SendChatMessage(msg, "PARTY")

--Shariden 19:42, 2 October 2006 (EDT)

Random Polymorph

Unfortunately this requires two scripts. The first script provides an index for both polymorph ranking (Ply) and text (Ptx) to be used in a tell should you wish to announce the polymorph. Remember, each time you load WoW, you must execute the first script (sorry).

/script Ply,Ptx={'(Rank 4)',': Pig',': Turtle'},{'Sheep','Pig','Turtle'}

The second script actually does the polymorph. It first checks to see if you've set a static or fixed polymorph spell to use (fP). If not, then it goes through and randomly picks the polymorph to use. This script assumes you have Rank 4 (sheep), Pig and Turtle. If you only have two polymorph abilities, you will need to change math.random from (3) to (2). Adjust the SendChatMessage accordingly if you wish to announce in say, party, raid or guild (that wouldn't be annoying :).

/script if (fP==nil) then Ix=math.random(3); else Ix=fP end; if (IsAltKeyDown()) then M=format("Level %d %s looks like a %s...",UnitLevel("target"), UnitName("target"),Ptx[Ix] ); SendChatMessage(M,"say"); end; CastSpellByName("Polymorph"..Ply[Ix]);

If you are running with more then one mage and wish to assign polymorphs to mages for distinction, set the fP variable to Sheep, Pig, Turtle or Random respectively.

  1. /script fP=1;
  2. /script fP=2;
  3. /script fP=3;
  4. /script fP=nil;