Пример #1
0
        public static void Update(EventArgs args)
        {
            Player = ObjectManager.Player;
            var lanemana   = Menu.ManaMenu["lanemana"].Cast <Slider>().CurrentValue;
            var harassmana = Menu.ManaMenu["harassmana"].Cast <Slider>().CurrentValue;

            if (Player.IsDead || MenuGUI.IsChatOpen || Player.IsRecalling())
            {
                return;
            }

            var flags = Orbwalker.ActiveModesFlags;

            if (flags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                Combo.Start();
            }

            if (flags.HasFlag(Orbwalker.ActiveModes.Harass) && EloBuddy.Player.Instance.ManaPercent >= harassmana)
            {
                Harass.Start();
            }

            if (flags.HasFlag(Orbwalker.ActiveModes.LaneClear) && EloBuddy.Player.Instance.ManaPercent >= lanemana)
            {
                Clear.Start();
            }

            if (flags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                Jungle.Start();
            }

            PermaActive.Active();
        }
Пример #2
0
        private static void Game_OnUpdate(EventArgs args)
        {
            if (!EvolvedQ && player.HasBuff("khazixqevo"))
            {
                Q.Range  = 375;
                EvolvedQ = true;
            }

            if (!EvolvedW && player.HasBuff("khazixwevo"))
            {
                W        = new Spell.Skillshot(SpellSlot.W, 1000, SkillShotType.Linear, 225, 828, 100);
                EvolvedW = true;
            }

            if (!EvolvedE && player.HasBuff("khazixeevo"))
            {
                E.Range  = 1000;
                EvolvedE = true;
            }

            if (player.IsDead || MenuGUI.IsChatOpen || player.IsRecalling())
            {
                return;
            }

            var flags = Orbwalker.ActiveModesFlags;

            if (flags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                Combo.Start();
            }

            if (flags.HasFlag(Orbwalker.ActiveModes.Harass) &&
                menu.Mana["harass"].Cast <Slider>().CurrentValue < player.ManaPercent)
            {
                Harass.Start();
            }

            if (flags.HasFlag(Orbwalker.ActiveModes.LaneClear) &&
                menu.Mana["lane"].Cast <Slider>().CurrentValue < player.ManaPercent)
            {
                Clear.LaneClear();
            }

            if (flags.HasFlag(Orbwalker.ActiveModes.LastHit) &&
                menu.Mana["last"].Cast <Slider>().CurrentValue < player.ManaPercent)
            {
                Clear.LastHit();
            }

            if (flags.HasFlag(Orbwalker.ActiveModes.JungleClear) &&
                menu.Mana["jungle"].Cast <Slider>().CurrentValue < player.ManaPercent)
            {
                Clear.JungleClear();
            }

            KillSteal.Steal();
        }
Пример #3
0
        public static void Update(EventArgs args)
        {
            var lanemana   = Menu.ManaMenu["lanemana"].Cast <Slider>().CurrentValue;
            var harassmana = Menu.ManaMenu["harassmana"].Cast <Slider>().CurrentValue;
            var target     = TargetSelector.GetTarget(Spells.Q.Range, DamageType.Physical);

            if (Player.Instance.IsDead || MenuGUI.IsChatOpen || Player.Instance.IsRecalling())
            {
                return;
            }

            if (target != null && target.HasBuff("kindredrnodeathbuff") && target.HealthPercent <= 15 &&
                Menu.ComboMenu["Pspells"].Cast <CheckBox>().CurrentValue)
            {
                return;
            }

            var flags = Orbwalker.ActiveModesFlags;

            if (flags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                Combo.Start();
            }

            if (flags.HasFlag(Orbwalker.ActiveModes.LaneClear) && Player.Instance.ManaPercent >= lanemana)
            {
                Clear.Start();
            }

            if (flags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                Jungle.Start();
            }

            if (flags.HasFlag(Orbwalker.ActiveModes.Harass) && Player.Instance.ManaPercent >= harassmana)
            {
                Harass.Start();
            }

            if (flags.HasFlag(Orbwalker.ActiveModes.Flee))
            {
                Flee.Start();
            }

            if (Menu.ComboMenu["Emark"].Cast <CheckBox>().CurrentValue)
            {
                var Etarget =
                    ObjectManager.Get <AIHeroClient>()
                    .Where(enemy => !enemy.IsDead && enemy.IsValidTarget(Player.Instance.GetAutoAttackRange()))
                    .FirstOrDefault(enemy => enemy.Buffs.Any(buff => buff.Name == "KindredERefresher" && buff.Count > 0));
                if (Etarget != null)
                {
                    TargetSelector.GetPriority(Etarget);
                }
            }

            if (Menu.ComboMenu["Pmark"].Cast <CheckBox>().CurrentValue)
            {
                var Ptarget =
                    ObjectManager.Get <AIHeroClient>()
                    .Where(enemy => !enemy.IsDead && enemy.IsValidTarget(Player.Instance.GetAutoAttackRange()))
                    .FirstOrDefault(enemy => enemy.Buffs.Any(buff => buff.Name == "KindredHitTracker"));

                if (Ptarget != null)
                {
                    TargetSelector.GetPriority(Ptarget);
                }
            }
        }