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; }
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; }
private void PWS_FormClosing(object sender, FormClosingEventArgs e) { THH.StopAll(); }
private void RunHandler() { Run(); THH.SelfStop("RUN CLIENT: " + ACC_DESC); }
public void ThreadRun() { THH.StartNewThread(RunHandler, "RUN CLIENT: " + ACC_DESC); }
private void RunHandler() { Run(); THH.SelfStop("RUN CLIENT: " + ACC_DESC); PwBot.RunClient_ButtonChange(); }
public void ThreadRun() { PwBot.RunClient_ButtonChange(); THH.StartNewThread(RunHandler, "RUN CLIENT: " + ACC_DESC); }
public void StopBeastBattle() { THH.StopThread("BeastBattle:" + CHR.Name); IsRun = false; }
public void RunBeastBattle() { THH.StartNewThread(Run, "BeastBattle:" + CHR.Name); }
public void StopFairyEnchancement() { THH.StopThread("FET:" + CHR.Name); IsRun = false; }
public void RunFairyEnchancement() { THH.StartNewThread(FairyEnchancementThead, "FET:" + CHR.Name); }