Originally Posted by Slakah
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