Blocking Chat messages
Hello, I'm writing a simple Addon that block Zone Message everywhere except Cyrodiil/Craglorn. The test chat message display I've inserted in the Addon works correctly, the only thing missing is I can't find a way to block chat message from displaying. I've checked the wiki for events/functions but I can't find a way to block them. How should I block chat messages from displaying ?
Here is the code I've written so far. Lua Code:
|
You could use a ZO_PreHook to the function CHAT_SYSTEM.OnChatEvent like this e.g.
Lua Code:
The secondsSinceMdinight is only there if you want to implement something like a "do not too often" or "wait 2 seconds before next blacklisted message check is done". |
Thank you so much ! It seems to have done the trick.
For anyone curious, here is the new code : Lua Code:
|
All times are GMT -6. The time now is 09:26 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI