I've recently been trying out the Blizzard equipment manager with a view to no longer using Outfitter as it does far more than I need. So far been fairly satisfied, but about the only real automation I require is weapon swapping on my rogue. There are addons that will automate this, but nothing seems to work properly with most of the LDB equipment manager displays (i.e. they don't update with the weapon change) so I've taken a stab at my own version. This is what I've come up with:
Code:
local f = CreateFrame("FRAME", "Frame_fStealth");
f:RegisterEvent("UPDATE_STEALTH");
local function eventHandler(self, event, ...)
local nStance = GetShapeshiftForm();
if nStance == 0 then EquipmentManager_EquipSet("Normal");
elseif nStance ~= 0 then EquipmentManager_EquipSet("Stealth");
else return;
end
end
f:SetScript("OnEvent", eventHandler);
It relies on two sets, one called "Normal" and one called "Stealth". On my rogue I have a full outfit for "Normal" and only a main hand dagger on "Stealth" with all other slots set to ignore. Everything seems to be working fine, but could some kind person please advise if I have missed anything or am doing something horrendously wrong?