示例#1
0
        private void Jungle()
        {
            if (Program.LaneClear && Player.Mana > RMANA + WMANA + WMANA)
            {
                var mobs = Cache.GetMinions(Player.ServerPosition, 700, MinionTeam.Neutral);
                if (mobs.Count > 0)
                {
                    var mob = mobs[0];
                    if (Range)
                    {
                        if (Q.IsReady() && Config.Item("jungleQ", true).GetValue <bool>())
                        {
                            Q.Cast(mob.ServerPosition);
                            return;
                        }
                        if (W.IsReady() && Config.Item("jungleE", true).GetValue <bool>())
                        {
                            if (SebbyLib.Orbwalking.InAutoAttackRange(mob))
                            {
                                W.Cast();
                            }
                            return;
                        }
                        if (Config.Item("jungleR", true).GetValue <bool>())
                        {
                            R.Cast();
                        }
                    }
                    else
                    {
                        if (Q1.IsReady() && Config.Item("jungleQm", true).GetValue <bool>() && mob.IsValidTarget(Q1.Range))
                        {
                            Q1.Cast(mob);
                            return;
                        }

                        if (W1.IsReady() && Config.Item("jungleWm", true).GetValue <bool>())
                        {
                            if (mob.IsValidTarget(300))
                            {
                                W.Cast();
                            }
                            return;
                        }
                        if (E1.IsReady() && Config.Item("jungleEm", true).GetValue <bool>() && mob.IsValidTarget(E1.Range))
                        {
                            if (mob.IsValidTarget(E1.Range))
                            {
                                E1.Cast(mob);
                            }
                            return;
                        }
                        if (Config.Item("jungleR", true).GetValue <bool>())
                        {
                            R.Cast();
                        }
                    }
                }
            }
        }
示例#2
0
        /// <summary>
        ///     The cast qe hammer.
        /// </summary>
        private static void CastQEHammer()
        {
            var Enemies = GameObjects.EnemyHeroes.Where(x => (x != null) && x.IsValidTarget());

            foreach (var Enemy in
                     Enemies.Where(x => x.IsValidTarget(E1.Range) && (Q1.GetDamage(x) + HammerEDmg(x) > x.Health)))
            {
                if (RangeForm())
                {
                    if (R.IsReady())
                    {
                        R.Cast();
                    }
                }
                else
                {
                    if (Q1.IsReady() && E1.IsReady())
                    {
                        Q1.Cast(Enemy);
                        if (E1.IsReady())
                        {
                            E1.Cast();
                        }
                    }
                }
            }
        }
示例#3
0
 private void afterAttack(AttackableUnit unit, AttackableUnit target)
 {
     if (unit.IsMe && !player.IsInvulnerable &&
         E1.IsReady() &&
         player.ManaPercent > 99f)
     {
         E1.Cast((Obj_AI_Base)target);
     }
 }
        /// <summary>
        ///     The cast E melee.
        /// </summary>
        private static void CastEMelee()
        {
            var Minions = GameObjects.JungleLarge.Where(x => x.IsValidTarget(E1.Range));

            foreach (var Minion in Minions)
            {
                if (E1.IsReady())
                {
                    E1.Cast(Minion);
                }
            }
        }
示例#5
0
        /// <summary>
        ///     The cast e hammer.
        /// </summary>
        private static void CastEHammer()
        {
            if (E1.IsReady())
            {
                var Enemies = GameObjects.EnemyHeroes.Where(x => (x != null) && x.IsValidTarget());

                foreach (var Enemy in Enemies.Where(x => x.IsValidTarget(E1.Range) && (HammerEDmg(x) > x.Health)))
                {
                    E1.Cast(Enemy);
                }
            }
        }
示例#6
0
        /// <summary>
        ///     The cast E melee.
        /// </summary>
        private static void CastEMelee()
        {
            var target = Variables.TargetSelector.GetTarget(E1.Range, DamageType.Physical);

            if (target != null)
            {
                if (E1.IsReady() && target.IsValidTarget(E1.Range))
                {
                    E1.Cast(target);
                }
            }
        }
