public void AcceptDailyBounty() { FastCheck fc = new FastCheck(); bool bountyisavailable = false; int clkcounter = 0; NotePad.DoLog("принимаю ежедневку"); do { if (clkcounter > 25) { RestartBot(); } if (fc.DailyBounty()) { Rat.Clk(PointsAndRectangles.dailyBountyStart); bountyisavailable = true; Thread.Sleep(15000); } else if (fc.DailyBountyEnd()) { Rat.Clk(PointsAndRectangles.confirmdailyBountyEnd); bountyisavailable = false; Thread.Sleep(15000); } else if (bountyisavailable) { Rat.Clk(PointsAndRectangles.dailyBountyThrow); clkcounter++; } Thread.Sleep(15000); } while (bountyisavailable); NotePad.DoLog("принял ежедневку"); RestartBot(); }
public void ToClubs() { bool needToDragMap = false; FastCheck fc = new FastCheck(); bool flag = false; do { if (fc.NoxRestartMessage()) { Rat.Clk(PointsAndRectangles.noxRestartMessageAcceptance); Thread.Sleep(1000); Rat.Clk(PointsAndRectangles.edgeOfTheScreen); Thread.Sleep(120000); Process.Start(@"C:\Program Files (x86)\Nox\bin\Nox.exe", "-clone:Nox_1"); }//nox restart message if (fc.StartIcon())//Icon { Rat.Clk(PointsAndRectangles.clkTheIcon); } //if (fc.BrokenInterface()) Rat.Clk(PointsAndRectangles.brokenInterfaceAcceptance);//close notify if (fc.LostConnection()) { Rat.Clk(PointsAndRectangles.reconnectionAfterLostConnection); //reconnect } //if (fc.Google()) Rat.Clk(PointsAndRectangles.googleNotificationAcceptance);//google notify if (fc.FBcontinue()) { Rat.Clk(PointsAndRectangles.fbFucksBrain); //fb f***s brain } if (fc.StartButton()) { Rat.Clk(PointsAndRectangles.buttonStart);//Start game Thread.Sleep(5000); } if (fc.HeadPage()) { Rat.Clk(PointsAndRectangles.toEvents);//Events Thread.Sleep(2000); } if (fc.DailyBounty()) { AcceptDailyBounty(); } fc.Bounty(); if (fc.SeasonEndsBounty()) { Thread.Sleep(500); Rat.Clk(PointsAndRectangles.seasonEndAcceptance); NotePad.DoLog("получил награду за сезон"); } CheckConnection(); UniversalErrorDefense(); if (fc.EventPage()) { if (fc.InCommonEvent()) { Thread.Sleep(500); Rat.Clk(PointsAndRectangles.buttonBack);//back } else { Thread.Sleep(500); Rat.Clk(PointsAndRectangles.toClubs);//Clubs needToDragMap = true; } } if (fc.ClubMap()) { flag = true; } Thread.Sleep(1500); } while (!flag); if (needToDragMap) { DragMap(); } }