Chapter 10. Interacting with NPC

In a virtual world, there are some characters that are not controlled by the users. These characters are called Non-Player Characters, or NPC in short. Traditionally, NPCs are controlled by the game master in role-playing board games. In virtual a world, the NPCs are controlled by the server or the computers that serve some distinguished purposes. They can range from a house guard to the king in the castle.

In this chapter, we will discuss the purpose of having non-player characters in the virtual world. We will control the NPC to move around the world. We will also let players interact with the NPC by chatting or trading items.

We will also cover an advanced server-side extension technique to use Java extension ...

Get Flash Multiplayer Virtual Worlds 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.