using System;
using System.Threading;
using botNET;
using botNET.Messaging;
using botNET.Pathing;
using botNET.Units;
using Slacker;
using Slacker.Service;
namespace botNET.Bots
{
/// <summary>
/// ooBot is a main bot controller, it manages town moving, buys potions/scrolls,
/// saves merc and visits NPC , etc.
/// </summary>
[LoadableAttribute]
public class ooBot: SlackerLogic
{
/// <summary>
/// Contructs an instance of the Bot class .
/// </summary>
public ooBot()
: base( "oOBot.xml", "Test" )
{
}
/// <summary>
/// Called when the module is loaded. This must be overriden in any
/// inherited class.
/// </summary>
protected override void OnLoad()
{
Game.Print("oOBot Loaded!");
}
/// <summary>
/// Called when the module is unloaded. This must be overriden in any
/// inherited class.
/// </summary>
protected override void OnUnload()
{
}
/// <summary>
/// Called when the module is started. This must be overriden in any
/// inherited class. Not used yet.
/// </summary>
protected override void OnStart()
{
}
/// <summary>
/// Called when the module is stopped. This must be overriden in any
/// inherited class. Not used yet.
/// </summary>
protected override void OnStop()
{
}
/// <summary>
/// Called when the bot joins a game. This must be overriden
/// in any inherited class. If you don't use Slacker functions for
/// out-of-game manipulation this function will not operate properly.
/// </summary>
protected override void OnJoinGame()
{
Bot.Overhead("hehe");
Bot.TownWalk(Act5Town.Malah);
}
/// <summary>
/// Called when the bot exits a game. This must be overriden
/// in any inherited class. If you don't use Slacker functions for
/// out-of-game manipulation this function will not operate properly.
/// </summary>
protected override void OnExitGame()
{
}
}
}