Exemplo n.º 1
0
        public static void HelpAlly()
        {
            var HelpAlly      = Config.Item("HelpAlly").GetValue <bool>();
            var packetCast    = Config.Item("PacketCast").GetValue <bool>();
            var UseEHelpAlly  = Config.Item("UseEHelpAlly").GetValue <bool>();
            var AllyMinHealth = Config.Item("AllyMinHealth").GetValue <Slider>().Value;

            if (HelpAlly)
            {
                var AllyList = DevHelper.GetAllyList().Where(x => Player.Distance(x.ServerPosition) < E.Range && x.GetHealthPerc() < AllyMinHealth && DevHelper.CountEnemyInPositionRange(x.ServerPosition, x.AttackRange) > 0).OrderBy(x => x.Health);
                if (AllyList.Any())
                {
                    var ally = AllyList.First();

                    if (R.IsReady())
                    {
                        R.Cast();
                    }

                    if (UseEHelpAlly && E.IsReady())
                    {
                        E.CastOnUnit(ally, packetCast);
                    }
                }
            }
        }
Exemplo n.º 2
0
        public static void ComboEQ()
        {
            var eTarget = SimpleTs.GetTarget(Q.Range * 2, SimpleTs.DamageType.Magical);

            if (eTarget == null)
            {
                return;
            }

            if (!Q.IsReady() || !E.IsReady())
            {
                return;
            }

            var useQ       = Config.Item("UseQCombo").GetValue <bool>();
            var useW       = Config.Item("UseWCombo").GetValue <bool>();
            var useE       = Config.Item("UseECombo").GetValue <bool>();
            var useR       = Config.Item("UseRCombo").GetValue <bool>();
            var packetCast = Config.Item("PacketCast").GetValue <bool>();

            var EnemyList      = DevHelper.GetEnemyList().Where(x => Player.Distance(x) < E.Range);
            var queryEnemyList = EnemyList.Where(x => x.Distance(eTarget) < Q.Range);

            if (queryEnemyList.Count() > 0)
            {
                var unit = queryEnemyList.First();
                E.CastOnUnit(unit, packetCast);
                Q.Cast(eTarget.ServerPosition, packetCast);
                return;
            }

            var AllyList      = DevHelper.GetAllyList().Where(x => Player.Distance(x) < E.Range);
            var queryAllyList = AllyList.Where(x => x.Distance(eTarget) < Q.Range);

            if (queryAllyList.Count() > 0)
            {
                var unit = queryEnemyList.First();
                E.CastOnUnit(unit, packetCast);
                Q.Cast(eTarget.ServerPosition, packetCast);
                return;
            }

            var MinionList      = MinionManager.GetMinions(Player.Position, E.Range, MinionTypes.All, MinionTeam.All, MinionOrderTypes.Health);
            var queryMinionList = MinionList.Where(x => x.Distance(eTarget) < Q.Range);

            if (queryMinionList.Count() > 0)
            {
                var unit = queryEnemyList.First();
                E.CastOnUnit(unit, packetCast);
                Q.Cast(eTarget.ServerPosition, packetCast);
                return;
            }
        }
Exemplo n.º 3
0
        public static void CastWAlly()
        {
            var packetCast = Config.Item("PacketCast").GetValue <bool>();

            var allyList = DevHelper.GetAllyList()
                           .Where(ally => Player.Distance(ally) < W.Range && W.IsReady() && ally.GetNearestEnemy().Distance(ally) < ally.AttackRange)
                           .OrderBy(ally => ally.Health);

            if (allyList.Any())
            {
                var ally = allyList.First();
                W.CastOnUnit(ally, packetCast);
            }
        }
Exemplo n.º 4
0
        public static void UltimateHandler()
        {
            var UseRAlly          = Config.Item("UseRAlly").GetValue <bool>();
            var UseRAllyMinHealth = Config.Item("UseRAllyMinHealth").GetValue <Slider>().Value;
            var packetCast        = Config.Item("PacketCast").GetValue <bool>();

            if (UseRAlly && R.IsReady())
            {
                if (Player.GetHealthPerc() < UseRAllyMinHealth && DevHelper.CountEnemyInPositionRange(Player.ServerPosition, 500) > 0)
                {
                    R.CastOnUnit(Player, packetCast);
                    return;
                }

                var AllyList = DevHelper.GetAllyList().Where(x => Player.Distance(x.ServerPosition) < R.Range && x.GetHealthPerc() < UseRAllyMinHealth && DevHelper.CountEnemyInPositionRange(x.ServerPosition, 500) > 0);
                if (AllyList.Any())
                {
                    var ally = AllyList.First();
                    R.CastOnUnit(ally, packetCast);
                }
            }
        }
Exemplo n.º 5
0
        public static void HelpAlly()
        {
            var UseWHelpAlly = Config.Item("UseWHelpAlly").GetValue <bool>();
            var UseEHelpAlly = Config.Item("UseEHelpAlly").GetValue <bool>();
            var packetCast   = Config.Item("PacketCast").GetValue <bool>();

            if (UseWHelpAlly || UseEHelpAlly)
            {
                var AllyList = DevHelper.GetAllyList().Where(x => Player.Distance(x.ServerPosition) < W.Range && x.GetHealthPerc() < 50 && DevHelper.CountEnemyInPositionRange(x.ServerPosition, 600) > 0).OrderBy(x => x.Health);
                if (AllyList.Any())
                {
                    var ally = AllyList.First();

                    if (UseWHelpAlly && W.IsReady())
                    {
                        W.CastOnUnit(ally, packetCast);
                    }
                    if (UseEHelpAlly && E.IsReady())
                    {
                        E.CastOnUnit(ally, packetCast);
                    }
                }
            }
        }
Exemplo n.º 6
0
        public static void CastEQ()
        {
            var eTarget = SimpleTs.GetTarget(Q.Range * 2, SimpleTs.DamageType.Magical);

            if (eTarget == null)
            {
                return;
            }

            if (!Q.IsReady() || !E.IsReady())
            {
                return;
            }

            var useQ       = Config.Item("UseQCombo").GetValue <bool>();
            var useW       = Config.Item("UseWCombo").GetValue <bool>();
            var useE       = Config.Item("UseECombo").GetValue <bool>();
            var useR       = Config.Item("UseRCombo").GetValue <bool>();
            var packetCast = Config.Item("PacketCast").GetValue <bool>();

            var enemyList = DevHelper.GetEnemyList()
                            .Where(x => eTarget.NetworkId != x.NetworkId && Player.Distance(x) < E.Range && x.Distance(eTarget) < Q.Range).ToList();

            if (enemyList.Any())
            {
                var unit = enemyList.First();
                E.CastOnUnit(unit, packetCast);
                // Wait for ProcessGainBuff
                if (mustDebug)
                {
                    Game.PrintChat("CastEQ -> E Enemy");
                }
            }

            var allyList = DevHelper.GetAllyList()
                           .Where(x => !x.IsMe && Player.Distance(x) < E.Range && x.Distance(eTarget) < Q.Range).ToList();

            if (allyList.Any())
            {
                var unit = allyList.First();
                E.CastOnUnit(unit, packetCast);
                // Wait for ProcessGainBuff
                if (mustDebug)
                {
                    Game.PrintChat("CastEQ -> E Ally");
                }
            }

            var minionList = MinionManager.GetMinions(Player.Position, E.Range, MinionTypes.All, MinionTeam.All, MinionOrderTypes.Health)
                             .Where(x => x.Distance(eTarget) < Q.Range).OrderByDescending(x => x.Health).ToList();

            if (minionList.Any())
            {
                var unit = minionList.First();
                E.CastOnUnit(unit, packetCast);
                // Wait for ProcessGainBuff
                if (mustDebug)
                {
                    Game.PrintChat("CastEQ -> E Minion");
                }
            }
        }