Exemplo n.º 1
0
        private static void JungleSteal()
        {
            if (!R.IsReady())
            {
                return;
            }

            var packetCast = Config.Item("PacketCast").GetValue <bool>();

            string[] monsterNames = { "LizardElder", "AncientGolem", "Worm", "Dragon" };
            var      mobs         = MinionManager.GetMinions(Player.ServerPosition, R.Range, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.Health);

            var query = mobs.Where(x =>
                                   monsterNames.Any(monster => x.BaseSkinName.Contains(monster)) &&
                                   x.IsValidTarget(R.Range) &&
                                   x.Health < Player.GetSpellDamage(x, SpellSlot.R) &&
                                   DevHelper.GetEnemyList().Any(enemy => x.Distance(enemy.ServerPosition) < 1000));

            if (R.IsReady() && query.Any())
            {
                var mob = query.FirstOrDefault();
                R.Cast(mob.ServerPosition, packetCast);

                if (dtLastJungleSteal.AddSeconds(5) < DateTime.Now)
                {
                    Game.PrintChat("Jungle Steal!");
                    Utility.DelayAction.Add(0, () => DevHelper.Ping(mob.ServerPosition));
                    Utility.DelayAction.Add(400, () => DevHelper.Ping(mob.ServerPosition));
                    Utility.DelayAction.Add(800, () => DevHelper.Ping(mob.ServerPosition));
                    dtLastJungleSteal = DateTime.Now;
                }
            }
        }
Exemplo n.º 2
0
        private static void JungleStealAlert()
        {
            string[] monsterNames = { "LizardElder", "AncientGolem", "Worm", "Dragon" };
            var      mobs         = MinionManager.GetMinions(Player.ServerPosition, 5000, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth);

            var query = mobs.Where(x =>
                                   monsterNames.Any(monster => x.BaseSkinName.Contains(monster)) &&
                                   x.GetHealthPerc() < 90 &&
                                   x.IsValid &&
                                   DevHelper.GetEnemyList().Any(enemy => x.Distance(enemy.ServerPosition) < 2000));

            if (query.Count() > 0)
            {
                var mob = query.FirstOrDefault();

                if (dtLastJungleStealAlert.AddSeconds(5) < DateTime.Now)
                {
                    if (Player.Distance(mob.ServerPosition) > R.Range)
                    {
                        Game.PrintChat("Jungle Steal Alert, Get closer!");
                    }
                    else
                    {
                        Game.PrintChat("Jungle Steal Alert! Wait...");
                    }
                    Utility.DelayAction.Add(0, () => DevHelper.Ping(mob.ServerPosition));
                    Utility.DelayAction.Add(200, () => DevHelper.Ping(mob.ServerPosition));
                    Utility.DelayAction.Add(400, () => DevHelper.Ping(mob.ServerPosition));
                    dtLastJungleStealAlert = DateTime.Now;
                }
            }
        }
Exemplo n.º 3
0
        private static void KillSteal()
        {
            var RKillSteal = Config.Item("RKillSteal").GetValue <bool>();
            var packetCast = Config.Item("PacketCast").GetValue <bool>();

            if (RKillSteal && R.IsReady())
            {
                foreach (var enemy in DevHelper.GetEnemyList())
                {
                    if (enemy.IsValidTarget(R.Range) && enemy.Health < Player.GetSpellDamage(enemy, SpellSlot.R) && Player.Distance(enemy) > Player.AttackRange)
                    {
                        var pred = R.GetPrediction(enemy);
                        R.Cast(pred.CastPosition, packetCast);

                        if (dtLastKS.AddSeconds(5) < DateTime.Now)
                        {
                            Game.PrintChat("R KillSteal");
                            Utility.DelayAction.Add(0, () => DevHelper.Ping(enemy.ServerPosition));
                            Utility.DelayAction.Add(400, () => DevHelper.Ping(enemy.ServerPosition));
                            Utility.DelayAction.Add(800, () => DevHelper.Ping(enemy.ServerPosition));
                            dtLastKS = DateTime.Now;
                        }
                    }
                }
            }
        }
Exemplo n.º 4
0
        private static void KillSteal()
        {
            var QKillSteal = Config.Item("QKillSteal").GetValue <bool>();
            var RKillSteal = Config.Item("RKillSteal").GetValue <bool>();
            var packetCast = Config.Item("PacketCast").GetValue <bool>();

            if (QKillSteal && Q.IsReady())
            {
                var query = DevHelper.GetEnemyList()
                            .Where(enemy => enemy.IsValidTarget(Q.Range) && Q.GetDamage(enemy) > enemy.Health * 0.9 && Player.Distance(enemy) > Player.AttackRange)
                            .OrderBy(enemy => enemy.Health);

                if (query.Any())
                {
                    var eTarget = query.First();
                    Q.CastIfHitchanceEquals(eTarget, eTarget.IsMoving ? HitChance.High : HitChance.Medium, packetCast);
                }
            }

            if (RKillSteal && R.IsReady())
            {
                var query = DevHelper.GetEnemyList()
                            .Where(enemy => enemy.IsValidTarget(R.Range) && R.GetDamage(enemy) > enemy.Health * 0.9 && Player.Distance(enemy) > Player.AttackRange)
                            .OrderBy(enemy => enemy.Health);

                if (query.Any())
                {
                    var enemy = query.First();
                    var pred  = R.GetPrediction(enemy);
                    R.Cast(pred.CastPosition, packetCast);

                    if (dtLastKS.AddSeconds(5) < DateTime.Now)
                    {
                        Game.PrintChat("R KillSteal");
                        Utility.DelayAction.Add(0, () => DevHelper.Ping(enemy.ServerPosition));
                        Utility.DelayAction.Add(400, () => DevHelper.Ping(enemy.ServerPosition));
                        Utility.DelayAction.Add(800, () => DevHelper.Ping(enemy.ServerPosition));
                        dtLastKS = DateTime.Now;
                    }
                }
            }
        }
Exemplo n.º 5
0
        private static void KillSteal()
        {
            var RKillSteal = Config.Item("RKillSteal").GetValue <bool>();
            var packetCast = Config.Item("PacketCast").GetValue <bool>();

            if (RKillSteal && R.IsReady())
            {
                foreach (var enemy in DevHelper.GetEnemyList())
                {
                    if (enemy.IsValidTarget(R.Range) && enemy.Health < Player.GetSpellDamage(enemy, SpellSlot.R))
                    {
                        if (R.CastIfHitchanceEquals(enemy, enemy.IsMoving ? HitChance.High : HitChance.Medium, packetCast))
                        {
                            Game.PrintChat("R KillSteal");
                            Utility.DelayAction.Add(0, () => DevHelper.Ping(enemy.ServerPosition));
                            Utility.DelayAction.Add(200, () => DevHelper.Ping(enemy.ServerPosition));
                            Utility.DelayAction.Add(400, () => DevHelper.Ping(enemy.ServerPosition));
                        }
                    }
                }
            }
        }