|
Post by Dustin on Oct 14, 2006 14:30:08 GMT 1
What this does: It checks for the clearcast or elemental mastery buffs. If present it casts a full power earthshock. If they aren't there, it casts R1 earthshock (which costs about 30 mana).
Copy and paste the following into a new macro. Put the macro in place of your EarthShock.
/script z=0 for i=1,16 do a=UnitBuff("player",i) if a then if string.find(a, "ManaBurn") or string.find(a, "WispHeal") then z=1 break end end end if z==1 then CastSpellByName("Earth Shock") else CastSpellByName("Earth Shock(Rank 1)") end
|
|
|
Post by Dustin on Oct 14, 2006 14:33:55 GMT 1
The macro, changed for Frost Shock:
/script z=0 for i=1,16 do a=UnitBuff("player",i) if a then if string.find(a, "ManaBurn") or string.find(a, "WispHeal") then z=1 break end end end if z==1 then CastSpellByName("Frost Shock") else CastSpellByName("Frost Shock(Rank 1)") end
Simple, easy - as you see only the name in the last 2 sections needs to be altered. You can spam R1 Earthshock for low mana and then cast Frost Shock when free if you want =)
NOTE: Blizzard are set to increase the limit of buffs you can have when The Burning Crusade is rolled out. The macros will need to be altered then in case you have over 16 effects on you.
Where it says "for i=1,16" change the 16 to the maximum buffs you can have (I think it will be 32, so "for i=1,32")
Oh - and please leave feedback on this. It helps to keep spirits up and makes me want to keep posting things on here rather than not bothering because it seems no one is interested.
|
|
|
Post by yanzi on Oct 14, 2006 16:56:15 GMT 1
Works like a charm, nice one Dust!
|
|