Beispiel #1
0
        public override void OnUpdate(EventArgs args)
        {
            base.OnUpdate(args);

            if (E.IsReady())
            {
                this.ELogic();
            }
            if (Orbwalker.ActiveMode == OrbwalkingMode.Combo && Q.IsReady() && Orbwalker.CanMove)
            {
                foreach (var enemy in ValidTargets.Where(e => e.Distance(ObjectManager.Player) < 900))
                {
                    var pred = Q.GetPrediction(enemy);
                    if (pred.Hitchance >= HitChance.High && !pred.CollisionObjects.Any())
                    {
                        Q.Cast(pred.UnitPosition);
                    }
                }
            }

            #region Orbwalk On Minions
            if (OrbwalkOnMinions && Orbwalker.ActiveMode == OrbwalkingMode.Combo && ValidTargets.Count(e => e.InAutoAttackRange()) == 0 && ObjectManager.Player.InventoryItems.Any(i => (int)i.Id == 3085))
            {
                var minion =
                    GameObjects.EnemyMinions.Where(m => m.InAutoAttackRange()).OrderBy(m => m.Health).FirstOrDefault();
                if (minion != null)
                {
                    EloBuddy.Player.IssueOrder(GameObjectOrder.AttackUnit, minion);
                }
            }
            #endregion Orbwalk On Minions
        }
Beispiel #2
0
        public override void OnDraw(EventArgs args)
        {
            base.OnDraw(args);
            #region Orbwalk On Minions

            if (OrbwalkOnMinions && Orbwalker.ActiveMode == OrbwalkingMode.Combo && ValidTargets.Count(e => e.InAutoAttackRange()) == 0 && ObjectManager.Player.InventoryItems.Any(i => (int)i.IData.Id == 3085))
            {
                var minion =
                    GameObjects.EnemyMinions.Where(m => m.InAutoAttackRange()).OrderBy(m => m.Health).FirstOrDefault();
                if (minion != null)
                {
                    ObjectManager.Player.IssueOrder(GameObjectOrder.AttackUnit, minion);
                }
            }
            #endregion Orbwalk On Minions
            if (DrawERangeBool)
            {
                Render.Circle.DrawCircle(
                    ObjectManager.Player.Position,
                    1000,
                    Color.LightGreen);
            }
            if (DrawRRangeBool)
            {
                Render.Circle.DrawCircle(
                    ObjectManager.Player.Position,
                    1400,
                    Color.DarkRed);
            }

            if (DrawEDamage)
            {
                HpBarDamageIndicator.DamageToUnit = GetFloatRendDamage;
            }
            HpBarDamageIndicator.Enabled = DrawEDamage;
            //this is intended.
            if (GameObjects.EnemyMinions.Any(m => m.CharData.BaseSkinName.Contains("MinionSiege") && IsRendKillable(m)))
            {
                E.Cast();
            }
        }
Beispiel #3
0
        public override void OnUpdate(EventArgs args)
        {
            if (E.IsReady())
            {
                this.ELogic();
            }
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) && Q.IsReady() && Orbwalker.CanMove)
            {
                foreach (var enemy in ValidTargets.Where(e => e.Distance(ObjectManager.Player) < 900))
                {
                    var pred = Q.GetPrediction(enemy);
                    if (pred.Hitchance >= LeagueSharp.SDK.HitChance.High && !pred.CollisionObjects.Any())
                    {
                        Q.Cast(enemy);
                    }
                }
            }

            #region Orbwalk On Minions
            if (OrbwalkOnMinions && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) && ValidTargets.Count(e => e.IsInAutoAttackRange(ObjectManager.Player)) == 0)
            {
                var minion = GameObjects.EnemyMinions.Where(m => m.IsInAutoAttackRange(ObjectManager.Player)).OrderBy(m => m.Health).FirstOrDefault();
                if (minion != null)
                {
                    EloBuddy.Player.IssueOrder(GameObjectOrder.AttackUnit, minion);
                }
            }
            #endregion Orbwalk On Minions
        }
Beispiel #4
0
        void ELogic()
        {
            if (E.IsReady() && !Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) && !Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.None) && ValidTargets.Count(e => e.InAutoAttackRange()) == 0)
            {
                switch (ScoutMode)
                {
                case 2:
                {
                    if (LastELocation == BaronScoutPosition)
                    {
                        LastELocation = DragonScoutPosition;
                        E.Cast(DragonScoutPosition.RandomizeToVector3(-150, 150));
                    }
                    else
                    {
                        LastELocation = BaronScoutPosition;
                        E.Cast(BaronScoutPosition.RandomizeToVector3(-150, 150));
                    }
                    break;
                }

                case 0:
                {
                    if (ObjectManager.Player.Team == GameObjectTeam.Order)
                    {
                        var pos =
                            ChaosScoutPositions.Where(v2 => v2.Distance(LastELocation) > 500)
                            .OrderBy(v2 => v2.Distance(ObjectManager.Player.Position.ToVector2()))
                            .FirstOrDefault();
                        LastELocation = pos;
                        E.Cast(pos.RandomizeToVector3(-150, 150));
                    }
                    else
                    {
                        var pos =
                            OrderScoutPositions.Where(v2 => v2.Distance(LastELocation) > 500)
                            .OrderBy(v2 => v2.Distance(ObjectManager.Player.Position.ToVector2()))
                            .FirstOrDefault();
                        LastELocation = pos;
                        E.Cast(pos.RandomizeToVector3(-150, 150));
                    }
                    break;
                }

                case 1:
                {
                    if (ObjectManager.Player.Team == GameObjectTeam.Order)
                    {
                        var pos =
                            ChaosScoutPositions.Where(v2 => v2.Distance(LastELocation) > 500)
                            .OrderByDescending(v2 => v2.Distance(ObjectManager.Player.Position.ToVector2()))
                            .FirstOrDefault();
                        LastELocation = pos;
                        E.Cast(pos.RandomizeToVector3(-150, 150));
                    }
                    else
                    {
                        var pos =
                            OrderScoutPositions.Where(v2 => v2.Distance(LastELocation) > 500)
                            .OrderByDescending(v2 => v2.Distance(ObjectManager.Player.Position.ToVector2()))
                            .FirstOrDefault();
                        LastELocation = pos;
                        E.Cast(pos.RandomizeToVector3(-150, 150));
                    }
                    break;
                }

                default:
                    break;
                }
            }
        }
Beispiel #5
0
        void ELogic()
        {
            if (E.IsReady() && Orbwalker.ActiveMode != OrbwalkingMode.Combo && Orbwalker.ActiveMode != OrbwalkingMode.None && ValidTargets.Count(e => e.InAutoAttackRange()) == 0)
            {
                switch (ScoutMode.SelectedValue)
                {
                case "DragonBaron":
                {
                    if (LastELocation == BaronScoutPosition)
                    {
                        LastELocation = DragonScoutPosition;
                        E.Cast(DragonScoutPosition.RandomizeToVector3(-150, 150));
                    }
                    else
                    {
                        LastELocation = BaronScoutPosition;
                        E.Cast(BaronScoutPosition.RandomizeToVector3(-150, 150));
                    }
                    break;
                }

                case "EnemyJungleClosest":
                {
                    if (ObjectManager.Player.Team == GameObjectTeam.Order)
                    {
                        var pos =
                            ChaosScoutPositions.Where(v2 => v2.Distance(LastELocation) > 500)
                            .OrderBy(v2 => v2.Distance(ObjectManager.Player.Position.ToVector2()))
                            .FirstOrDefault();
                        LastELocation = pos;
                        E.Cast(pos.RandomizeToVector3(-150, 150));
                    }
                    else
                    {
                        var pos =
                            OrderScoutPositions.Where(v2 => v2.Distance(LastELocation) > 500)
                            .OrderBy(v2 => v2.Distance(ObjectManager.Player.Position.ToVector2()))
                            .FirstOrDefault();
                        LastELocation = pos;
                        E.Cast(pos.RandomizeToVector3(-150, 150));
                    }
                    break;
                }

                case "EnemyJungleFarthest":
                {
                    if (ObjectManager.Player.Team == GameObjectTeam.Order)
                    {
                        var pos =
                            ChaosScoutPositions.Where(v2 => v2.Distance(LastELocation) > 500)
                            .OrderByDescending(v2 => v2.Distance(ObjectManager.Player.Position.ToVector2()))
                            .FirstOrDefault();
                        LastELocation = pos;
                        E.Cast(pos.RandomizeToVector3(-150, 150));
                    }
                    else
                    {
                        var pos =
                            OrderScoutPositions.Where(v2 => v2.Distance(LastELocation) > 500)
                            .OrderByDescending(v2 => v2.Distance(ObjectManager.Player.Position.ToVector2()))
                            .FirstOrDefault();
                        LastELocation = pos;
                        E.Cast(pos.RandomizeToVector3(-150, 150));
                    }
                    break;
                }

                default:
                    break;
                }
            }
        }