Originally Posted by weasoug
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:
ChatFrame2:AddMessage(wname.." pinged by: |cffFF0000" .. ping_name .. "|r")
not
lua Code:
function call:ChatFrame2:AddMessage(wname.." pinged by: |cffFF0000" .. ping_name .. "|r")