示例#1
0
        private static void Potions()
        {
            if (Player.Instance.IsInFountain() || Player.Instance.IsRecalling() ||
                Player.Instance.IsUsingPotion() ||
                (!Hunter.IsOwned() && !Refillable.IsOwned() && !Potion.IsOwned() && !Biscuit.IsOwned() &&
                 !Corrupting.IsOwned()) || !Value.Use("activator.potions"))
            {
                return;
            }

            if (Player.Instance.HealthPercent < Value.Get("activator.potions.hp"))
            {
                if (Hunter.IsReady())
                {
                    Hunter.Cast();
                }
                else if (Corrupting.IsReady())
                {
                    Corrupting.Cast();
                }
                else if (Refillable.IsReady())
                {
                    Refillable.Cast();
                }
                else if (Potion.IsReady())
                {
                    Potion.Cast();
                }
                else if (Biscuit.IsReady())
                {
                    Biscuit.Cast();
                }
            }
            if (Player.Instance.ManaPercent < Value.Get("activator.potions.mana"))
            {
                if (Hunter.IsReady())
                {
                    Hunter.Cast();
                }
                else if (Corrupting.IsReady())
                {
                    Corrupting.Cast();
                }
            }
        }
示例#2
0
        private void PotionManagement()
        {
            if (Player.Health + 250 > Player.MaxHealth)
            {
                return;
            }

            if (Player.HealthPercent > 50 && Player.CountEnemyHeroesInRange(700) == 0)
            {
                return;
            }

            if (Player.HasBuff("RegenerationPotion") ||
                Player.HasBuff("Item2010") ||
                Player.HasBuff("ItemCrystalFlask") ||
                Player.HasBuff("ItemCrystalFlaskJungle") ||
                Player.HasBuff("ItemDarkCrystalFlask"))
            {
                return;
            }

            if (Refillable.IsReady)
            {
                Refillable.Cast();
            }
            else if (Potion.IsReady)
            {
                Potion.Cast();
            }
            else if (Biscuit.IsReady)
            {
                Biscuit.Cast();
            }
            else if (Hunter.IsReady)
            {
                Hunter.Cast();
            }
            else if (Corrupting.IsReady)
            {
                Corrupting.Cast();
            }
        }
示例#3
0
        private void PotionManagement()
        {
            if (Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlaskJungle") || Player.HasBuff("ItemDarkCrystalFlask"))
            {
                return;
            }

            if (Potion.IsReady())
            {
                if (Player.Health + 200 < Player.MaxHealth && Player.CountEnemiesInRange(700) > 0)
                {
                    Potion.Cast();
                }
                else if (Player.Health < Player.MaxHealth * 0.6)
                {
                    Potion.Cast();
                }
                return;
            }
            else if (Biscuit.IsReady())
            {
                if (Player.Health + 250 < Player.MaxHealth && Player.CountEnemiesInRange(700) > 0)
                {
                    Biscuit.Cast();
                }
                else if (Player.Health < Player.MaxHealth * 0.6)
                {
                    Biscuit.Cast();
                }
                return;
            }
            else if (Hunter.IsReady())
            {
                if (Player.Health + 250 < Player.MaxHealth && Player.CountEnemiesInRange(700) > 0)
                {
                    Hunter.Cast();
                }
                else if (Player.Health < Player.MaxHealth * 0.6)
                {
                    Hunter.Cast();
                }
                return;
            }
            else if (Corrupting.IsReady())
            {
                if (Player.Health + 250 < Player.MaxHealth && Player.CountEnemiesInRange(700) > 0)
                {
                    Corrupting.Cast();
                }
                else if (Player.Health < Player.MaxHealth * 0.6)
                {
                    Corrupting.Cast();
                }

                return;
            }
            else if (Refillable.IsReady())
            {
                if (Player.Health + 250 < Player.MaxHealth && Player.CountEnemiesInRange(700) > 0)
                {
                    Refillable.Cast();
                }
                else if (Player.Health < Player.MaxHealth * 0.6)
                {
                    Refillable.Cast();
                }
                return;
            }
        }
示例#4
0
        private void PotionManagement()
        {
            if (!Player.InFountain() && !Player.HasBuff("Recall"))
            {
                if (ManaPotion.IsReady() && !Player.HasBuff("FlaskOfCrystalWater"))
                {
                    if (Player.CountEnemiesInRange(1200) > 0 && Player.Mana < 200)
                    {
                        ManaPotion.Cast();
                    }
                }

                if (Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlask") || Player.HasBuff("ItemCrystalFlaskJungle") || Player.HasBuff("ItemDarkCrystalFlask"))
                {
                    return;
                }

                if (Hunter.IsReady())
                {
                    if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth)
                    {
                        Hunter.Cast();
                    }
                    else if (Player.Health < Player.MaxHealth * 0.6)
                    {
                        Hunter.Cast();
                    }
                    else if (Player.CountEnemiesInRange(1200) > 0 && Player.Mana < 200 && !Player.HasBuff("FlaskOfCrystalWater"))
                    {
                        Hunter.Cast();
                    }
                    return;
                }

                if (Corrupting.IsReady())
                {
                    if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth)
                    {
                        Corrupting.Cast();
                    }
                    else if (Player.Health < Player.MaxHealth * 0.6)
                    {
                        Corrupting.Cast();
                    }
                    else if (Player.CountEnemiesInRange(1200) > 0 && Player.Mana < 200 && !Player.HasBuff("FlaskOfCrystalWater"))
                    {
                        Corrupting.Cast();
                    }
                    return;
                }

                if (Flask.IsReady())
                {
                    if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth)
                    {
                        Flask.Cast();
                    }
                    else if (Player.Health < Player.MaxHealth * 0.6)
                    {
                        Flask.Cast();
                    }
                    else if (Player.CountEnemiesInRange(1200) > 0 && Player.Mana < 200 && !Player.HasBuff("FlaskOfCrystalWater"))
                    {
                        Flask.Cast();
                    }
                    return;
                }

                if (Refillable.IsReady())
                {
                    if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth)
                    {
                        Refillable.Cast();
                    }
                    else if (Player.Health < Player.MaxHealth * 0.6)
                    {
                        Refillable.Cast();
                    }
                    return;
                }

                if (Potion.IsReady())
                {
                    if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth)
                    {
                        Potion.Cast();
                    }
                    else if (Player.Health < Player.MaxHealth * 0.6)
                    {
                        Potion.Cast();
                    }
                    return;
                }

                if (Biscuit.IsReady())
                {
                    if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth)
                    {
                        Biscuit.Cast();
                    }
                    else if (Player.Health < Player.MaxHealth * 0.6)
                    {
                        Biscuit.Cast();
                    }
                    return;
                }
            }
        }
示例#5
0
        public static void Init()
        {
            if (Botrk.IsOwned())
            {
                UtilityMenu.Activator.AddCheckBox("activator.botrk", "Use BOTRK");
                UtilityMenu.Activator.AddSeparator();
                UtilityMenu.Activator.AddGroupLabel("Blade of The Ruined King Manager:",
                                                    "activator.label.utilitymenu.botrk", true);
                UtilityMenu.Activator.AddCheckBox("activator.botrk.combo", "Use BOTRK (COMBO Mode)", true, true);
                UtilityMenu.Activator.AddCheckBox("activator.botrk.ks", "Use BOTRK (KS Mode)", false, true);
                UtilityMenu.Activator.AddCheckBox("activator.botrk.lifesave", "Use BOTRK (LifeSave)", false, true);
                UtilityMenu.Activator.AddSlider("activator.botrk.hp", "Use BOTRK (LifeSave) if HP are under {0}", 20, 0,
                                                100, true);
                UtilityMenu.Activator.AddSeparator();
            }
            if (Cutlass.IsOwned())
            {
                UtilityMenu.Activator.AddCheckBox("activator.bilgewater", "Use BC");
                UtilityMenu.Activator.AddSeparator();
                UtilityMenu.Activator.AddGroupLabel("Bilgewater Cutlass Manager:",
                                                    "activator.label.utilitymenu.bilgewater", true);
                UtilityMenu.Activator.AddCheckBox("activator.bilgewater.combo", "Use BC (COMBO Mode)", true, true);
                UtilityMenu.Activator.AddCheckBox("activator.bilgewater.ks", "Use BC (KS Mode)", false, true);
                UtilityMenu.Activator.AddSeparator();
            }

            if (Youmuus.IsOwned())
            {
                UtilityMenu.Activator.AddCheckBox("activator.youmus", "Use Youmus");
                UtilityMenu.Activator.AddSeparator();
                UtilityMenu.Activator.AddGroupLabel("Youmus Manager:", "activator.label.utilitymenu.youmus", true);
                UtilityMenu.Activator.AddCheckBox("activator.youmusspellonly", "Use Youmus only on spell cast", false,
                                                  true);
                UtilityMenu.Activator.AddSeparator();
            }

            if (Hunter.IsOwned() || Refillable.IsOwned() || Potion.IsOwned() || Biscuit.IsOwned() ||
                Corrupting.IsOwned())
            {
                UtilityMenu.Activator.AddCheckBox("activator.potions", "Use Potions");
                UtilityMenu.Activator.AddSeparator();
                UtilityMenu.Activator.AddGroupLabel("Potions Manager:", "activator.label.utilitymenu.potions", true);
                UtilityMenu.Activator.AddSlider("activator.potions.hp", "Use POTIONS if HP are under {0}", 20, 0, 100,
                                                true);
                UtilityMenu.Activator.AddSlider("activator.potions.mana", "Use POTIONS if mana is under {0}", 20, 0, 100,
                                                true);
                UtilityMenu.Activator.AddSeparator();
            }

            if (Mercurial.IsOwned() || Qss.IsOwned())
            {
                UtilityMenu.Activator.AddCheckBox("activator.qss", "Use QSS - Mercurial");
                UtilityMenu.Activator.AddCheckBox("activator.qss.ulti", "Prevent ultimates");
                UtilityMenu.Activator.AddCheckBox("activator.qss.bonus", "Use on bonus");
                UtilityMenu.Activator.AddSeparator();
                UtilityMenu.Activator.AddGroupLabel("Anti Cloud-Control Manager:", "activator.label.utilitymenu.qss",
                                                    true);
                UtilityMenu.Activator.AddCheckBox("activator.qss.cc.1", "Use it on Airborne", true, true);
                UtilityMenu.Activator.AddCheckBox("activator.qss.cc.2", "Use it on Blind", true, true);
                UtilityMenu.Activator.AddCheckBox("activator.qss.cc.3", "Use it on Disarm", true, true);
                UtilityMenu.Activator.AddCheckBox("activator.qss.cc.4", "Use it on Forced Action", true, true);
                UtilityMenu.Activator.AddCheckBox("activator.qss.cc.5", "Use it on Root", true, true);
                UtilityMenu.Activator.AddCheckBox("activator.qss.cc.6", "Use it on Silence", true, true);
                UtilityMenu.Activator.AddCheckBox("activator.qss.cc.7", "Use it on Slow", true, true);
                UtilityMenu.Activator.AddCheckBox("activator.qss.cc.8", "Use it on Stasis", true, true);
                UtilityMenu.Activator.AddCheckBox("activator.qss.cc.9", "Use it on Stun", true, true);
                UtilityMenu.Activator.AddCheckBox("activator.qss.cc.10", "Use it on Suppression", true, true);
                UtilityMenu.Activator.AddSeparator();

                if (Value.Use("activator.qss.ulti"))
                {
                    UtilityMenu.Activator.AddGroupLabel("Anti Ultimate Manager:",
                                                        "activator.label.utilitymenu.qss.antiulti", true);

                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Fiora"))
                    {
                        UtilityMenu.Activator.AddCheckBox("activator.qss.ulti.1", "Prevent Fiora Ultimate", true, true);
                    }
                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Fizz"))
                    {
                        UtilityMenu.Activator.AddCheckBox("activator.qss.ulti.2", "Prevent Fizz Ultimate", true, true);
                    }
                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Lissandra"))
                    {
                        UtilityMenu.Activator.AddCheckBox("activator.qss.ulti.4", "Prevent Lissandra Ultimate", true,
                                                          true);
                    }
                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Mordekaiser"))
                    {
                        UtilityMenu.Activator.AddCheckBox("activator.qss.ulti.5", "Prevent Mordekaiser Ultimate", true,
                                                          true);
                    }
                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Thresh"))
                    {
                        UtilityMenu.Activator.AddCheckBox("activator.qss.ulti.7", "Prevent Thresh Q", true, true);
                    }
                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Vladimir"))
                    {
                        UtilityMenu.Activator.AddCheckBox("activator.qss.ulti.8", "Prevent Vladimir", true, true);
                    }
                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Zed"))
                    {
                        UtilityMenu.Activator.AddCheckBox("activator.qss.ulti.9", "Prevent Zed Ultimate", true, true);
                    }
                }

                UtilityMenu.Activator.AddSeparator();

                if (Value.Use("activator.qss.bonus"))
                {
                    UtilityMenu.Activator.AddGroupLabel("Anti Cloud-Control Bonus Manager:",
                                                        "activator.label.utilitymenu.qss.bonus", true);

                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Vayne"))
                    {
                        UtilityMenu.Activator.AddCheckBox("activator.qss.bonus.1", "Prevent Vayne Stacks", false, true);
                    }
                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Darius"))
                    {
                        UtilityMenu.Activator.AddCheckBox("activator.qss.bonus.2", "Prevent Darius BloodStacks", false,
                                                          true);
                    }
                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Kalista"))
                    {
                        UtilityMenu.Activator.AddCheckBox("activator.qss.bonus.3", "Prevent Kalista EStacks", false,
                                                          true);
                    }
                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Tristana"))
                    {
                        UtilityMenu.Activator.AddCheckBox("activator.qss.bonus.4", "Prevent Tristana EStacks", false,
                                                          true);
                    }
                }

                UtilityMenu.Activator.AddSlider("activator.qss.prevent.enemies",
                                                "Prevent to use QSS if there are less then {0} enemies", 3, 0, 5, true);
                UtilityMenu.Activator.AddSlider("activator.qss.hp", "Use QSS if HP are under {0}", 20, 0, 100, true);
                UtilityMenu.Activator.AddSeparator();
            }

            if (MainMenu._menu["useonupdate"].Cast <CheckBox>().CurrentValue)
            {
                Game.OnUpdate += GameOnUpdate;
            }
            else
            {
                Game.OnTick += GameOnUpdate;
            }

            Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast;
            Shop.OnBuyItem         += Shop_OnBuyItem;
            Obj_AI_Base.OnBuffGain += BuffGain;
        }
示例#6
0
        protected override void InitializeMenu()
        {
            Menu.AddGroupLabel("OKTR AIO - Activator for " + Player.Instance.ChampionName,
                               "activator.grouplabel.utilitymenu");
            Menu.AddCheckBox("activator.heal", "Use Heal");
            Menu.AddCheckBox("activator.barrier", "Use Barrier");
            Menu.AddCheckBox("activator.ignite", "Use Ignite");
            Menu.Add("activator.advanced", new CheckBox("Show Advanced Menu", false)).OnValueChange +=
                Value.AdvancedModeChanged;
            Menu.AddSeparator();
            Menu.AddGroupLabel("Heal Manager:", "activator.label.utilitymenu.heal", true);
            Menu.AddCheckBox("activator.heal.lifesave", "Use Heal for Allies", false, true);
            Menu.AddSlider("activator.heal.hp", "Use Heal if HP are under {0}", 15, 0, 100, true);
            Menu.AddSeparator();
            Menu.AddGroupLabel("Barrier Manager:", "activator.label.utilitymenu.barrier", true);
            Menu.AddSlider("activator.barrier.hp", "Use Heal if HP are under {0}", 15, 0, 100, true);
            Menu.AddSeparator();
            Menu.AddGroupLabel("Ignite Manager:", "activator.label.utilitymenu.ignite", true);
            Menu.AddCheckBox("activator.ignite.progressive", "Use Ignite for Progressive Damage", false, true);
            Menu.AddCheckBox("activator.ignite.burst", "Use Ignite for Burst Damage", false, true);
            Menu.AddCheckBox("activator.ignite.killsteal", "Use Ignite for Killsteal", true, true);
            Menu.AddSeparator();
            if (Botrk.IsOwned())
            {
                Menu.AddCheckBox("activator.botrk", "Use BOTRK");
                Menu.AddSeparator();
                Menu.AddGroupLabel("Blade of The Ruined King Manager:",
                                   "activator.label.utilitymenu.botrk", true);
                Menu.AddCheckBox("activator.botrk.combo", "Use BOTRK (COMBO Mode)", true, true);
                Menu.AddCheckBox("activator.botrk.ks", "Use BOTRK (KS Mode)", false, true);
                Menu.AddCheckBox("activator.botrk.lifesave", "Use BOTRK (LifeSave)", false, true);
                Menu.AddSlider("activator.botrk.hp", "Use BOTRK (LifeSave) if HP are under {0}", 20, 0,
                               100, true);
                Menu.AddSeparator();
            }
            if (Cutlass.IsOwned())
            {
                Menu.AddCheckBox("activator.bilgewater", "Use BC");
                Menu.AddSeparator();
                Menu.AddGroupLabel("Bilgewater Cutlass Manager:",
                                   "activator.label.utilitymenu.bilgewater", true);
                Menu.AddCheckBox("activator.bilgewater.combo", "Use BC (COMBO Mode)", true, true);
                Menu.AddCheckBox("activator.bilgewater.ks", "Use BC (KS Mode)", false, true);
                Menu.AddSeparator();
            }

            if (Youmuus.IsOwned())
            {
                Menu.AddCheckBox("activator.youmus", "Use Youmus");
                Menu.AddSeparator();
                Menu.AddGroupLabel("Youmus Manager:", "activator.label.utilitymenu.youmus", true);
                Menu.AddCheckBox("activator.youmusspellonly", "Use Youmus only on spell cast", false,
                                 true);
                Menu.AddSeparator();
            }

            if (Hunter.IsOwned() || Refillable.IsOwned() || Potion.IsOwned() || Biscuit.IsOwned() ||
                Corrupting.IsOwned())
            {
                Menu.AddCheckBox("activator.potions", "Use Potions");
                Menu.AddSeparator();
                Menu.AddGroupLabel("Potions Manager:", "activator.label.utilitymenu.potions", true);
                Menu.AddSlider("activator.potions.hp", "Use POTIONS if HP are under {0}", 20, 0, 100,
                               true);
                Menu.AddSlider("activator.potions.mana", "Use POTIONS if mana is under {0}", 20, 0, 100,
                               true);
                Menu.AddSeparator();
            }

            if (Mercurial.IsOwned() || Qss.IsOwned())
            {
                Menu.AddCheckBox("activator.qss", "Use QSS - Mercurial");
                Menu.AddCheckBox("activator.qss.ulti", "Prevent ultimates");
                Menu.AddCheckBox("activator.qss.bonus", "Use on bonus");
                Menu.AddSeparator();
                Menu.AddGroupLabel("Anti Cloud-Control Manager:", "activator.label.utilitymenu.qss",
                                   true);
                Menu.AddCheckBox("activator.qss.cc.1", "Use it on Airborne", true, true);
                Menu.AddCheckBox("activator.qss.cc.2", "Use it on Blind", true, true);
                Menu.AddCheckBox("activator.qss.cc.3", "Use it on Disarm", true, true);
                Menu.AddCheckBox("activator.qss.cc.4", "Use it on Forced Action", true, true);
                Menu.AddCheckBox("activator.qss.cc.5", "Use it on Root", true, true);
                Menu.AddCheckBox("activator.qss.cc.6", "Use it on Silence", true, true);
                Menu.AddCheckBox("activator.qss.cc.7", "Use it on Slow", true, true);
                Menu.AddCheckBox("activator.qss.cc.8", "Use it on Stasis", true, true);
                Menu.AddCheckBox("activator.qss.cc.9", "Use it on Stun", true, true);
                Menu.AddCheckBox("activator.qss.cc.10", "Use it on Suppression", true, true);
                Menu.AddSeparator();

                if (Value.Use("activator.qss.ulti"))
                {
                    Menu.AddGroupLabel("Anti Ultimate Manager:",
                                       "activator.label.utilitymenu.qss.antiulti", true);

                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Fiora"))
                    {
                        Menu.AddCheckBox("activator.qss.ulti.1", "Prevent Fiora Ultimate", true, true);
                    }
                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Fizz"))
                    {
                        Menu.AddCheckBox("activator.qss.ulti.2", "Prevent Fizz Ultimate", true, true);
                    }
                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Lissandra"))
                    {
                        Menu.AddCheckBox("activator.qss.ulti.4", "Prevent Lissandra Ultimate", true,
                                         true);
                    }
                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Mordekaiser"))
                    {
                        Menu.AddCheckBox("activator.qss.ulti.5", "Prevent Mordekaiser Ultimate", true,
                                         true);
                    }
                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Thresh"))
                    {
                        Menu.AddCheckBox("activator.qss.ulti.7", "Prevent Thresh Q", true, true);
                    }
                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Vladimir"))
                    {
                        Menu.AddCheckBox("activator.qss.ulti.8", "Prevent Vladimir", true, true);
                    }
                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Zed"))
                    {
                        Menu.AddCheckBox("activator.qss.ulti.9", "Prevent Zed Ultimate", true, true);
                    }
                }

                Menu.AddSeparator();

                if (Value.Use("activator.qss.bonus"))
                {
                    Menu.AddGroupLabel("Anti Cloud-Control Bonus Manager:",
                                       "activator.label.utilitymenu.qss.bonus", true);

                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Vayne"))
                    {
                        Menu.AddCheckBox("activator.qss.bonus.1", "Prevent Vayne Stacks", false, true);
                    }
                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Darius"))
                    {
                        Menu.AddCheckBox("activator.qss.bonus.2", "Prevent Darius BloodStacks", false,
                                         true);
                    }
                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Kalista"))
                    {
                        Menu.AddCheckBox("activator.qss.bonus.3", "Prevent Kalista EStacks", false,
                                         true);
                    }
                    if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Tristana"))
                    {
                        Menu.AddCheckBox("activator.qss.bonus.4", "Prevent Tristana EStacks", false,
                                         true);
                    }
                }

                Menu.AddSlider("activator.qss.prevent.enemies",
                               "Prevent to use QSS if there are less then {0} enemies", 3, 0, 5, true);
                Menu.AddSlider("activator.qss.hp", "Use QSS if HP are under {0}", 20, 0, 100, true);
                Menu.AddSeparator();
            }

            Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast;
            Shop.OnBuyItem         += Shop_OnBuyItem;
            Obj_AI_Base.OnBuffGain += BuffGain;
        }
