So I've got the event working, and it send emotes to the error frame like it should, but i'm having issues filtering out ones targeting the player.
According to WoWprogramming CHAT_MSG_TEXT_EMOTE contains message, sender, language, channelstring, target ... but target returns a nil value no matter what emote is used.
lua Code:
local function scrollingEmotes(self, event, message, sender, language, channelstring, target, ...)
if event == "CHAT_MSG_EMOTE" or event == "CHAT_MSG_TEXT_EMOTE" then
--debugging, print the message sender and target to chatframe
print(message, sender, target)
message = "|cffff4500"..(message).."|r"
UIErrorsFrame:AddMessage(message)
print("reeee")
end
end
the print() should be giving me the emote message, the character sending it and the target, but that 'target' is always empty.