Untitled
unknown
plain_text
3 years ago
1.2 kB
2
Indexable
local mess = CreateFrame("Frame", "pummel", UIParent) mess:SetSize(100, 100) mess:SetPoint("CENTER") local fontstring = mess:CreateFontString(nil, "OVERLAY", "GameFontNormal") fontstring:SetPoint("CENTER", UIParent, "CENTER", 0, 73) fontstring:SetScale(2.5) local spelllist2 = { --Druid Smartic ["Soul of the Forest"] = true } local playerGUID = UnitGUID("player") local f = CreateFrame("Frame") f:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED") f:SetScript("OnEvent", function(self, event) self:COMBAT_LOG_EVENT_UNFILTERED(CombatLogGetCurrentEventInfo()) end) function f:COMBAT_LOG_EVENT_UNFILTERED(...) local timestamp, subevent, _, sourceGUID, _, _, _, _, _, _, _ = ... local spellId, spellName, _ if not (subevent == "SPELL_DISPEL" and playerGUID == UnitGUID("player")) then return end local spellName = select(16, ...) if spelllist2[spellName] then if (subevent == "SPELL_DISPEL" and playerGUID == UnitGUID("Vrëmon") or UnitGUID("Testmony")) then fontstring:SetText("\124TInterface\\ICONS\\Ability_Druid_ManaTree:0\124tPurged", ChatTypeInfo["RAID_WARNING"]) pummel:Show() end C_Timer.After(0,function() C_Timer.After(5,function() pummel:Hide() end) end) end end
Editor is loading...