Thread: Get chat msg?
View Single Post
10-29-05, 08:40 AM   #3
Gello
A Molten Giant
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 521
Register for one of the CHAT_MSG events here.

Then arg1 will be that chat line in your mod.

function MyMod_OnLoad()
this:RegisterEvent("CHAT_MSG_COMBAT_SELF_HITS")
end

function MyMod_OnEvent(event)
if event=="CHAT_MSG_COMBAT_SELF_HITS" then
DEFAULT_CHAT_FRAME:AddMessage("_COMBAT_SELF_HITS arg1 is "..arg1)
end
end
  Reply With Quote