Thread: AddMessage
View Single Post
08-09-10, 12:17 PM   #4
Slakah
A Molten Giant
 
Slakah's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 863
Originally Posted by weasoug View Post
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
you copied me wrong it should be
lua Code:
  1. ChatFrame2:AddMessage(wname.." pinged by: |cffFF0000" .. ping_name .. "|r")
not
lua Code:
  1. function call:ChatFrame2:AddMessage(wname.." pinged by: |cffFF0000" .. ping_name .. "|r")
  Reply With Quote