Beispiel #1
0
        private static void OnPostAttack(AttackableUnit target, EventArgs Args)
        {
            havePassive = false;

            if (target == null || target.IsDead || target.Health <= 0)
            {
                return;
            }

            if (isComboMode && target.Type == GameObjectType.AIHeroClient)
            {
                if (Youmuus.IsOwned() && Youmuus.IsReady())
                {
                    Youmuus.Cast();
                }

                AfterAACombo(target as AIHeroClient);
            }

            if (isLaneClearMode && ManaManager.SpellFarm && ManaManager.HasEnoughMana(MenuInit.TurretClearMP) &&
                (target.Type == GameObjectType.obj_AI_Turret ||
                 target.Type == GameObjectType.obj_Turret || target.Type == GameObjectType.obj_HQ ||
                 target.Type == GameObjectType.obj_BarracksDampener))
            {
                AfterAALane(target);
            }

            if (isJungleClearMode && ManaManager.SpellFarm && target.Type == GameObjectType.obj_AI_Minion &&
                ManaManager.HasEnoughMana(MenuInit.JungleClearMP))
            {
                AfterAAJungle();
            }
        }
Beispiel #2
0
        private static void OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            if (sender.IsMe && Youmuus.IsOwned() && Value.Use("activator.youmusspellonly"))
            {
                if (((Player.Instance.ChampionName == "Lucian" ||
                      Player.Instance.ChampionName == "Twitch" ||
                      Player.Instance.ChampionName == "Zed" ||
                      Player.Instance.ChampionName == "Varus") && args.Slot == SpellSlot.R) ||
                    (Player.Instance.ChampionName == "Ashe" && args.Slot == SpellSlot.Q))

                {
                    Youmuus.Cast();
                }
            }
        }
Beispiel #3
0
        private static void OnCastSpell(Spellbook sender, SpellbookCastSpellEventArgs Args)
        {
            if (Args.Slot == SpellSlot.Q || Args.Slot == SpellSlot.W || Args.Slot == SpellSlot.E)
            {
                havePassive  = true;
                lastCastTime = TickCount;
            }

            if (Args.Slot == SpellSlot.E && !Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.None))
            {
                Orbwalker.ResetAutoAttack();
            }

            if (Args.Slot == SpellSlot.R && Youmuus.IsOwned() && Youmuus.IsReady())
            {
                Youmuus.Cast();
            }
        }
Beispiel #4
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;
        }
Beispiel #5
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;
        }