View Single Post
01-08-22, 02:09 PM   #2
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
Here's a basic layout of something that prints dispels and steals to your chatframe only.

If you're not familiar with code, you can use https://addon.bool.no to make this an addon.

Lua Code:
  1. local f=CreateFrame("frame")
  2.  
  3. function f.COMBAT_LOG_EVENT_UNFILTERED(_,event,_,_,casterName,_,_,_,targetName,_,_,usedSpellID,usedSpellName,_,affectedAuraID,affectedAuraName)
  4.     if event=="SPELL_DISPEL" then
  5.         print(casterName.." dispelled "..targetName.."'s "..affectedAuraName.." using "..usedSpellName)
  6.     elseif event=="SPELL_STOLEN" then
  7.         print(casterName.." stole "..targetName.."'s "..affectedAuraName.." using "..usedSpellName)
  8.     end
  9. end
  10.  
  11. f:SetScript("OnEvent",function(self,event,...)
  12.     if event=="COMBAT_LOG_EVENT_UNFILTERED" then
  13.         self[event](CombatLogGetCurrentEventInfo())
  14.     else
  15.         self[event](...)
  16.     end
  17. end)
  18.  
  19. f:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
  Reply With Quote