View Single Post
04-17-13, 01:42 AM   #47
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by SDPhantom View Post
All events fire form C code in the game client. What causes the C code to fire the event depends on the event in question. Most of the time, it's in response to the server telling the client something happened.

If this is hard to understand, think of it this way. Unlike a singleplayer game, multiplayer games are actually run by what's called a server. It's the server that actually runs the game, keeps track of where you are, and all additional data about your character as well as handling other functions like chat. The game client is just a glorified remote control and viewer. All it does is render players and mobs where the server tells it to and display messages the server says. This is in addition to being an input for the player, letting the server know you want to move your player around, talk to NPCs, and move things around in your bags and/or inventory.

To add an analogy, the game client is like your monitor, keyboard, mouse, and speakers, and the server is your computer itself, the brain of the entire operation. You give it input using your keyboard and mouse, experience feedback from the monitor and speakers, but it's the computer that does everything.
So i guess, addon can't really read from that code.
  Reply With Quote