EVENT_CHAT_MESSAGE_CHANNEL Question
hello,
i'm using the EVENT_CHAT_MESSAGE_CHANNEL event to see if a friend is whispering me, it seems to be working properly but i'm friend that the message display even when its not a direct whisper and its even a "group chat" message to the group we are in. I'd only like to catch when someone whispers me directly rather than seeing the debug statement when the message is in group chat. any ideas? Code:
function ChatMessageChannel(eventCode, messageType, fromName, text) |
Lua Code:
I didn't checked it, but it should work as intended, no? |
Quote:
Lua Code:
|
Excellent, thank you both for the help. I'm a newb, wasn't aware of the ZO_Chat Event Handlers.. those seem to be magic. can't find a lot of docs on them.
|
Main event manager works fine too. I use that in AutoInvite:
Lua Code:
|
Quote:
If you don't need to modify chat output, this is what you are looking for. |
Interesting.. Hopefully this stuff will start clicking for me on my own. I'm just looking to recognize if a friend whisps me. And put out a message.
|
Quote:
|
If messages are correcly displayed in the chat, there must be something wrong in your code (like single = instead of double == in the condtion). Chat doesn't use anything else then messageType.
Lua Code:
Message types are listed here: http://wiki.esoui.com/Globals#MsgChannelType |
Quote:
|
Quote:
|
No didn't try it. But I have checked chat system code and there is no way that chat system will print whisper to the party chat or party message to the whisper. Messages are sorted by category and then printed to the chat to the correct channels.
Lua Code:
If you want to use category the same way as chat system, you can change code to: Lua Code:
|
All times are GMT -6. The time now is 10:45 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI