Advertisement
Xzempt

Untitled

Apr 3rd, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.01 KB | None | 0 0
  1. frame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
  2. frame:SetScript("OnEvent", function(self, event, ...)
  3.     local scm = SendChatMessage
  4.     if event == "COMBAT_LOG_EVENT_UNFILTERED" then
  5.     local arg = { ... }
  6.         for i,v in ipairs(arg) do
  7.             if (string.find(arg[i], "(.*)Grounding(.*)Totem(.*)")) then
  8.                 local blah = table.concat(arg, ", ")
  9.                     if (arg[2] == "SWING_DAMAGE") then
  10.                         scm(arg[7].. " was killed.")
  11.                     end
  12.                     if (arg[2] == "SPELL_DAMAGE") then
  13.                         local spell = GetSpellLink(arg[10])
  14.                             if spell then
  15.                                 print("|cff00ccff" ..arg[4].. "|r hits |cff00ccff" ..arg[7].. "|r for |cff00ccff" ..arg[12] - arg[13].. " (" ..arg[13].. " Overkill) with |cff00ccff" ..spell)
  16.                             end
  17.                         end
  18.                     if (arg[2] == "RANGE_DAMAGE") then
  19.                     local spell = GetSpellLink(arg[9])
  20.                         SendChatMessage("|cff00ccff" ..arg[4].. "|r hits |cff00ccff" ..arg[7].. "|r for |cff00ccff" ..arg[12] - arg[13].. " (" ..arg[13].. " Overkill) with |cff00ccff" ..spell, "SAY")
  21.                        
  22.                 end
  23.             end
  24.         end
  25.     end
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement