Example #1
0
        internal static void Init()
        {
            if (Menu.GetBool("KillStealQ") && Q.IsReady())
            {
                foreach (
                    var target in
                    HeroManager.Enemies.Where(x => x.Check(Q.Range) && x.Health < DamageCalculate.GetQDamage(x)))
                {
                    if (target.IsValidTarget(Q.Range))
                    {
                        Q.CastOnUnit(target, true);
                    }
                }
            }

            if (Menu.GetBool("KillStealE") && E.IsReady())
            {
                foreach (
                    var target in
                    HeroManager.Enemies.Where(x => x.Check(E.Range + EWidth) && x.Health < DamageCalculate.GetEDamage(x)))
                {
                    if (target.IsValidTarget(E.Range + EWidth - 100))
                    {
                        SpellManager.CastE(target);
                    }
                }
            }
        }
Example #2
0
        internal static void Init()
        {
            if (ManaManager.HasEnoughMana(Menu.GetSlider("LaneClearMana")) && ManaManager.SpellFarm)
            {
                if (Menu.GetBool("LaneClearQ") && Q.IsReady())
                {
                    var qMinion =
                        MinionManager.GetMinions(Me.Position, Q.Range)
                        .FirstOrDefault(
                            x => x.Health <DamageCalculate.GetQDamage(x) && x.Health> Me.GetAutoAttackDamage(x));

                    if (qMinion != null && qMinion.IsValidTarget(Q.Range))
                    {
                        Q.CastOnUnit(qMinion, true);
                    }
                }

                if (Menu.GetBool("LaneClearE") && E.IsReady())
                {
                    var eMinions = MinionManager.GetMinions(Me.Position, E.Range + EWidth);

                    if (eMinions.Any())
                    {
                        var eMinion = eMinions.FirstOrDefault(x => x.IsValidTarget(E.Range));
                        var target  = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Magical);

                        if (target != null && target.IsValidTarget(E.Range))
                        {
                            var exEMinions = MinionManager.GetMinions(target.Position, E.Range);
                            var eFarm      =
                                SpellManager.GetBestLineFarmLocation(
                                    exEMinions.Select(x => x.Position.To2D()).ToList(), target.Position, E.Width, EWidth);

                            if (eFarm.MinionsHit + 1 >= Menu.GetSlider("LaneClearECount"))
                            {
                                SpellManager.FixECast(target.Position, eFarm.Position.To3D());
                            }
                        }
                        else if (eMinion != null)
                        {
                            var exEMinions = MinionManager.GetMinions(eMinion.Position, E.Range);
                            var eFarm      =
                                SpellManager.GetBestLineFarmLocation(
                                    exEMinions.Select(x => x.Position.To2D()).ToList(), eMinion.Position, E.Width, EWidth);

                            if (eFarm.MinionsHit >= Menu.GetSlider("LaneClearECount"))
                            {
                                SpellManager.FixECast(eMinion.Position, eFarm.Position.To3D());
                            }
                        }
                    }
                }
            }
        }
Example #3
0
        internal static void Init()
        {
            if (ManaManager.HasEnoughMana(Menu.GetSlider("LastHitMana")))
            {
                if (Menu.GetBool("LastHitQ") && Q.IsReady())
                {
                    var qMinions =
                        MinionManager.GetMinions(Me.Position, Q.Range)
                        .FirstOrDefault(
                            x => x.Health > Me.GetAutoAttackDamage(x) && x.Health < DamageCalculate.GetQDamage(x));

                    if (qMinions != null && qMinions.IsValidTarget(Q.Range))
                    {
                        Q.CastOnUnit(qMinions, true);
                    }
                }
            }
        }
Example #4
0
        internal static void Init()
        {
            if (SpellManager.isCastingUlt)
            {
                return;
            }

            if (Menu.GetBool("LastHitQ") && Q.IsReady())
            {
                var qMinion =
                    MinionManager.GetMinions(Me.Position, Q.Range)
                    .FirstOrDefault(x => x.Health < DamageCalculate.GetQDamage(x));

                if (qMinion != null && qMinion.IsValidTarget(Q.Range))
                {
                    Q.CastOnUnit(qMinion, true);
                }
            }
        }
Example #5
0
        internal static void Init()
        {
            if (SpellManager.isCastingUlt || !ManaManager.SpellFarm)
            {
                return;
            }

            if (Menu.GetBool("LaneClearQ") && Q.IsReady())
            {
                if (Menu.GetBool("LaneClearQLH"))
                {
                    var qMinion =
                        MinionManager.GetMinions(Me.Position, Q.Range)
                        .FirstOrDefault(x => x.Health < DamageCalculate.GetQDamage(x));

                    if (qMinion != null && qMinion.IsValidTarget(Q.Range))
                    {
                        Q.CastOnUnit(qMinion, true);
                    }
                }
                else
                {
                    var qMinions = MinionManager.GetMinions(Me.Position, Q.Range);

                    if (qMinions.Count >= 2)
                    {
                        Q.CastOnUnit(qMinions.FirstOrDefault(), true);
                    }
                }
            }

            if (Menu.GetBool("LaneClearW") && W.IsReady())
            {
                var wMinions = MinionManager.GetMinions(Me.Position, W.Range);

                if (wMinions.Count >= Menu.GetSlider("LaneClearWCount"))
                {
                    W.Cast();
                }
            }
        }
Example #6
0
        internal static void Init()
        {
            if (Menu.GetBool("KillStealR") && R.IsReady())
            {
                if (Menu.GetBool("KillStealRNotCombo") && Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
                {
                    return;
                }

                foreach (
                    var target in
                    HeroManager.Enemies.Where(
                        x =>
                        x.DistanceToPlayer() <= R.Range && x.Health <= DamageCalculate.GetRDamage(x) &&
                        !x.HasBuff("willrevive")))
                {
                    if (target.DistanceToPlayer() <= R.Range && !target.IsDead && Me.CanMoveMent())
                    {
                        R.CastOnUnit(target, true);
                    }
                }
            }

            if (Menu.GetBool("KillStealQ") && Q.IsReady())
            {
                foreach (
                    var target in
                    HeroManager.Enemies.Where(
                        x => x.DistanceToPlayer() <= Q.Range && x.Health <= DamageCalculate.GetQDamage(x)))
                {
                    if (target.IsValidTarget(Q.Range) && !target.IsDead && Me.CanMoveMent())
                    {
                        Q.Cast(true);
                        return;
                    }
                }
            }
        }
Example #7
0
        private static void KillSteal()
        {
            if (MenuInit.KillStealQ && Q.IsReady() && PlayerMana > QMana + EMana)
            {
                foreach (var target in EntityManager.Heroes.Enemies
                         .Where(x => x.IsValidTarget(QExtend.Range) && !x.IsUnKillable() && x.Health < DamageCalculate.GetQDamage(x)))
                {
                    QLogic(target);
                    return;
                }
            }

            if (MenuInit.KillStealW && W.IsReady() && PlayerMana > WMana + QMana + EMana)
            {
                foreach (var target in EntityManager.Heroes.Enemies
                         .Where(x => x.IsValidTarget(W.Range) && !x.IsUnKillable() && x.Health < DamageCalculate.GetWDamage(x)))
                {
                    if (target.IsValidTarget(W.Range))
                    {
                        W.PredCast(target, false);
                        return;
                    }
                }
            }
        }
Example #8
0
        private static void JungleSteal()
        {
            var mobs =
                ObjectManager.Get <Obj_AI_Minion>()
                .Where(
                    x =>
                    x != null && x.IsMonster && x.Distance(Player.Instance) <= 950 &&
                    !x.Name.ToLower().Contains("mini") && !x.Name.ToLower().Contains("respawn") &&
                    !x.Name.ToLower().Contains("plant"))
                .OrderBy(x => x.MaxHealth);

            foreach (var mob in mobs)
            {
                if (mob.Distance(Player.Instance) > (Q.IsReady() ? Q.Range : R.IsReady() ? R.Range : 1000))
                {
                    continue;
                }

                if (JungleStealMenu["JungleAlly"].Cast <CheckBox>().CurrentValue&&
                    EntityManager.Heroes.Allies.Any(
                        x =>
                        !x.IsDead && !x.IsMe &&
                        x.Distance(mob) <= JungleStealMenu["JungleAllyRange"].Cast <Slider>().CurrentValue))
                {
                    continue;
                }

                if (JungleStealMenu[mob.CharData.BaseSkinName] != null &&
                    JungleStealMenu[mob.CharData.BaseSkinName].Cast <CheckBox>().CurrentValue)
                {
                    if (JungleStealMenu["JungleR"].Cast <CheckBox>().CurrentValue&&
                        mob.Distance(Player.Instance) <= R.Range && mob.Health <= DamageCalculate.GetRDamage(mob))
                    {
                        Player.Instance.Spellbook.CastSpell(SpellSlot.R);
                    }
                    else if (JungleStealMenu["JungleQ"].Cast <CheckBox>().CurrentValue&&
                             mob.Distance(Player.Instance) <= Q.Range && mob.Health <= DamageCalculate.GetQDamage(mob))
                    {
                        var Pred = Q.GetPrediction(mob);

                        if (Pred.HitChance == HitChance.High && !Pred.CollisionObjects.Any())
                        {
                            Q.Cast(mob.Position);
                        }
                    }
                }
            }
        }
Example #9
0
        internal static void Init()
        {
            if (SpellManager.isCastingUlt && !Menu.GetBool("KillStealCancel"))
            {
                return;
            }

            foreach (
                var target in
                HeroManager.Enemies.Where(x => !x.IsDead && !x.IsZombie && x.IsValidTarget(E.Range + 300))
                .OrderBy(x => x.Health))
            {
                if (target.Check(E.Range + 300))
                {
                    if (target.Health < DamageCalculate.GetQDamage(target) && Menu.GetBool("KillStealQ") && Q.IsReady() &&
                        target.IsValidTarget(Q.Range))
                    {
                        if (SpellManager.isCastingUlt)
                        {
                            SpellManager.CancelUlt(true);
                            Q.CastOnUnit(target, true);
                            return;
                        }
                        Q.CastOnUnit(target, true);
                        return;
                    }

                    if (target.Health < DamageCalculate.GetEDamage(target) && Menu.GetBool("KillStealE") && E.IsReady())
                    {
                        if (target.DistanceToPlayer() <= E.Range + 130)
                        {
                            var pos = Me.Position.Extend(target.Position, target.DistanceToPlayer() + 130);
                            if (SpellManager.isCastingUlt)
                            {
                                SpellManager.CancelUlt(true);
                                E.Cast(pos, true);
                                return;
                            }
                            E.Cast(pos, true);
                            return;
                        }

                        if (target.IsValidTarget(E.Range))
                        {
                            if (SpellManager.isCastingUlt)
                            {
                                SpellManager.CancelUlt(true);
                                E.Cast(target, true);
                                return;
                            }
                            E.Cast(target, true);
                            return;
                        }
                    }

                    if (target.Health < DamageCalculate.GetQDamage(target) + DamageCalculate.GetEDamage(target) &&
                        Menu.GetBool("KillStealQ") && Menu.GetBool("KillStealE") && Q.IsReady() && E.IsReady() &&
                        target.IsValidTarget(E.Range))
                    {
                        if (SpellManager.isCastingUlt)
                        {
                            SpellManager.CancelUlt(true);
                            Q.CastOnUnit(target, true);
                            E.Cast(target, true);
                            return;
                        }
                        Q.CastOnUnit(target, true);
                        E.Cast(target, true);
                        return;
                    }

                    if (target.Health < DamageCalculate.GetPassiveDamage(target) + DamageCalculate.GetEDamage(target) &&
                        Menu.GetBool("KillStealE") && E.IsReady() &&
                        Daggers.Any(
                            x =>
                            x.Dagger.IsValid &&
                            x.Position.Distance(target.Position) <= SpellManager.PassiveRange &&
                            x.Position.DistanceToPlayer() <= E.Range))
                    {
                        foreach (
                            var obj in
                            Daggers.Where(x => x.Position.Distance(target.Position) <= SpellManager.PassiveRange)
                            .OrderBy(x => x.Position.Distance(target.Position)))
                        {
                            if (obj.Dagger != null && obj.Dagger.IsValid && obj.Position.DistanceToPlayer() <= E.Range)
                            {
                                if (SpellManager.isCastingUlt)
                                {
                                    SpellManager.CancelUlt(true);
                                    E.Cast(obj.Position, true);
                                    LeagueSharp.Common.Utility.DelayAction.Add(100 + Game.Ping, () => E.Cast(target, true));
                                    return;
                                }
                                E.Cast(obj.Position, true);
                                LeagueSharp.Common.Utility.DelayAction.Add(100 + Game.Ping, () => E.Cast(target, true));
                                return;
                            }
                        }
                    }
                }
            }
        }
Example #10
0
        private static void KillSteal()
        {
            if (Menu.Item("KillStealQ").GetValue <bool>() && Q.IsReady())
            {
                var qt = HeroManager.Enemies.Where(x => x.IsValidTarget(Q.Range) && x.Health < DamageCalculate.GetQDamage(x)).FirstOrDefault();

                if (qt != null)
                {
                    Q.Cast();
                    return;
                }
            }

            if (Menu.Item("KillStealR").GetValue <bool>() && R.IsReady())
            {
                var rt = HeroManager.Enemies.Where(x => x.IsValidTarget(R.Range) && x.Health < DamageCalculate.GetRDamage(x) &&
                                                   Menu.Item("Ult" + x.ChampionName.ToLower()).GetValue <bool>()).FirstOrDefault();

                if (rt != null)
                {
                    R.Cast();
                    return;
                }
            }
        }