示例#7
0
        public static void Game_OnTick(EventArgs args)
        {
            if (player.IsDead || MenuGUI.IsChatOpen || player.IsRecalling())
            {
                return;
            }

            var orbMode    = Orbwalker.ActiveModesFlags;
            var playerMana = Player.Instance.ManaPercent;

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Combo) && ComboMenu["wGapCloser"].Cast <CheckBox>().CurrentValue&&
                ComboMenu["W"].Cast <CheckBox>().CurrentValue&& (playerMana > ComboMenu.GetSliderValue("manaSlider")))
            {
                wGapCloser();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Harass) && (playerMana > HarassMenu.GetSliderValue("GapCloserManaSlider")) &&
                HarassMenu["wGapCloser"].Cast <CheckBox>().CurrentValue&& HarassMenu["W"].Cast <CheckBox>().CurrentValue)
            {
                Harass.wGapCloser();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Harass) && (playerMana > HarassMenu.GetSliderValue("manaSlider")))
            {
                Harass.ExecuteHarass();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Combo) && (Player.Instance.CountEnemiesInRange(1100) >= 1))
            {
                ExecuteCombo();
            }


            if (orbMode.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                JungleClear.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.LaneClear) &&
                (playerMana > LaneClearMenu.GetSliderValue("manaSlider")))
            {
                LaneClear.Execute();
            }


            var HealBuff = Player.HasBuff("RegenerationPotion") ||
                           Player.HasBuff("ItemMiniRegenPotion") ||
                           Player.HasBuff("ItemCrystalFlask") ||
                           Player.HasBuff("ItemDarkCrystalFlask") ||
                           Player.HasBuff("ItemCrystalFlaskJungle") ||
                           Player.Instance.IsRecalling();

            //Health Potion
            if (JungleClearMenu["usePotions"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDead || HealBuff)
                {
                    return;
                }

                if (Health.IsOwned() && Health.IsReady())
                {
                    if (Player.Instance.HealthPercent <= JungleClearMenu["PotionHp"].Cast <Slider>().CurrentValue)
                    {
                        Health.Cast();
                    }
                }
            }
            //Hunters Potion
            if (JungleClearMenu["usePotions"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDead || HealBuff)
                {
                    return;
                }

                if (Hunters.IsOwned() && Hunters.IsReady())
                {
                    if (Player.Instance.HealthPercent <= JungleClearMenu["PotionHp"].Cast <Slider>().CurrentValue)
                    {
                        Hunters.Cast();
                    }
                }
            }

            //Biscuit
            if (JungleClearMenu["usePotions"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDead || HealBuff)
                {
                    return;
                }
                if (Biscuit.IsOwned() && Biscuit.IsReady())
                {
                    if (Player.Instance.HealthPercent <= JungleClearMenu["PotionHp"].Cast <Slider>().CurrentValue)
                    {
                        Biscuit.Cast();
                    }
                }
            }

            //Refillable
            if (JungleClearMenu["usePotions"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDead || HealBuff)
                {
                    return;
                }

                if (Refillable.IsOwned() && Refillable.IsReady())
                {
                    if (Player.Instance.HealthPercent <= JungleClearMenu["PotionHp"].Cast <Slider>().CurrentValue)
                    {
                        Refillable.Cast();
                    }
                }
            }

            //Corrupting
            if (JungleClearMenu["usePotions"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDead || HealBuff)
                {
                    return;
                }

                if (Corrupting.IsOwned() && Corrupting.IsReady())
                {
                    if (Player.Instance.HealthPercent <= JungleClearMenu["PotionHp"].Cast <Slider>().CurrentValue)
                    {
                        Corrupting.Cast();
                    }
                }
            }
        }
