Example #1
0
        private static void KillSteal()
        {
            foreach (
                var enemy in
                EntityManager.Heroes.Enemies.Where(
                    e => e.Distance(Player) <= Q.Range && e.IsValidTarget() && !e.IsInvulnerable))

            {
                if (IreliaTheTrollMenu.KillstealQ() && Q.IsReady() && SpellDamage.QDamage(enemy) >= enemy.Health &&
                    enemy.Distance(Player) <= Q.Range)
                {
                    Q.Cast(enemy);
                }
                if (IreliaTheTrollMenu.KillstealE() && E.IsReady() && SpellDamage.EDamage(enemy) >= enemy.Health &&
                    enemy.Distance(Player) <= E.Range)
                {
                    E.Cast(enemy);
                }
                if (IreliaTheTrollMenu.killstealR() && R.IsReady() && SpellDamage.RDamage(enemy) >= enemy.Health &&
                    enemy.Distance(Player) <= R.Range)
                {
                    R.Cast(enemy);
                }
            }
        }
Example #2
0
        private static void Lasthit()
        {
            var qminion =
                EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, Q.Range)
                .FirstOrDefault(
                    m =>
                    m.Distance(Player) <= Q.Range &&
                    m.Health <= SpellDamage.QDamage(m) &&
                    m.IsValidTarget());

            if (Q.IsReady() && VladimirTheTrollMeNu.LastHitQ() && qminion != null)
            {
                Q.Cast(qminion);
            }
        }
Example #3
0
        void FarmQ()
        {
            var useQ    = ZyraTheTrollMeNu.FarmMeNu["qFarm"].Cast <CheckBox>().CurrentValue;
            var qminion =
                EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, Q.Range)
                .FirstOrDefault(
                    m =>
                    m.Distance(Player) <= Q.Range &&
                    m.Health <= SpellDamage.QDamage(m) - 20 &&
                    m.IsValidTarget());

            if (Q.IsReady() && useQ && qminion != null && !Orbwalker.IsAutoAttacking)
            {
                Q.Cast(qminion);
            }
        }
Example #4
0
        private static void OnLaneClear()
        {
            var qminion =
                EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, Q.Range)
                .FirstOrDefault(
                    m =>
                    m.Distance(Player) <= Q.Range &&
                    m.Health <= SpellDamage.QDamage(m) + SpellDamage.ExtraWDamage() - 10 &&
                    m.IsValidTarget());

            if (Q.IsReady() && IreliaTheTrollMenu.LaneQ() && Player.ManaPercent > IreliaTheTrollMenu.LaneMana() &&
                qminion != null)
            {
                Q.Cast(qminion);
            }
        }
Example #5
0
        private static void KillSteal()
        {
            var ksQ = VladimirTheTrollMeNu.HarassMeNu["ksQ"].Cast <CheckBox>().CurrentValue;

            foreach (
                var enemy in
                EntityManager.Heroes.Enemies.Where(
                    e => e.Distance(Player) <= Q.Range && e.IsValidTarget() && !e.IsInvulnerable))

            {
                if (ksQ && Q.IsReady() &&
                    SpellDamage.QDamage(enemy) >= enemy.Health &&
                    enemy.Distance(Player) <= Q.Range)
                {
                    Q.Cast(enemy);
                    Chat.Print("<font color=\"#fffffff\" > Use Q Free Kill<font>");
                }
            }
        }
Example #6
0
        public override void Execute()
        {
            if (Settings.UseE && SpellManager.E.IsReady())
            {
                var minionE =
                    EntityManager.MinionsAndMonsters.EnemyMinions
                    .FirstOrDefault(m => m.IsEnemy && m.IsValidTarget(SpellManager.E.Range) &&
                                    (m.Health <= SpellDamage.EDamage(m)));

                if (minionE != null && !minionE.GetAfterEPos().Tower())
                {
                    SpellManager.E.Cast(minionE);
                }
            }

            if (Settings.UseQ && SpellManager.Q.IsReady() && !Player.Instance.HasQ3())
            {
                var minionQ =
                    EntityManager.MinionsAndMonsters.EnemyMinions
                    .FirstOrDefault(m => m.IsEnemy && m.IsValidTarget(SpellManager.Q.Range) &&
                                    m.Health <= SpellDamage.QDamage(m));
                if (minionQ != null)
                {
                    SpellManager.Q.Cast(minionQ);
                }
            }

            if (Settings.UseQ3 && Player.Instance.HasQ3() && SpellManager.Q.IsReady())
            {
                var minionQ3 =
                    EntityManager.MinionsAndMonsters.EnemyMinions
                    .FirstOrDefault(m => m.IsEnemy && m.IsValidTarget(SpellManager.Q.Range) &&
                                    m.Health <= SpellDamage.QDamage(m));
                if (minionQ3 != null)
                {
                    SpellManager.Q.Cast(minionQ3);
                }
            }
        }
