Thread: AddMessage
View Single Post
08-09-10, 12:08 PM   #3
weasoug
A Flamescale Wyrmkin
 
weasoug's Avatar
AddOn Author - Click to view addons
Join Date: May 2010
Posts: 127
Post

Originally Posted by Slakah View Post
ChatFrames are numbered 1-6 (iirc it might be different now). Anyway you can send a message to the CombatChatFrame (usually the second chat frame) using the function call:
ChatFrame2:AddMessage()
Code:
wmpingnotice = true
Code:
wmping:RegisterEvent("MINIMAP_PING")
wmping:SetScript("OnEvent", function(self,event,unit) 
if wmpingnotice then local ping_name = UnitName(unit) 
function call:ChatFrame2:AddMessage(wname.." pinged by: |cffFF0000" .. ping_name .. "|r") end end)
is what i tryed but with no luck
  Reply With Quote