Building a bot



'''Please note, this tutorial refers to building and running a bot using libomv. This technique creates a client that connects to OpenSimulator like any other viewer. For information on other NPC techniques, such as purely server-side NPCs, please see NPC.'''

Bots, or Non-Player Characters (NPCs), represent instances where, instead of a user controlling an agent represented as an avatar in-world, a program controls the agent. This facility allows one to program humanoid figures for a variety of tasks. There are two ways that bots can be coded: on a client or on the server where opensim is running. This tutorial covers only the former case: running code on the client, which coincidentally may be the same computer where the server is located.

The following example is called "MyPetBot" and by building this source, and running the resulting bin\MyPetBot executable that results in the bot logging into the world, and then proceeding to follow whatever avatar is specified inside the code.

A short video is shown here To build your pet bot, you will need to copy the following code and make sure to edit the following parts:


 * 1) In your C# solution, include the missing references
 * 2) Enter the first name, last name, and password of the agent that will serve as a bot
 * 3) Specify the start location (X,Y,Z) for the bot
 * 4) Specify your region server

This tutorial is based on code from Follow An Avatar