I'm currently writing an addon to send messages to all my specified custom channels when i receive achievements, and using a simply SendChatMessage doesnt seems to do the work, i would like it to have the following features:
- If the member is in your guild, he should not be seeing the achievement in the channel too.
- If a friend or someone else is in two of your custom channels, he shouldnt see the achievement twice.
- Having clickable achievement links in channels for people who are also using the addon.
My idea is kinda to have the addon SendChatmessage when you receive an achievement, and if you have the addon yourself, you will filter out those messages (keeping you from the spam of getting 4 achievements at once displayed in your guild, and your 5 other channels too, that day was fun >.<), and instead do a regular print that will mimic your first channel that would be showing this information.
I am thinking of sending via AceComm the following data:
- Achievement ID
- Channel list of the achiever so the addon can determine which of these channels is the first in your list.
Which channel to send the message to. Available channels are "PARTY", "RAID", "BATTLEGROUND", "GUILD", and "WHISPER"
Ironically, "CHANNEL" is not an avaible channel of sending Acecomm info, so would i have to loop everyone in the channel using WHISPER channel? How would this effect performance in a 200+ people channels? (which i dont know who is using this addon or not)
I do not want to set up an invisible channel for my addon users as this can sometime screw up General being joined in /2 and end up with trade in /3, annoying thing is annoying. Also my channel list is full >.>
Well yeah, people that uses the addon will get the simple chat filter, but i would still like acecomm to relay what was the achievement ID.
So, if AceComm does not show up in the players chats which is interesting, it means i -could- use a loop to send it to every player in a given channel using WHISPER addon channel right?
Still concerned slightly about 200+ channels if i ding two achievements at once for example but i guess it would be an acceptable "lag"