botNET

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()
  {
  }

 }
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值