示例#7
0
 private static void Rappel()
 {
     if (Config.Item("rappel").GetValue <KeyBind>().Active)
     {
         if (Human() && R.IsReady() && realcdSE == 0)
         {
             R.Cast();
             E1.Cast();
         }
         else if (!Human() && realcdSE == 0)
         {
             E1.Cast();
         }
     }
 }
示例#8
0
 private static void Rappel()
 {
     if (getKeyBindItem(miscMenu, "rappel"))
     {
         if (Human() && R.IsReady() && realcdSE == 0)
         {
             R.Cast();
             E1.Cast();
         }
         else if (!Human() && realcdSE == 0)
         {
             E1.Cast();
         }
     }
 }
示例#9
0
        private void LogicE2()
        {
            var t = TargetSelector.GetTarget(E1.Range, TargetSelector.DamageType.Physical);

            if (t.IsValidTarget())
            {
                if (OktwCommon.GetKsDamage(t, E1) > t.Health)
                {
                    E1.Cast(t);
                }
                else if (Program.Combo && !Config.Item("autoEks", true).GetValue <bool>() && !Player.HasBuff("jaycehyperchargevfx"))
                {
                    E1.Cast(t);
                }
            }
        }
示例#10
0
        private static void Edetonation()
        {
            var target = TargetSelector.GetTarget(R1.Range, TargetSelector.DamageType.Magical);

            if (target != null)
            {
                if (Lux_E == null)
                {
                    return;
                }
                var rooted = target.HasBuff("LuxLightBindingMis");
                var debuff = target.HasBuff("luxilluminatingfraulein");

                var qcollision = Q1.GetCollision(player.Position.To2D(), new List <Vector2> {
                    Q1.GetPrediction(target).CastPosition.To2D()
                });
                var minioncol = qcollision.Where(x => (x is AIHeroClient) && x.IsEnemy).Count();

                //Lux E detonation (Object Bounding Radius)
                if (Lux_E != null && rooted && target.Distance(player.Position) <=
                    Orbwalking.GetRealAutoAttackRange(player) && target.Health > E1.GetDamage(target) && debuff)
                {
                    Printchat("[E] Detonation Blocked. Reason: AA-able");
                    return;
                }

                if (Lux_E != null && rooted && target.Distance(player.Position) <=
                    Orbwalking.GetRealAutoAttackRange(player) + 300 && target.Health > E1.GetDamage(target) && debuff && target.CountEnemiesInRange(600) <= 1)
                {
                    Printchat("[E] Detonation Blocked. Reason: AA-able");
                    return;
                }

                if (Lux_E != null && Lux_E.Position.CountEnemiesInRange(E1.Width) >= 1)
                {
                    E1.Cast();
                    Printchat("[E] Toggle Cast. Reason: Enemy Detected");
                }
            }

            else if (Lux_E != null && Lux_E.Position.CountEnemiesInRange(E1.Width) >= 1)
            {
                E1.Cast();
                Printchat("[E] Toggle Cast. Reason: Enemy Detected");
            }
        }
示例#11
0
        private void LogicE()
        {
            var t = TargetSelector.GetTarget(E1.Range, TargetSelector.DamageType.Physical);

            if (t.IsValidTarget())
            {
                var qDmg = OktwCommon.GetKsDamage(t, E1);
                if (qDmg > t.Health)
                {
                    E1.Cast(t);
                }
                else if (Program.Combo && Player.Mana > RMANA + QMANA)
                {
                    E1.Cast(t);
                }
            }
        }
示例#12
0
        private static void FarmMethod()
        {
            var mana  = Config.Item("laneclear.mana.slider").GetValue <Slider>().Value;
            var level = Config.Item("laneclear.level").GetValue <Slider>().Value;

            if (player.ManaPercent < mana || player.Level < level)
            {
                return;
            }

            var eminions = Config.Item("laneclear.E.count").GetValue <Slider>().Value;
            var qminions = Config.Item("laneclear.Q.count").GetValue <Slider>().Value;

            var minions = MinionManager.GetMinions(E1.Range, MinionTypes.All, MinionTeam.Enemy).Where(m => m.IsValid &&
                                                                                                      m.Distance(Player) < E1.Range).ToList();
            var aaminions = MinionManager.GetMinions(E1.Range, MinionTypes.All, MinionTeam.Enemy).Where(m => m.IsValid &&
                                                                                                        m.Distance(Player) < Orbwalking.GetRealAutoAttackRange(player)).ToList();

            var efarmpos = E1.GetCircularFarmLocation(new List <AIBaseClient>(minions), E1.Width);

            if (efarmpos.MinionsHit >= eminions &&
                E1.IsReady() && Config.Item("laneclear.E").GetValue <bool>() && Environment.TickCount - Q1.LastCastAttemptT > 450)
            {
                E1.Cast(efarmpos.Position);
            }

            var qfarmpos = Q1.GetLineFarmLocation(new List <AIBaseClient>(minions), Q1.Width);

            if (qfarmpos.MinionsHit >= qminions &&
                Q1.IsReady() && Config.Item("laneclear.Q").GetValue <bool>() && Environment.TickCount - E1.LastCastAttemptT > 450)
            {
                Q1.Cast(qfarmpos.Position);
            }

            foreach (var minion in aaminions.Where(m => m.IsMinion && !m.IsDead &&
                                                   m.HasBuff("luxilluminatingfraulein")))
            {
                if (minion.IsValid)
                {
                    Player.IssueOrder(GameObjectOrder.AttackUnit, minion);
                }
            }
        }
示例#13
0
        private static void OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            if (E.IsReady() && Human() && gapcloser.Sender.LSIsValidTarget(E.Range) && getCheckBoxItem(miscMenu, "hGC"))
            {
                E.Cast(gapcloser.Sender);
                return;
            }

            if (realcdSE == 0 && gapcloser.Sender.LSIsValidTarget(E1.Range) && getCheckBoxItem(miscMenu, "fGC") &&
                gapcloser.End.LSDistance(Player.Position) >= getSliderItem(comboMenu, "eMin"))
            {
                if (Human() && R.IsReady())
                {
                    R.Cast();
                    E1.Cast(gapcloser.Sender);
                }
                else if (!Human())
                {
                    E1.Cast(gapcloser.Sender);
                }
            }
        }
示例#14
0
        private static void OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            if (E.IsReady() && Human() && gapcloser.Sender.IsValidTarget(E.Range) && Config.Item("hGC").GetValue <bool>())
            {
                E.Cast(gapcloser.Sender);
                return;
            }

            if (realcdSE == 0 && gapcloser.Sender.IsValidTarget(E1.Range) && Config.Item("fGC").GetValue <bool>() &&
                gapcloser.End.Distance(Player.Position) >= Config.Item("eMin").GetValue <Slider>().Value)
            {
                if (Human() && R.IsReady())
                {
                    R.Cast();
                    E1.Cast(gapcloser.Sender);
                }
                else if (!Human())
                {
                    E1.Cast(gapcloser.Sender);
                }
            }
        }
示例#15
0
文件: Lux.cs 项目: wade1990/PortAIO
        private static void JungleMethod()
        {
            var mana = Config.Item("jungleclear.mana.slider").GetValue <Slider>().Value;

            if (player.ManaPercent < mana)
            {
                return;
            }

            var minions = MinionManager.GetMinions(E1.Range, MinionTypes.All, MinionTeam.Neutral).Where(m => m.IsValid &&
                                                                                                        m.Distance(Player) < E1.Range && m != null).OrderBy(m => m.MaxHealth);
            var aaminions = MinionManager.GetMinions(E1.Range, MinionTypes.All, MinionTeam.Neutral).Where(m => m.IsValid &&
                                                                                                          m.Distance(Player) < Orbwalking.GetRealAutoAttackRange(player) && m != null).OrderBy(m => m.MaxHealth);

            var efarmpos = E1.GetCircularFarmLocation(new List <Obj_AI_Base>(minions), E1.Width);

            if (efarmpos.MinionsHit >= 1 &&
                E1.IsReady() && Config.Item("jungleclear.E").GetValue <bool>() && Environment.TickCount - Q1.LastCastAttemptT > 450)
            {
                E1.Cast(efarmpos.Position);
            }

            var qfarmpos = Q1.GetLineFarmLocation(new List <Obj_AI_Base>(minions), Q1.Width);

            if (qfarmpos.MinionsHit >= 1 &&
                Q1.IsReady() && Config.Item("jungleclear.Q").GetValue <bool>() && Environment.TickCount - E1.LastCastAttemptT > 450)
            {
                Q1.Cast(qfarmpos.Position);
            }

            foreach (var minion in aaminions.Where(m => m.IsMinion && !m.IsDead &&
                                                   m.HasBuff("luxilluminatingfraulein")))
            {
                if (minion.IsValid && minion != null)
                {
                    EloBuddy.Player.IssueOrder(GameObjectOrder.AutoAttack, minion);
                }
            }
        }
示例#16
0
        private static void Jungle()
        {
            bool useQ = Junglemenu.jQ.Enabled;
            bool useW = Junglemenu.jW.Enabled;
            bool useE = Junglemenu.jE.Enabled;
            var  mob  = GameObjects.Jungle
                        .Where(x => x.IsValidTarget(Q.Range) && x.GetJungleType() != JungleType.Unknown)
                        .OrderByDescending(x => x.MaxHealth).FirstOrDefault();


            if (mob != null)
            {
                if (E1.IsReady() && mob.IsValidTarget(800) && !Player.HasBuff("IreliaE"))
                {
                    if (mob != null)
                    {
                        E1.Cast(mob.Position - 500);
                    }
                }
                if (E2.IsReady() && mob.IsValidTarget(800) && Player.HasBuff("IreliaE"))
                {
                    if (mob != null)
                    {
                        E2.Cast(mob.Position + 500);
                    }
                }
                if (Q.IsReady() && mob.IsValidTarget(Q.Range) && mob.HasBuff("ireliamark"))
                {
                    Q.CastOnUnit(mob);
                }

                if (Q.IsReady() && mob.IsValidTarget(Q.Range) && mob.Health <= GameObjects.Player.GetSpellDamage(mob, SpellSlot.Q))
                {
                    Q.CastOnUnit(mob);
                }
            }
        }
示例#17
0
        private static void Combat()
        {
            var  target = TargetSelector.GetTarget(925);
            bool useQ   = ComboIrelia.Q.Enabled;
            bool useW   = ComboIrelia.W.Enabled;
            bool useE   = ComboIrelia.E.Enabled;
            bool useR   = ComboIrelia.R.Enabled;

            if (!target.IsValidTarget())
            {
                return;
            }
            foreach (var minion in GetEnemyLaneMinionsTargetsInRange(Q.Range))
            {
                if (minion.Health <= GameObjects.Player.GetSpellDamage(minion, SpellSlot.Q))
                {
                    if (useE)
                    {
                        if (300 > minion.Distance(target))
                        {
                            if (!target.IsValidTarget(300))
                            {
                                Q.CastOnUnit(minion);
                            }
                        }
                    }
                    if (useE)
                    {
                        if (!target.IsValidTarget(300))
                        {
                            Q.CastOnUnit(minion);
                        }
                    }
                }
            }

            var Minhpp = Rset["healthR"].GetValue <MenuSlider>().Value;

            if (R.IsReady() && target.IsValidTarget(R.Range) && useR && (target.HealthPercent < Minhpp))
            {
                R.Cast(target.Position);
            }

            /*if (W.IsReady() && (_Player.Spellbook.GetSpell(SpellSlot.E).ToggleState == 1))
             *  if (_Player.Position.Distance(target.Position) < W.Range)
             *  {
             *
             *      E1.Cast();
             *
             *  }
             * if (W.IsReady() && (_Player.Spellbook.GetSpell(SpellSlot.E).ToggleState == 2))
             *  if (_Player.Position.Distance(target.Position) > W.Range)
             *  {
             *
             *
             *      E2.Cast();
             *
             *  }*/
            if (E1.IsReady() && target.IsValidTarget(800) && !Player.HasBuff("IreliaE"))
            {
                if (target != null)
                {
                    E1.Cast(target.Position - 500);
                }
            }
            if (E2.IsReady() && target.IsValidTarget(800) && Player.HasBuff("IreliaE"))
            {
                if (target != null)
                {
                    E2.Cast(target.Position + 500);
                }
            }
            if (Q.IsReady() && target.IsValidTarget(Q.Range) && target.HasBuff("ireliamark"))
            {
                Q.CastOnUnit(target);
            }
        }