Here are some macros for druids and some others that might be helpfull to other classes.
• Mark of the Wild
Description:
This macro will cast the correct MotW spell depending on the targets level, and does a chat message saying what level is being cast. This will select your character if no one else is targeted.
Script:
/script P="player" T="target" S="Mark of the Wild(Rank " L=UnitLevel(T) E=")" M=5 R=math.min(floor(L/10)+2,M)
/script if (UnitExists(T)) then CastSpellByName(S..R..E) else R=M; TargetUnit(P) CastSpellByName(S..R..E) end;
/script SendChatMessage(S..R..E)
Important Notes:
Update the M=5 to be your highest level of MotW. M stands for max in this case, and the macro will never try to cast a higher level spell that what is listed there.
• Thorns
Description:
This macro will cast the correct Thorns spell depending on the targets level, and does a chat message saying what level is being cast. (almost the same as the MotW one above) This will select your character if no one else is targeted.
Script:
/script P="player" T="target" S="Thorns(Rank " L=UnitLevel(T) E=")" M=5 R=math.min(floor((L+16)/10),M)
/script if (UnitExists(T)) then CastSpellByName(S..R..E) else R=M; TargetUnit(P) CastSpellByName(S..R..E) end;
/script SendChatMessage(S..R..E)
Important Notes:
Update the M=5 to be your highest level of Thorns. M stands for max in this case, and the macro will never try to cast a higher level spell that what is listed there.
• Filling Mana
Description:
This macro is designed to fill your mana and let your party know that they should wait for you (if you are in a party). In addition if you are a night elf it casts ShadowMeld so you are hidden while you are filling.
Script:
/script if (GetNumPartyMembers() > 0) then SendChatMessage("Hold Please. Filling Mana.","PARTY");end;
/sit
/script UseContainerItem(4,9)
/cast Shadowmeld(Racial)
Important Notes:
This requires you to keep your mana drinks in a specific slot in your bags. The (4,9) above means the 4th bag (not counting first main bag) and the ninth slot in there (counting from the top left). Adjust these numbers as necessary. Also if you aren't a druid remove the last line.
• Healing
Description:
This is a very basic macro that casts a healing spell and also says you are casting it so other healers in the group know what you are doing. I just copied this script a few times and changed the spell it was casting for the different healing spells I have.
Script:
/script P="player" T="target" S="Healing Touch(Rank "
/script if (UnitExists(T) and UnitIsFriend(P,T)) then CastSpellByName(S) SendChatMessage("begins casting Healing Touch (lvl on %T.", "Emote") else TargetUnit(P) CastSpellByName(S); end
Here are the updated MotW and Thorns scripts. These use emotes instead of general chat to let the person know you buffed them, plus they take up less characters so there is room for more commands if people want to customize them.
• MotW
/script T="target" S="Mark of the Wild(Rank " L=UnitLevel(T) E=")" M=5 R=math.min(floor(L/10)+2,M) if (not UnitExists(T)) then R=M; TargetUnit("player") end; CastSpellByName(S..R..E) SendChatMessage("casts "..S..R..E.." on %T","Emote")
• Thorns
/script T="target" S="Thorns(Rank " L=UnitLevel(T) E=")" M=5 R=math.min(floor((L+16)/10),M) if (not UnitExists(T)) then R=M; TargetUnit("player") end; CastSpellByName(S..R..E) SendChatMessage("casts "..S..R..E.." on %T","Emote")