示例#8
0
        public static void Game_OnTick(EventArgs args)
        {
            if (player.IsDead || MenuGUI.IsChatOpen || player.IsRecalling())
            {
                return;
            }

            var orbMode = Orbwalker.ActiveModesFlags;

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Combo) && (Player.Instance.CountEnemiesInRange(1000) >= 1))
            {
                ExecuteCombo();
            }


            var HealBuff = Player.HasBuff("RegenerationPotion") ||
                           Player.HasBuff("ItemMiniRegenPotion") ||
                           Player.HasBuff("ItemCrystalFlask") ||
                           Player.HasBuff("ItemDarkCrystalFlask") ||
                           Player.HasBuff("ItemCrystalFlaskJungle") ||
                           Player.Instance.IsRecalling();

            //Health Potion
            if (ConsumablesMenu["usePotions"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDead || HealBuff)
                {
                    return;
                }

                if (Health.IsOwned() && Health.IsReady())
                {
                    if (Player.Instance.HealthPercent <= ConsumablesMenu["PotionHp"].Cast <Slider>().CurrentValue)
                    {
                        Health.Cast();
                    }
                }
            }
            //Hunters Potion
            if (ConsumablesMenu["usePotions"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDead || HealBuff)
                {
                    return;
                }

                if (Hunters.IsOwned() && Hunters.IsReady())
                {
                    if (Player.Instance.HealthPercent <= ConsumablesMenu["PotionHp"].Cast <Slider>().CurrentValue)
                    {
                        Hunters.Cast();
                    }
                }
            }

            //Biscuit
            if (ConsumablesMenu["usePotions"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDead || HealBuff)
                {
                    return;
                }
                if (Biscuit.IsOwned() && Biscuit.IsReady())
                {
                    if (Player.Instance.HealthPercent <= ConsumablesMenu["PotionHp"].Cast <Slider>().CurrentValue)
                    {
                        Biscuit.Cast();
                    }
                }
            }

            //Refillable
            if (ConsumablesMenu["usePotions"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDead || HealBuff)
                {
                    return;
                }

                if (Refillable.IsOwned() && Refillable.IsReady())
                {
                    if (Player.Instance.HealthPercent <= ConsumablesMenu["PotionHp"].Cast <Slider>().CurrentValue)
                    {
                        Refillable.Cast();
                    }
                }
            }

            //Corrupting
            if (ConsumablesMenu["usePotions"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDead || HealBuff)
                {
                    return;
                }

                if (Corrupting.IsOwned() && Corrupting.IsReady())
                {
                    if (Player.Instance.HealthPercent <= ConsumablesMenu["PotionHp"].Cast <Slider>().CurrentValue)
                    {
                        Corrupting.Cast();
                    }
                }
            }
        }
