Also, this post assumes you have supermacro installed and working correctly. You can download supermacro from https://github.com/isitLoVe/SuperMacro Click clone or download and then click download as zip. It will download as zip "SuperMacro-master.zip" unzip this and you get the SuperMacro-master folder. Inside this folder is the Supermacro folder this is what you want to put in the addons directory, not the SuperMacro-master folder. Do that and when you launch the game you should have a supermacro button on the right side of your escape menu. This far more often than the macro section will be where you do macro work, simply because the benefits are great. Much bigger input area, ability to do extended functions, and the ability to make the macro display proper tooltips since the #showtooltip isn't a thing in vanilla. More importantly though, supermacro adds important action commands that were otherwise completely missing from macros in Vanilla.
Easy weapon swap macro.
Attack if not attacking target when spamming spam skill.Here is one I've heard of all the time. A weapon switching macro. Simply type the command where you want in the macro and shift click the item it will put the name in for you.
/equipoff Stinging Viper
/equip Leaden Mace of Power
/unequip Daryl's Hunting Rifle
The first equips the item to the offhand. The second equips the item to an appropriate slot. The third removes the item you are wearing and puts it in your inventory. Simple easy. Have fun.
Auto-Self-Cast replacement for skills.Next you know how annoying it is when you are out of energy or rage and are wanting to attack the target but want to do it faster than using your mouse to right click it but don't want to dedicate a spam button space to your attack skill? This will do it. First in interface options make sure the 4 extra action bars are on, then put your attack skill in the slot on the right most slot on the bar just above your experience bar.
/run if not IsCurrentAction(60) then UseAction(60) end;
/run CastSpellByName("Sinister Strike")
Replace Sinister Strike with whatever spam skill you want and when you spam it it will always check to see that the skill in that slot is active, and if not activate it before going on to using the skill. This is huge as a tank as we tab target a lot and this makes it so much easier to attack what you want that way without relying on the mouse for speed.
Druid Ravage when prowling shred otherwise.Next, you know how if you use healbot or another addon that casts things on others not targeted, you generally have to turn off auto-self cast in interface options right? But it makes healing yourself more time consuming, or casting abilities on yourself also more time consuming. No more, replace them on your bar with macros of these so you don't have to keep turning it off and on again depending on group status yet still have both the healbot / pallypower benefit and the ability to use skills on yourself without targeting yourself or losing your current target.
/script if UnitIsFriend("player", "target") then CastSpellByName("Lesser Heal"); else CastSpellByName("Lesser Heal", 1); end
Simply replace lesser heal with the spell you need. Remember if you don't include a rank it will always default to the highest rank, so no more having to swap out spells as you level unless you are downranking.
Reset Instances.You a druid who wants to not have to have different buttons for shred and ravage since you use the same action bar when stealthed unlike a rogue? Look no further. This macro will ravage if you are stealthed and shred if not. No extra buttons.
In the normal macro part in supermacro put:
/run if ({GetSpellCooldown(GetSpellID("Prowl"),"spell")})[3]~=0 then CastSpellByName("Shred") else CastSpellByName("Ravage") end
In the Enter Extended Lua section of supermacro put:
function GetSpellID(sn)
local i,a
i=0
while a~=sn do
i=i+1
a=GetSpellName(i,"spell")
end
return i
end
function IsActive(sn)
return ({GetSpellCooldown(GetSpellID(sn),"spell")})[3]==0
end
Remember to save extend in addition to the save macro.
Check Rested Experience.Want to reset instances but are totally confused by the fact that there is no right click portrait option in vanilla to do so? I mean you could leave group, or you could use this easy macro.
/script ResetInstances()
This one was created by an awesome Enhance Shammy by the name of Xok. You know how tents give you rested beyond your exp bar right? So you can never know when you are full without addons? Just slip this macro into your macro section and when clicked it will display your current rested experience amount. Click again and it will display the new total, when it stops going up then your rested is full.
/script DEFAULT_CHAT_FRAME:AddMessage("Rested:".. GetXPExhaustion());
That is all for now. If you have any you would like to share that work fine on this server with nothing more than supermacro addon installed please post them below and I will include them. If you have requests, mention them and I will see if I can find it for inclusion.
-Knight Soryen