예제 #1
0
        public void FairyEnchancementThead()
        {
            IsRun = true;
            FairyItem FFE = SelectFairyForEnchance();

            if (FFE.id == 0)
            {
                return;
            }
            Thread.Sleep(1000);
            FairyItem F1 = GetEquiped();

            while (LevelUpForSpirit())
            {
                Thread.Sleep(2200);
                FairyItem F2 = GetEquiped();
                if (F2.P1 > F1.P1)
                {
                    RAS.Add(F2.P1 - F1.P1);
                    break;
                }
            }
            Thread.Sleep(2000);
            FairyItem FF = GetEquiped();

            if (!FF.IsGood() && FF.lvl < 100)
            {
                Detach();
            }
            FairyEnchancementThead();
            THH.SelfStop("FET:" + CHR.Name);
            IsRun = false;
        }
예제 #2
0
        public void Run()
        {
            IsRun = true;
            CHR.EnterHome();
            CHR.WND.WaitForWindow("Win_Chat", 20, false);
            Utils.RandomDelay();
            LoadMine();
            Utils.RandomDelay();
            if (GamesRemain < 1 || Points > PointLimit)
            {
                return;
            }
            OpenBattle();
            Utils.RandomDelay();
            int EC = GetRandomEnemyCommander();

            SelectEnemy(EC);
            Utils.RandomDelay();
            LoadEnemy();
            Utils.RandomDelay();
            Beast[] BB = AnalizeEnemy();
            Utils.RandomDelay();
            StartBattle(BB, EC);
            Utils.RandomDelay();
            if (SkipBattles)
            {
                if (CHR.WND.WaitForWindow("Win_HomePetPrepare", 10))
                {
                    CHR.WND.Click("Win_HomePetPrepare", "Btn_Skip");
                }
            }
            if (CHR.WND.WaitForWindow("Win_HomePetFirstAward", SkipBattles ? 10 : 60))
            {
                GetPrizeBag();
                CHR.WND.Click("Win_HomePetFirstAward", "Btn_Close");
            }
            Run();
            THH.SelfStop("BeastBattle:" + CHR.Name);
            IsRun = false;
        }
예제 #3
0
 private void PWS_FormClosing(object sender, FormClosingEventArgs e)
 {
     THH.StopAll();
 }
예제 #4
0
 private void RunHandler()
 {
     Run();
     THH.SelfStop("RUN CLIENT: " + ACC_DESC);
 }
예제 #5
0
 public void ThreadRun()
 {
     THH.StartNewThread(RunHandler, "RUN CLIENT: " + ACC_DESC);
 }
예제 #6
0
 private void RunHandler()
 {
     Run();
     THH.SelfStop("RUN CLIENT: " + ACC_DESC);
     PwBot.RunClient_ButtonChange();
 }
예제 #7
0
 public void ThreadRun()
 {
     PwBot.RunClient_ButtonChange();
     THH.StartNewThread(RunHandler, "RUN CLIENT: " + ACC_DESC);
 }
예제 #8
0
 public void StopBeastBattle()
 {
     THH.StopThread("BeastBattle:" + CHR.Name);
     IsRun = false;
 }
예제 #9
0
 public void RunBeastBattle()
 {
     THH.StartNewThread(Run, "BeastBattle:" + CHR.Name);
 }
예제 #10
0
 public void StopFairyEnchancement()
 {
     THH.StopThread("FET:" + CHR.Name);
     IsRun = false;
 }
예제 #11
0
 public void RunFairyEnchancement()
 {
     THH.StartNewThread(FairyEnchancementThead, "FET:" + CHR.Name);
 }