Useful macros/Druid
More actions
|
Macros Beginners Guide |
Druid
Mark of the Wild to a target's level
|
/script r=7;l={1,10,20,30,40,50,60};if not UnitIsFriend("player","target")then TargetUnit("player");end;t=UnitLevel("target");for i=r,1,-1 do if (t>=l[i]-10) then CastSpellByName("Mark of the Wild(Rank "..i..")");break;end;end |
Rejuvenation to target's level
|
/script r=10;l={4,10,16,22,28,34,40,46,52,58};if not UnitIsFriend("player","target")then TargetUnit("player");end;t=UnitLevel("target");for i=r,1,-1 do if (t>=l[i]-6) then CastSpellByName("Rejuvenation(Rank "..i..")");break;end;end |
Regrowth to target's level
|
/script r=9;l={12,18,24,30,36,42,48,54,60};if not UnitIsFriend("player","target")then TargetUnit("player");end;t=UnitLevel("target");for i=r,1,-1 do if (t>=l[i]-6) then CastSpellByName("Regrowth(Rank "..i..")");break;end;end |
Thorns to targets's level
|
/script r=6;l={6,14,24,34,44,54};if not UnitIsFriend("player","target")then TargetUnit("player");end;t=UnitLevel("target");for i=r,1,-1 do if (t>=l[i]-10) then CastSpellByName("Thorns(Rank "..i..")");break;end;end |
Nature's Swiftness + Healing Touch - without global cooldown
|
/cast Nature's Swiftness /script SpellStopCasting(); /cast Healing Touch(Rank 10) /script if ( SpellIsTargeting() ) then SpellTargetUnit ("player"); end |
(NB: Use Healing Touch(Rank 9) and lower for lower ranks of the spell)
Innervate on yourself and retarget last target
|
/script TargetUnit("player") /cast Innervate /script TargetLastTarget() |
No double-innervate (Useful for raids)
(You must have a target selected. Checks that the target is friendly, uses mana, and doesn't already have innervate. Outputs an error to the chat window if it fails.)
|
/run t="target" p="player" b="Innervate" if (UnitIsFriend(p,t) and UnitManaMax(t)>200) then for i=1,16 do if UnitBuff(t,i) then if not string.find(UnitBuff(t,i), b) then CastSpellByName(b) end end end else ChatFrame1:AddMessage("Did not "..b.."!") end |
Complex heal
Building on the other macros, you can do a lot in 255 characters. This macro will cast a heal if the target is friendly and you have mana, Emote "Out Of Mana" if not, Tell the team who you are healing, and do a self cast if you do not have a target.
|
/run t="target" p="player" m=546 if UnitMana(p) > m then if not UnitName(t) or UnitIsEnemy(p,t) then TargetUnit(p) t="player" end CastSpellByName("Healing Touch") SendChatMessage("Healing %T","Party") TargetLastEnemy() else DoEmote("oom") end |
For a step by step description of this macro see Complex heal macro