示例#9
0
文件: Active.cs 项目: spall9/T2N1
        //Cast Potions
        public static void Potions()
        {
            var HealBuff = Player.HasBuff("RegenerationPotion") ||
                           Player.HasBuff("ItemMiniRegenPotion") ||
                           Player.HasBuff("ItemCrystalFlask") ||
                           Player.HasBuff("ItemDarkCrystalFlask") ||
                           Player.HasBuff("ItemCrystalFlaskJungle") ||
                           Player.Instance.IsRecalling();

            //Health Potion
            if (ActiveMenu["HealthPotion"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDead || HealBuff)
                {
                    return;
                }

                if (Health.IsOwned() && Health.IsReady())
                {
                    if (Player.Instance.HealthPercent <= ActiveMenu["Item.HealthPotionHp"].Cast <Slider>().CurrentValue)
                    {
                        Health.Cast();
                    }
                }
            }
            //Hunters Potion
            if (ActiveMenu["HuntersPotion"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDead || HealBuff)
                {
                    return;
                }

                if (Hunters.IsOwned() && Hunters.IsReady())
                {
                    if (Player.Instance.HealthPercent <= ActiveMenu["Item.HuntersPotionHp"].Cast <Slider>().CurrentValue)
                    {
                        Hunters.Cast();
                    }
                }
            }

            //Biscuit
            if (ActiveMenu["Biscuit"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDead || HealBuff)
                {
                    return;
                }
                {
                    if (Biscuit.IsOwned() && Biscuit.IsReady())
                    {
                        if (Player.Instance.HealthPercent <= ActiveMenu["Item.BiscuitHp"].Cast <Slider>().CurrentValue)
                        {
                            Biscuit.Cast();
                        }
                    }
                }
            }

            //Refillable
            if (ActiveMenu["Refillable"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDead || HealBuff)
                {
                    return;
                }

                if (Refillable.IsOwned() && Refillable.IsReady())
                {
                    if (Player.Instance.HealthPercent <= ActiveMenu["Item.RefillableHp"].Cast <Slider>().CurrentValue)
                    {
                        Refillable.Cast();
                    }
                }
            }

            //Corrupting
            if (ActiveMenu["Corrupting"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDead || HealBuff)
                {
                    return;
                }

                if (Corrupting.IsOwned() && Corrupting.IsReady())
                {
                    if (Player.Instance.HealthPercent <= ActiveMenu["Item.CorruptingHp"].Cast <Slider>().CurrentValue)
                    {
                        Corrupting.Cast();
                    }
                }
            }
        }