Building a Poker Game Client with Addon Communication
Our poker addon is almost finished. The last part that remains is the client that connects to a server and displays the actual game. Remember that the whole game logic is already in the server; the client only needs to display the data it receives from the server. But how can we send data from one player who runs a given server to another player who wants to play on that server? World of Warcraft provides what it calls addon messages, which are basically just invisible chat messages. You can send such a message to other players through the raid, party, battleground, guild, and whisper channels. WoW fires the event CHAT_MSG_ADDON every time it receives such an addon message.
KeywordsCustom Timer Error Message Broadcast Message Message Type Event Argument
Unable to display preview. Download preview PDF.