Esempio n. 1
0
        public static void Harass()
        {
            var target = TargetSelector.GetTarget(360, TargetSelector.DamageType.Physical);

            if (target == null)
            {
                return;
            }

            if (Spells.Q.IsReady() && Spells.W.IsReady() && Qstack == 1)
            {
                BackgroundData.CastQ(target);
            }

            if (Spells.W.IsReady() && BackgroundData.InRange(target))
            {
                BackgroundData.CastW(target);
            }

            if (!Spells.Q.IsReady() ||
                !Spells.E.IsReady() ||
                Qstack != 3 ||
                Orbwalking.CanAttack() ||
                !Orbwalking.CanMove(5))
            {
                return;
            }

            Spells.E.Cast(Game.CursorPos);

            Utility.DelayAction.Add(190, () => Spells.Q.Cast(target.Position));
        }
Esempio n. 2
0
        public static void FastHarass()
        {
            var target = TargetSelector.GetTarget(400, TargetSelector.DamageType.Physical);

            if (target == null)
            {
                return;
            }

            if (Spells.Q.IsReady() && Spells.W.IsReady() && Spells.E.IsReady() && Qstack == 1)
            {
                BackgroundData.CastQ(target);
            }

            if (Qstack != 3)
            {
                return;
            }

            if (Spells.E.IsReady())
            {
                Spells.E.Cast(Game.CursorPos);
            }

            if (Spells.W.IsReady())
            {
                LeagueSharp.Common.Utility.DelayAction.Add(170, () => Spells.W.Cast());
            }

            LeagueSharp.Common.Utility.DelayAction.Add(190, () => Spells.Q.Cast(Game.CursorPos));
        }
Esempio n. 3
0
        public static void Harass()
        {
            var target = TargetSelector.GetTarget(360, DamageType.Physical);

            if (target == null)
            {
                return;
            }

            if (Spells.Q.IsReady() && Spells.W.IsReady() && Qstack == 1)
            {
                BackgroundData.CastQ(target);
            }

            if (Spells.W.IsReady() && BackgroundData.InRange(target))
            {
                BackgroundData.CastW(target);
            }

            if (!Spells.Q.IsReady() ||
                !Spells.E.IsReady() ||
                Qstack != 3 ||
                Orbwalker.CanAutoAttack ||//Orbwalking.CanAttack()
                !Orbwalker.CanMove)   //!Orbwalking.CanMove(5))
            {
                return;
            }

            Spells.E.Cast(Game.CursorPos);
            EloBuddy.SDK.Core.DelayAction(() => Spells.Q.Cast(target.Position), 190);
        }
Esempio n. 4
0
        public static void Laneclear()
        {
            var minions = MinionManager.GetMinions(Player.AttackRange + 380);

            if (minions == null || Player.IsWindingUp || (MenuConfig.LaneEnemy && ObjectManager.Player.CountEnemiesInRange(1500) > 0))
            {
                return;
            }

            if (minions.Count <= 2)
            {
                return;
            }

            foreach (var m in minions)
            {
                if (m.UnderTurret(true))
                {
                    return;
                }

                if (Spells.E.IsReady() && MenuConfig.LaneE)
                {
                    BackgroundData.CastE(m);
                }

                if (MenuConfig.LaneQFast && m.Health < Spells.Q.GetDamage(m) && Spells.Q.IsReady())
                {
                    BackgroundData.CastQ(m);
                }

                else if (Spells.W.IsReady() &&
                         MenuConfig.LaneW &&
                         !Player.IsWindingUp &&
                         !(m.Health > Spells.W.GetDamage(m)) &&
                         BackgroundData.InRange(m))
                {
                    BackgroundData.CastW(m);
                }
            }
        }
Esempio n. 5
0
        public static void FastHarass()
        {
            var target = TargetSelector.GetTarget(400, DamageType.Physical);

            if (target == null || !Spells.Q.IsReady() || !Spells.E.IsReady())
            {
                return;
            }

            if (Spells.Q.IsReady() && Spells.W.IsReady() && Spells.E.IsReady() && Qstack == 1)
            {
                BackgroundData.CastQ(target);
            }

            if (Qstack == 3 && !Orbwalker.CanAutoAttack && Orbwalker.CanMove)//!Orbwalking.CanAttack() && Orbwalking.CanMove(5))
            {
                Spells.E.Cast(Game.CursorPos);

                EloBuddy.SDK.Core.DelayAction(() => Spells.W.Cast(), 170);
                EloBuddy.SDK.Core.DelayAction(() => Spells.Q.Cast(Game.CursorPos), 190);
            }
        }
Esempio n. 6
0
        public static void Laneclear()
        {
            var minions = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, Player.AttackRange + 380).ToList();

            if (minions == null || (MenuConfig.LaneEnemy && Player.CountEnemiesInRange(1500) > 0))// || Player.IsWindingUp)
            {
                return;
            }

            if (minions.Count <= 2)
            {
                return;
            }

            foreach (var m in minions)
            {
                if (m.IsUnderEnemyturret())
                {
                    return;
                }
                if (Spells.E.IsReady() && MenuConfig.LaneE)
                {
                    BackgroundData.CastE(m);
                }
                if (MenuConfig.LaneQFast && m.Health < RivenSharp.Managers.DamageManager.GetQDamage(m) && Spells.Q.IsReady())
                {
                    BackgroundData.CastQ(m);
                }
                else if (Spells.W.IsReady() &&
                         MenuConfig.LaneW
                         //&& !Player.IsWindingUp
                         && !(m.Health > RivenSharp.Managers.DamageManager.GetWDamage(m)) &&
                         BackgroundData.InRange(m))
                {
                    BackgroundData.CastW(m);
                }
            }
        }
Esempio n. 7
0
        public static void FastHarass()
        {
            var target = TargetSelector.GetTarget(400, TargetSelector.DamageType.Physical);

            if (target == null || !Spells.Q.IsReady() || !Spells.E.IsReady())
            {
                return;
            }

            if (Spells.Q.IsReady() && Spells.W.IsReady() && Spells.E.IsReady() && Qstack == 1)
            {
                BackgroundData.CastQ(target);
            }

            if (Qstack == 3 && !Orbwalking.CanAttack() && Orbwalking.CanMove(5))
            {
                Spells.E.Cast(Game.CursorPos);

                Utility.DelayAction.Add(170, () => Spells.W.Cast());

                Utility.DelayAction.Add(190, () => Spells.Q.Cast(Game.CursorPos));
            }
        }
Esempio n. 8
0
        public static void Harass()
        {
            var target = TargetSelector.GetTarget(360, TargetSelector.DamageType.Physical);

            if (target == null)
            {
                return;
            }

            if (Spells.Q.IsReady() && Spells.W.IsReady() && Qstack == 1)
            {
                BackgroundData.CastQ(target);
            }

            if (Spells.W.IsReady() && BackgroundData.InRange(target))
            {
                BackgroundData.CastW(target);
            }

            if (!Spells.Q.IsReady() ||
                !Spells.E.IsReady() ||
                Qstack != 3 ||
                Orbwalking.CanAttack() ||
                !Orbwalking.CanMove(0))
            {
                return;
            }

            Spells.E.Cast(Game.CursorPos);

            if (Spells.R.IsReady() && Spells.R.Instance.Name == IsFirstR && MenuConfig.UltHarass && target.Health < Dmg.GetComboDamage(target) * 1.2)
            {
                Spells.R.Cast(target);
            }

            LeagueSharp.Common.Utility.DelayAction.Add(190, () => Spells.Q.Cast(target.Position));
        }
