예제 #1
0
        private static void Flee()
        {
            Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);

            if (!Ismelee())
            {
                R.Cast();
            }

            if (Ismelee())
            {
                var min =
                    ObjectManager.Get <Obj_AI_Minion>()
                    .Where(x => x.Distance(Player) < 300 && !x.IsDead && x.IsEnemy).ToList();

                foreach (var minions in min)
                {
                    if (E.IsReady() && Q.IsReady())
                    {
                        Em.Cast(minions);
                    }
                    if (!E.IsReady())
                    {
                        Qm.Cast(minions);
                    }
                }
            }
        }
예제 #2
0
        private static void Combomelee()
        {
            // if (Player.IsWindingUp) return;
            var target = TargetSelector.GetTarget(Qm.Range, TargetSelector.DamageType.Physical);

            if (target == null)
            {
                return;
            }

            if (Player.Distance(target) < Orbwalking.GetRealAutoAttackRange(target))
            {
                if (Wm.IsReady())
                {
                    Wm.Cast();
                }
            }

            if (Player.Distance(target) < 300)
            {
                if (Qm.IsReady() && !Em.IsReady() && GetBool("useqcm", typeof(bool)))
                {
                    Qm.Cast(target);
                }

                if (Em.IsReady() && GetBool("useecm", typeof(bool)))
                {
                    var aarange = Orbwalking.GetRealAutoAttackRange(target);
                    if (((!Q.IsReady() || (SpellTimer["Qm"] > 1.3f) && !E.IsReady()) ||
                         Player.Distance(target) < aarange + 150))
                    {
                        Em.Cast(target);
                    }

                    if (target.Health < EMeleeDamage(target) + 200)
                    {
                        Em.Cast(target);
                    }
                }
            }
            else
            {
                if (Ready("Q") || Ready("W") && Em.IsReady() && GetBool("useecm", typeof(bool)))
                {
                    Em.Cast(target);
                }
                if (Qm.IsReady() && GetBool("useqcm", typeof(bool)))
                {
                    Qm.Cast(target);
                }
            }
        }
예제 #3
0
파일: Jayce.cs 프로젝트: volder1/PortAIO
        private static void Laneclearmelee()
        {
            if (getSliderItem(MenuConfig.laneclear, "minmana") > Player.ManaPercent)
            {
                return;
            }
            if (!Ismelee())
            {
                return;
            }
            var min =
                ObjectManager.Get <Obj_AI_Minion>()
                .Where(x => x.LSDistance(Player) < 300 && !x.IsDead && x.IsEnemy).ToList();

            if (min.FirstOrDefault() == null)
            {
                minionscirclemelee = null;
                return;
            }



            foreach (var minions in min)
            {
                minionscirclemelee = new LeagueSharp.Common.Geometry.Polygon.Circle(minions.Position, 300);
                if (E.IsReady() && getCheckBoxItem(MenuConfig.laneclear, "useelm"))
                {
                    if (minions.Health < EMeleeDamage(minions))
                    {
                        Em.Cast(minions);
                    }
                }
            }

            var count        = min.Where(x => minionscirclemelee.IsInside(x));
            var objAiMinions = count as IList <Obj_AI_Minion> ?? count.ToList();

            if (objAiMinions.Count() >= getSliderItem(MenuConfig.laneclear, "minhitwq"))
            {
                if (W.IsReady() && getCheckBoxItem(MenuConfig.laneclear, "usewlm"))
                {
                    W.Cast();
                }

                if (Q.IsReady() && getCheckBoxItem(MenuConfig.laneclear, "useqlm"))
                {
                    Qm.Cast(objAiMinions.FirstOrDefault());
                }
            }
        }
예제 #4
0
        private static void Laneclearmelee()
        {
            if (GetValue("minmana") > Player.ManaPercent)
            {
                return;
            }
            if (!Ismelee())
            {
                return;
            }
            var min =
                ObjectManager.Get <Obj_AI_Minion>()
                .Where(x => x.Distance(Player) < 300 && !x.IsDead && x.IsEnemy).ToList();

            if (min.FirstOrDefault() == null)
            {
                minionscirclemelee = null;
                return;
            }



            foreach (var minions in min)
            {
                minionscirclemelee = new Geometry.Polygon.Circle(minions.Position, 300);
                if (E.IsReady() && GetBool("useelm", typeof(bool)))
                {
                    if (minions.Health < EMeleeDamage(minions))
                    {
                        Em.Cast(minions);
                    }
                }
            }

            var count        = min.Where(x => minionscirclemelee.IsInside(x));
            var objAiMinions = count as IList <Obj_AI_Minion> ?? count.ToList();

            if (objAiMinions.Count() >= GetValue("minhitwq"))
            {
                if (W.IsReady() && GetBool("usewlm", typeof(bool)))
                {
                    W.Cast();
                }

                if (Q.IsReady() && GetBool("useqlm", typeof(bool)))
                {
                    Qm.Cast(objAiMinions.FirstOrDefault());
                }
            }
        }
예제 #5
0
파일: Jayce.cs 프로젝트: volder1/PortAIO
        private static void Combomelee()
        {
            // if (Player.IsWindingUp) return;
            var target = TargetSelector.GetTarget(Qm.Range, DamageType.Physical);

            if (target == null)
            {
                return;
            }
            var expires = (Player.Spellbook.GetSpell(SpellSlot.R).CooldownExpires);
            var CD      =
                (int)
                (expires -
                 (Game.Time - 1));

            if (Player.LSDistance(target) < Orbwalking.GetRealAutoAttackRange(target))
            {
                if (Wm.IsReady())
                {
                    Wm.Cast();
                }
            }

            foreach (var x in HeroManager.Enemies.Where(z => z.LSIsValidTarget(Em.Range)))
            {
                if (x.Health < EMeleeDamage(target) + 100)
                {
                    Em.Cast(target);
                }
            }

            if (Player.LSDistance(target) <= Em.Range - 80)
            {
                if (Qm.IsReady() && !Em.IsReady() && getCheckBoxItem(MenuConfig.combo, "useqcm"))
                {
                    Qm.Cast(target);
                }

                if (SpellTimer["Em"] > 1.6 && Qm.IsReady())
                {
                    Qm.Cast(target);
                }

                if (Em.IsReady() && getCheckBoxItem(MenuConfig.combo, "useecm"))
                {
                    var aarange = Orbwalking.GetRealAutoAttackRange(target);
                    if (SpellTimer["Qm"] < 2.2 &&
                        (Player.LSDistance(target) < aarange + 100 || (SpellTimer["Q"] < 1.2 && CD < 1.5)))
                    {
                        Em.Cast(target);
                    }

                    if (target.Health < EMeleeDamage(target) + 90)
                    {
                        Em.Cast(target);
                    }
                }
            }
            else
            {
                if ((SpellTimer["Q"] < 1.5 || SpellTimer["W"] < 0.8) && CD < 1 && Em.IsReady() && getCheckBoxItem(MenuConfig.combo, "useecm"))
                {
                    Em.Cast(target);
                }
                if (Qm.IsReady() && getCheckBoxItem(MenuConfig.combo, "useqcm"))
                {
                    Qm.Cast(target);
                }
            }
        }