Ejemplo n.º 1
0
 internal override void Parser(string message)
 {
     base.Parser(message);
     if (Regex.IsMatch(message, "你要对谁施展") || Regex.IsMatch(message, "你要用金砖砸谁"))
     {
         FightController.GetInstance().FightComplete();
     }
     else if (Regex.IsMatch(message, "全身的流光溢彩渐渐消去了"))
     {
         FightController.GetInstance().Buff();
     }
     else if (Regex.IsMatch(message, "拉着你不让走"))
     {
         isDaoDan = true;
         UtilFunction.DealWithDaoDanGui(this);
         Console.WriteLine("==============================================捣蛋鬼出现了");
         isDaoDan = false;
     }
     else if (Regex.IsMatch(message, "免费副本机会已用完或正在冷却"))
     {
         IsContinue = false;
     }
 }
Ejemplo n.º 2
0
 public override void Run()
 {
     base.Run();
     Send("huanchao");
     Send("move /d/changan/nbridge");
     Send("go south");
     Send("go enter");
     Send("callguard");
     Thread.Sleep(UtilFunction.GetBusyTime());
     FightController.GetInstance().CheckStatusNoFighting(this);
     Send("enter_fuben");
     try
     {
         for (int i = 0; i < func.Length; i++)
         {
             Console.WriteLine("======================================进入层数为:" + i.ToString());
             func[i]();
         }
     }
     catch (Exception e)
     {
         if (IsContinue)
         {
             Check();
         }
     }
     Send("look");
     if (Global.INV_LIST != null && Global.INV_LIST.Count > 0)
     {
         string corp = Global.INV_LIST[0].Id;
         Send("get all from " + corp);
         Console.WriteLine("======================================收刮尸体了");
     }
     Send("chuqu");
     Console.WriteLine("======================================完成地府副本了");
     base.Complete();
 }
Ejemplo n.º 3
0
 internal Robot()
 {
     fight = FightController.GetInstance();
 }