Trying to make a ping when officer chat triggers 1.12
I've tried:
function BravadoChat_OnEvent(event)
if (event == "CHAT_MSG_OFFICER") then
print("officer")
ping
end
end
Where print just prints a text message on the screen, and ping just makes a ping sound.
Does the CHAT_MSG_OFFICER event not work in vanilla?
Posted Jan 13, 2017, 4:48 PM UTC
11
According to this (https://www.townlong-yak.com/framexml/1.12.1/ChatFrame.lua), "CHAT_MSG_OFFICER" should exist.
Make sure you are registering the event and 'print' is an actual function (in Vanilla 'print' function does not exist).