示例#1
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);
                }
            }
        }
示例#2
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);
                }
            }
        }