Thread: Say addon?
View Single Post
11-06-12, 11:17 AM   #2
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Something like this should work.
Lua Code:
  1. local f = CreateFrame('frame')
  2. f:SetScript('OnEvent', function(_, _, _, event, _, guid, _, _, _, _, _, _, _, spell)
  3.     if event == 'SPELL_CAST_SUCCESS' and spell == 118000 and guid == UnitGUID('player') then
  4.         SendChatMessage('rawr')
  5.     end
  6. end)
  7. f:RegisterEvent('COMBAT_LOG_EVENT_UNFILTERED')
  Reply With Quote