Example #7
0
        void OnCombo()
        {
            var gctarget = TargetSelector.GetTarget(Q.Range * 2.5f, DamageType.Physical);
            var target   = TargetSelector.GetTarget(Q.Range, DamageType.Physical);

            if (gctarget == null)
            {
                return;
            }
            var qminion =
                EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position,
                                                                Q.Range + 350)
                .Where(
                    m =>
                    m.IsValidTarget() &&
                    Prediction.Health.GetPrediction(m, 1000 * (int)(m.Distance(Player) / 2200))
                    <= SpellDamage.QDamage(m) + SpellDamage.ExtraWDamage())
                .OrderBy(m => m.Distance(gctarget))
                .FirstOrDefault();

            if (Q.IsReady())
            {
                if (IreliaTheTrollMenu.ComboQgapclose() && qminion != null &&
                    gctarget.Distance(Player) >= Player.GetAutoAttackRange(gctarget) &&
                    qminion.Distance(gctarget) <= Player.Distance(gctarget) &&
                    qminion.Distance(Player) <= Q.Range)
                {
                    Q.Cast(qminion);
                }
            }
            if (IreliaTheTrollMenu.ComboQ() && !IreliaTheTrollMenu.ComboQlastsec() && target != null &&
                Player.Distance(target) <= IreliaTheTrollMenu.Qminrange())
            {
                if (UnderTheirTower(target))
                {
                    if (target.HealthPercent >=
                        IreliaTheTrollMenu.Qundertower())
                    {
                        return;
                    }
                }
                {
                    Q.Cast(target);
                }
            }
            if (IreliaTheTrollMenu.ComboQlastsec() && !IreliaTheTrollMenu.ComboQ() && target != null)
            {
                var buff = Player.Buffs.FirstOrDefault(b => b.Name == "ireliahitenstylecharged" && b.IsValid);
                if (buff != null &&
                    buff.EndTime - Game.Time <= Player.Distance(target) / 2200 + .500 + Player.AttackCastDelay)

                {
                    if (UnderTheirTower(target))
                    {
                        if (target.HealthPercent >=
                            IreliaTheTrollMenu.Qundertower())
                        {
                            return;
                        }
                    }

                    Q.Cast(target);
                }
            }
            if (E.IsReady() && IreliaTheTrollMenu.ComboEstun() && !IreliaTheTrollMenu.ComboE() && target != null &&
                target.Distance(Player) <= E.Range && target.HealthPercent >= Player.HealthPercent &&
                !Player.IsDashing())
            {
                E.Cast(target);
            }
            if (E.IsReady() && IreliaTheTrollMenu.ComboE() && !IreliaTheTrollMenu.ComboEstun() && target != null)
            {
                E.Cast(target);
            }
            if (R.IsReady() && IreliaTheTrollMenu.ComboR() && target != null)
            {
                R.Cast(target);
            }
            if ((ObjectManager.Player.CountEnemiesInRange(ObjectManager.Player.AttackRange) >=
                 IreliaTheTrollMenu.YoumusEnemies() ||
                 Player.HealthPercent >= IreliaTheTrollMenu.ItemsYoumuShp()) &&
                Activator.Youmus.IsReady() && IreliaTheTrollMenu.Youmus() && Activator.Youmus.IsOwned())
            {
                Activator.Youmus.Cast();
                return;
            }
            if (Player.HealthPercent <= IreliaTheTrollMenu.BilgewaterHp() &&
                IreliaTheTrollMenu.Bilgewater() &&
                Activator.Bilgewater.IsReady() && Activator.Bilgewater.IsOwned())
            {
                Activator.Bilgewater.Cast(target);
                return;
            }

            if (Player.HealthPercent <= IreliaTheTrollMenu.BotrkHp() && IreliaTheTrollMenu.Botrk() &&
                Activator.Botrk.IsReady() &&
                Activator.Botrk.IsOwned())
            {
                Activator.Botrk.Cast(target);
            }
        }