Esempio n. 9
0
        // Jungle, Combo etc.
        public static void OnDoCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            if (!sender.IsMe || !Orbwalker.IsAutoAttacking)//!Orbwalking.IsAutoAttack(args.SData.Name))
            {
                return;
            }
            var a = EntityManager.Enemies.Where(x => x.IsValidTarget(Player.AttackRange + 360, true));

            var targets = a as AIHeroClient[] ?? a.ToArray();

            foreach (var target in targets)
            {
                if (target.HasBuff("FioraW") && Qstack == 3)
                {
                    return;
                }
                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) && !MenuConfig.BurstEnabled)
                {
                    if (Spells.Q.IsReady())
                    {
                        Usables.CastYoumoo();
                        BackgroundData.CastQ(target);
                    }
                }
                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
                {
                    if (Qstack == 2)
                    {
                        BackgroundData.CastQ(target);
                    }
                }

                /*
                 * if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.FastHarass)
                 * {
                 *  if (Spells.Q.IsReady() && Qstack == 2)
                 *  {
                 *      BackgroundData.CastQ(target);
                 *  }
                 * }
                 */

                if (!Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) || !MenuConfig.BurstEnabled)
                {
                    return;
                }

                if (Spells.Q.IsReady())
                {
                    BackgroundData.CastQ(target);
                }
            }
            if (!Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || !Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            //if (Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.LaneClear)
            {
                return;
            }

            if (args.Target is Obj_AI_Minion)
            {
                if (MenuConfig.LaneEnemy && ObjectManager.Player.CountEnemiesInRange(1500) > 0)
                {
                    return;
                }
                var minions = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, Player.AttackRange + 360);
                foreach (var m in minions)
                {
                    if (!MenuConfig.LaneQ || (m.IsUnderEnemyturret() && ObjectManager.Player.CountEnemiesInRange(1500) >= 1))
                    {
                        return;
                    }

                    if (Spells.Q.IsReady())
                    {
                        BackgroundData.CastQ(m);
                    }
                }
                var mobs = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Position, 360);
                if (mobs == null)
                {
                    return;
                }

                foreach (var m in mobs)
                {
                    if (MenuConfig.JnglQ && Spells.Q.IsReady())
                    {
                        BackgroundData.CastQ(m);
                    }

                    if (!Spells.W.IsReady() || !MenuConfig.JnglW || Player.HasBuff("RivenFeint") || !BackgroundData.InRange(m))
                    {
                        return;
                    }

                    BackgroundData.CastW(m);
                }
            }

            if (!Spells.Q.IsReady() || !MenuConfig.LaneQ)
            {
                return;
            }

            var nexus = args.Target as Obj_HQ;

            if (nexus != null && nexus.IsValid)
            {
                IsGameObject = true;
                Spells.Q.Cast(nexus.Position - 500);
            }

            var inhib = args.Target as Obj_BarracksDampener;

            if (inhib != null && inhib.IsValid)
            {
                IsGameObject = true;
                Spells.Q.Cast(inhib.Position - 250);
            }

            var turret = args.Target as Obj_AI_Turret;

            if (turret == null || !turret.IsValid)
            {
                return;
            }

            IsGameObject = true;
            Spells.Q.Cast(turret.Position - 250);
        }
Esempio n. 10
0
        public static void Combo()
        {
            var targetAquireRange = Spells.R.IsReady() ? Player.AttackRange + 390 : Player.AttackRange + 370;
            var target            = TargetSelector.GetTarget(targetAquireRange, DamageType.Physical);

            //var target = TargetSelector.GetTarget(targetAquireRange, DamageType.Physical, Player.Position);

            if (target == null || !target.IsValidTarget() || target.Type != Player.Type)
            {
                return;
            }

            if (Spells.R.IsReady() && Spells.R.Name == IsSecondR)
            {
                var pred = Spells.R.GetPrediction(target);                                                                                    //, true, collisionable: new[] { CollisionableObjects.YasuoWall });

                if (pred.HitChance != EloBuddy.SDK.Enumerations.HitChance.High || target.HasBuff(BackgroundData.InvulnerableList.ToString())) // || Player.IsWindingUp)
                {
                    //return;
                }
                else
                {
                    if ((!MenuConfig.OverKillCheck && Qstack > 1) || MenuConfig.OverKillCheck &&
                        (target.HealthPercent <= 40 &&
                         !Spells.Q.IsReady() && Qstack == 1 || target.Distance(Player) >= Player.AttackRange + 310))
                    {
                        Player.Spellbook.CastSpell(SpellSlot.R, pred.UnitPosition);
                    }
                }
            }

            #region Q3 Wall

            if (Qstack == 3 && target.Distance(Player) >= Player.AttackRange && target.Distance(Player) <= 650 && MenuConfig.Q3Wall && Spells.E.IsReady())
            {
                var wallPoint = FleeLogic.GetFirstWallPoint(Player.Position, Player.Position.Extend(target.Position, 650).To3D());//TODO: Fix this...

                Player.GetPath(wallPoint);

                if (!Spells.E.IsReady() || wallPoint.Distance(Player.Position) > Spells.E.Range || !wallPoint.IsValid())
                {
                    //return;
                }
                else
                {
                    Player.Spellbook.CastSpell(SpellSlot.E, wallPoint);

                    if (Spells.R.IsReady() && Spells.R.Name == IsFirstR)
                    {
                        Player.Spellbook.CastSpell(SpellSlot.R, target);
                    }

                    EloBuddy.SDK.Core.DelayAction(() => Player.Spellbook.CastSpell(SpellSlot.Q, wallPoint), 190);

                    if (wallPoint.Distance(Player.Position) <= 100)
                    {
                        Player.Spellbook.CastSpell(SpellSlot.Q, wallPoint);
                    }
                }
            }
            #endregion

            if (Spells.E.IsReady())
            {
                //Chat.Print("I casted E toward " + target.Name);
                Usables.CastYoumoo();

                if (MenuConfig.AlwaysR && Spells.R.IsReady() && !Spells.R.IsOnCooldown && Spells.R.Name == IsFirstR)
                {
                    Player.Spellbook.CastSpell(SpellSlot.R, target);
                }
                else
                {
                    Player.Spellbook.CastSpell(SpellSlot.E, target);
                    //if (Player.Distance(target) < 350)

                    EloBuddy.SDK.Core.DelayAction(Usables.CastHydra, 10);
                }
            }

            if (Spells.W.IsReady() && BackgroundData.InRange(target))
            {
                if (MenuConfig.Doublecast && Spells.Q.IsReady() && Qstack != 2)
                {
                    BackgroundData.CastW(target);
                    BackgroundData.DoubleCastQ(target);
                }
                else
                {
                    BackgroundData.CastW(target);
                }
            }
            //Added....
            if (Spells.Q.IsReady() && Spells.Q.IsInRange(target))
            {
                BackgroundData.CastQ(target);
                //Player.Spellbook.CastSpell(SpellSlot.Q, target);
            }
        }
Esempio n. 11
0
        public static void OnSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            if (!sender.IsMe || !Orbwalking.IsAutoAttack(args.SData.Name))
            {
                return;
            }

            var a = HeroManager.Enemies.Where(x => x.IsValidTarget(Player.AttackRange + 360));

            var targets = a as AIHeroClient[] ?? a.ToArray();

            foreach (var target in targets)
            {
                if (target.HasBuff("FioraW") && Qstack == 3)
                {
                    return;
                }

                switch (Orbwalker.ActiveMode)
                {
                case Orbwalking.OrbwalkingMode.Combo:

                    if (Spells.Q.IsReady())
                    {
                        Usables.CastYoumoo();
                        BackgroundData.CastQ(target);
                    }

                    break;

                case Orbwalking.OrbwalkingMode.Burst:

                    if (Spells.Q.IsReady())
                    {
                        BackgroundData.CastQ(target);
                    }

                    break;

                case Orbwalking.OrbwalkingMode.Mixed:

                    if (Qstack == 2)
                    {
                        BackgroundData.CastQ(target);
                    }

                    if (Spells.R.IsReady() && Spells.R.Instance.Name == IsSecondR)
                    {
                        Spells.R.Cast(target);
                    }
                    break;

                case Orbwalking.OrbwalkingMode.QuickHarass:

                    if (Spells.Q.IsReady() && Qstack == 2)
                    {
                        BackgroundData.CastQ(target);
                    }

                    break;
                }
            }

            if (Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.LaneClear)
            {
                return;
            }

            if (args.Target is Obj_AI_Minion)
            {
                if (MenuConfig.LaneEnemy && ObjectManager.Player.CountEnemiesInRange(1500) > 0)
                {
                    return;
                }

                var minions = MinionManager.GetMinions(Player.AttackRange + 360);

                foreach (var m in minions)
                {
                    if (!MenuConfig.LaneQ || (m.UnderTurret(true) && ObjectManager.Player.CountEnemiesInRange(1500) >= 1))
                    {
                        return;
                    }

                    if (Spells.Q.IsReady())
                    {
                        BackgroundData.CastQ(m);
                    }
                }

                var mobs = MinionManager.GetMinions(Player.Position, 360f, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.None);

                if (mobs == null)
                {
                    return;
                }

                foreach (var m in mobs)
                {
                    if (MenuConfig.JnglQ && Spells.Q.IsReady())
                    {
                        BackgroundData.CastQ(m);
                    }

                    if (!Spells.W.IsReady() || !MenuConfig.JnglW || Player.HasBuff("RivenFeint") || !BackgroundData.InRange(m))
                    {
                        return;
                    }

                    BackgroundData.CastW(m);
                }
            }

            if (!Spells.Q.IsReady() || !MenuConfig.LaneQ)
            {
                return;
            }

            var nexus = args.Target as Obj_HQ;

            if (nexus != null && nexus.IsValid)
            {
                IsGameObject = true;
                Spells.Q.Cast(nexus.Position - 500);
            }

            var inhib = args.Target as Obj_BarracksDampener;

            if (inhib != null && inhib.IsValid)
            {
                IsGameObject = true;
                Spells.Q.Cast(inhib.Position - 250);
            }

            var turret = args.Target as Obj_AI_Turret;

            if (turret == null || !turret.IsValid)
            {
                return;
            }

            IsGameObject = true;
            Spells.Q.Cast(turret.Position - 250);
        }