C H A P T E R  8

image

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, ...

Get Beginning Lua with World of Warcraft Addons now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.