Javf

Páginas: 3 (592 palabras) Publicado: 22 de julio de 2012
Fuentes para bots
Bot Mascota
Este bot te sigue a todo lugar con unas instrucciones determinadas
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
usingOpenMetaverse;

namespace Bot3
{
class Program
{
public static GridClient Client =new GridClient();
private static string first_name = "javf1";
private staticstring last_name ="javf2";
private static string password ="javf";
private static float followDistance = 5;
public static bool followon = false;
public static stringfollowName ="george andrew";
static void Main(string[] args)
{
Client.Network.OnConnected +=new NetworkManager.ConnectedCallback(Network_OnConnected);Client.Settings.LOGIN_SERVER = "http://192.168.162.1:9000";
if (Client.Network.Login(first_name, last_name, password,"Program","javf"))
{Client.Appearance.SetPreviousAppearance(true);
Client.Self.OnChat += new AgentManager.ChatCallback(Self_OnChat);
Client.Objects.OnObjectUpdated +=newObjectManager.ObjectUpdatedCallback(Objects_OnObjectUpdated);

}
else
{
Console.WriteLine("Yo no puedo conectarme aqui, es porque: "+Client.Network.LoginMessage);Console.WriteLine("Presione cualqueir tecla para cerrar...");
Console.ReadLine();
}
}
static void Network_OnConnected(object sender)
{
Console.WriteLine("Yo estoy conectado alsimulador, Yo voy a saludar a todo elmundo alrededor mio");
Client.Self.Chat("Hola a todo el mundo!", 0,ChatType.Normal);
Console.ReadLine();
Console.WriteLine("Ahora yovoy a desconectarme de SL.. Adios!");
Client.Network.Logout();
Console.WriteLine("Yo estoy desconectado, por favor presione enter para cerrar...");
Console.ReadLine();...
Leer documento completo

Regístrate para leer el documento completo.

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS