Hiding a Custom Chat Channel's Activity
Currently, I'm working on an addon called Trade Chat Champion, and what this addon does is respond to certain triggers in trade or battleground chat. However, the need for communication between multiple instances of the addon has become more and more apparent.
Now, after researching the topic, and laying out the logic of the function I'm looking to create, I'm stuck at the actual sending of messages. The SendAddonMessage API doesn't seem to fit my needs, as I need to communicate server-wide. I have resigned myself to figure out a way to have the addons communicate over a custom channel, however, clearly such a communication would need to be hidden, as to not be disruptive. My question is, how can I accomplish something like that? |
You might want to see what's out there for libraries that have these functions already done for you. I believe what you're looking for can be found in in the AceComm's library, not sure what else might provide the same functions.
|
Quote:
It'll automatically split the messages into multiple parts and rebuild them on the receiving end. What I need is a way to communicate faction-wide, over what I assume has to be a custom chat channel, with some sort of function that hides the text. |
Create a filter using ChatFrame_AddMessageFilter() that hides all messages from that specific channel.
|
Quote:
Simply joining a channel (JoinChannelByName) does not add it to any chat frames, so no messages in the channel will ever be shown to the users without explicit action on their part. |
All times are GMT -6. The time now is 04:28 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI