Ejemplo n.º 1
0
        public static void MassFight()
        {
            Bg = new BotvaClass();

            try
            {
                if (MassFightThread.IsAlive)
                    MassFightThread.Abort();
            }
            catch { }

            MassFightThread = new Thread(new ThreadStart(BotWorker.FightOnMassFight));
            MassFightThread.Start();
        }
Ejemplo n.º 2
0
        public static void MassFight()
        {
            Bg = new BotvaClass();

            try
            {
                if (MassFightThread.IsAlive)
                {
                    MassFightThread.Abort();
                }
            }
            catch { }

            MassFightThread = new Thread(new ThreadStart(BotWorker.FightOnMassFight));
            MassFightThread.Start();
        }
Ejemplo n.º 3
0
        public static void WorkThreadFunction()
        {
            try
            {
                if (Bot == null)
                    Bot = new BotvaClass();
            }
            catch { }
            try
            {
                try
                {
                    Bot.EnvironmentSetUp();
                }
                catch { }
                while (true)
                {
                    try
                    {
                        if (Timer_Bg.CompareTo(DateTime.Now) < 0)
                            if (Bot.IsNecessaryMineIsOpened())
                            {
                                Timer_Bg = ToDateTime("00:35:00");
                                MassFight();
                            }

                        Bot.CollectStones();

                        Bot.MrIdiot(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.AlertFight(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.LitleGuru(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.BigGuru(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.PotionBoil(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.TanksMaking(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.MineGetCry(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.GoToOldoMsters(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.StatsUp(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.ArenaFight(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.FightImmuns(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.Fight(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.NegativeEffects(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.BigFields(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.SmallFields(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.GoldDiscard(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.UndergroundFast(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.Underground(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.StatsUp(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.GoldDiscard(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.MineByInventory(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.MineGoWork(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.Sawmill(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.CrystalDustMaking(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.SoapMaking(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.Fishing(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.Fly(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.Healing(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.PetHealing(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.FarCountrys(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.PandaEffects(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.OpenNewPand(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.SellSoap(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.BySlaves(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.CryStirring(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.MassAbilitys(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.CheckForNest(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.VillageManager(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.DayliGifts(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.BuyGifts(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.TradeField(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.Shop(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.CulonsUp(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.ChameleonsHeal(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.OpenDreamCasket(); Bot.WaitUntilThreadBecomeAvailable();

                        //Adv
                        //Bot.OpenAdvPage();

                    }
                    catch
                    {
                    }
                    finally
                    {
                        Bot.ReLogIn();
                    }
                }
            }
            catch { }
        }
Ejemplo n.º 4
0
 public static void Rest()
 {
     Bot.Rest();
     Quit(Bot);
     Bot = null;
 }
Ejemplo n.º 5
0
 private static void Quit(BotvaClass botvaObject)
 {
     botvaObject.Quit();
 }
Ejemplo n.º 6
0
        public static void WorkThreadFunction()
        {
            try
            {
                if (Bot == null)
                {
                    Bot = new BotvaClass();
                }
            }
            catch { }
            try
            {
                try
                {
                    Bot.EnvironmentSetUp();
                }
                catch { }
                while (true)
                {
                    try
                    {
                        if (Timer_Bg.CompareTo(DateTime.Now) < 0)
                        {
                            if (Bot.IsNecessaryMineIsOpened())
                            {
                                Timer_Bg = ToDateTime("00:35:00");
                                MassFight();
                            }
                        }

                        Bot.CollectStones();

                        Bot.MrIdiot(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.AlertFight(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.LitleGuru(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.BigGuru(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.PotionBoil(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.TanksMaking(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.MineGetCry(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.GoToOldoMsters(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.StatsUp(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.ArenaFight(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.FightImmuns(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.Fight(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.NegativeEffects(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.BigFields(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.SmallFields(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.GoldDiscard(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.UndergroundFast(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.Underground(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.StatsUp(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.GoldDiscard(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.MineByInventory(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.MineGoWork(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.Sawmill(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.CrystalDustMaking(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.SoapMaking(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.Fishing(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.Fly(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.Healing(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.PetHealing(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.FarCountrys(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.PandaEffects(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.OpenNewPand(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.SellSoap(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.BySlaves(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.CryStirring(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.MassAbilitys(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.CheckForNest(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.VillageManager(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.DayliGifts(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.BuyGifts(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.TradeField(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.Shop(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.CulonsUp(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.ChameleonsHeal(); Bot.WaitUntilThreadBecomeAvailable();
                        Bot.OpenDreamCasket(); Bot.WaitUntilThreadBecomeAvailable();


                        //Adv
                        //Bot.OpenAdvPage();
                    }
                    catch
                    {
                    }
                    finally
                    {
                        Bot.ReLogIn();
                    }
                }
            }
            catch { }
        }
Ejemplo n.º 7
0
 private static void Quit(BotvaClass botvaObject)
 {
     botvaObject.Quit();
 }
Ejemplo n.º 8
0
 public static void Rest()
 {
     Bot.Rest();
     Quit(Bot);
     Bot = null;
 }