Hi, I've gathered small bits of code from this forum and the WoW forum over the years and 8.0 seems to have broken two bits of code. Would appreciate any help. I'm sure it's a simple fix.
Code 1:
Lua Code:
local f = CreateFrame("Frame")
f:RegisterEvent("LOOT_OPENED")
f:SetScript("OnEvent", function(self, event, ...)
for i = GetNumLootItems(), 1, -1 do
local slotType = GetLootSlotType(i)
local _, _, _, _, locked, isQuestItem = GetLootSlotInfo(i)
if not locked and (isQuestItem or slotType == LOOT_SLOT_MONEY or slotType == LOOT_SLOT_CURRENCY) then
LootSlot(i)
end
end
end)
This just loots money on mobs.
Code 2:
Lua Code:
hooksecurefunc("TargetFrame_UpdateAuras", function(s)
local name = s:GetName() .. "Buff"
for i = 1 ,MAX_TARGET_BUFFS do
local _, _, _, _, buffType = UnitAura(s.unit, i)
if buffType == 'Magic' then
_G[name .. i .. "Stealable"]:Show()
end
end
end)
This just shows the dispel effect around dispellable debuffs on any class/spec.
Both simply don't function since the patch.