All the maps and scenery in "World of Warcraft" live on your computer, but information about what's going on in the world has to come from a server. Based on the information it gets from your game client, the server performs a lot of calculations about the world, including:
- where mobs are in relation to you
- whether you're in range of mobs you want to attack
- whether your attacks are successful
- how much damage you inflict on a mob you're attacking
- how much damage the mob inflicts on you
- how much you heal yourself or people in your party, using healing spells or bandages
The server also collects information from other players clients' -- whether you're in a group with them or not -- and relays it to your computer. This allows you to see other characters, their gear and their actions in the game. It also lets you receive chat messages, guild invitations and group invitations. This information doesn't travel directly from another user's computer to yours -- it travels to you via the server.
The efficiency of all of these interactions is dependent upon the amount of time it takes a message to travel from a client to a server and back. Players who experience high latency -- or a long travel time -- can see significant delays between when they perform an action and when they see it happen on the screen.
A battle against a mob is an ongoing exchange of information between your computer, the computers of the people in your group and the server. For example, say you and some friends plan to Doom Lord Kazzak, a raid boss in Outland. Here's what happens:
- You and your group approach the Kazzak. All of your clients send information to the server about where you are. The server knows where Kazzak is -- if you get too close, you'll pull him by accident, at which point he'll probably kill your party.
- Once you're in range, someone in your party attacks Kazzak. That person's client informs the server of the attack. The server responds by causing the Kazzak to attack your party and to verbally taunt you. It relays this information to your computers.
- As you're fighting, your party's clients tell the server which spells you're casting. Based on your character's statistics, the server calculates your damage and healing. It relays that information to your clients, so each player can see what's happening to all the others. Other players' clients are doing the same thing, so you can see how they fare during the battle as well.
- When you successfully kill Kazzak, the server instructs your clients to play its death animation. If not, the server instructs Kazzak to further taunt each killed player.
- When someone loots Kazzak's body, the server consults its loot table and lets each client know which items dropped. The clients display these items on each player's screen, or on the screen of the player designated to be in charge of distributing loot (the master looter). The players decide who will receive the items.
- When a player collects an item, the client removes the image of the item from the list of dropped loot and places an icon representing it in the player's inventory. The client also tells the server that the player has done so, and the server instructs the other clients to remove that item from their game view.
Click to advance.
PvP combat is a little different -- the server still makes calculations, but other players, rather than artificial intelligence, control the other combatants. But regardless of whether an AI script or a human brain is in charge, the battle itself can often be challenging.
To learn more about "World of Warcraft" and related topics, see the links on the next page.