Can anyone help me to get this work for 4.1
Code:
local CatataIA = CreateFrame("Frame","CatataIA",UIParent)
CatataIA:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
local announce = 1
interrupt_spells = {57994, 80965, 80964, 6552, 2139, 1766, 47528, 47476, 853, 15487, 16979, 12809, 100}
CatataIA:SetScript("OnEvent", function(self,event,...)
local timestamp, event_type, hide_Caster, source_GUID, source_name, source_flags, dest_GUID, dest_name, dest_flags = select(1, ...)
if (event_type == "SPELL_INTERRUPT") then
local source_spellID, source_spellName, source_spellSchool,target_spellID, target_spellName, target_spellSchool = select(9, ...)
if (tContains(interrupt_spells, source_spellID)) then
end
if(GetUnitName("player") == source_name) then
SendChatMessage("KICKED >" .. dest_name .. "< " .. "")
-- if(GetNumRaidMembers()==0) then
-- SendChatMessage("KICKED >" .. dest_name .. "< " .. "")
-- else
-- SendChatMessage("KICKED >" .. dest_name .. "< " .. "")
-- end
end
end
if (event_type == "SPELL_CAST_SUCCESS") then
local source_spellID, source_spellName, source_spellSchool,target_spellID, target_spellName, target_spellSchool = select(9, ...)
if (tContains(interrupt_spells, source_spellID)) then
if (source_name == GetUnitName("player") and announce == 1) then
end
end
end
end)
yours Carmen<3