Exemplo n.º 1
0
        public static void LaneClear()
        {
            var Q        = Program.Q;
            var W        = Program.W;
            var E        = Program.E;
            var R        = Program.R;
            var minion   = EntityManager.MinionsAndMonsters.EnemyMinions.FirstOrDefault(m => m.IsValidTarget(Q.Range));
            var qminions = EntityManager.MinionsAndMonsters.EnemyMinions.FirstOrDefault(m => m.IsValidTarget(Program.Q.Range));
            var Cminion  = EntityManager.MinionsAndMonsters.EnemyMinions.Where(t => t.IsInRange(Player.Instance.Position, Q.Range) && !t.IsDead && t.IsValid && !t.IsInvulnerable).Count();

            if (minion == null)
            {
                return;
            }
            if (!(Player.Instance.ManaPercent > Program.FarmMenu["ManaF"].Cast <Slider>().CurrentValue))
            {
                return;
            }
            if (Q.IsReady() && Program.FarmMenu["FarmQ"].Cast <CheckBox>().CurrentValue&& Q.IsInRange(qminions) && minion.IsValidTarget(Q.Range) && qminions.Health < DamageLib.QCalc(qminions))
            {
                Q.Cast(qminions);
            }
            if (E.IsReady() && Program.FarmMenu["FarmE"].Cast <CheckBox>().CurrentValue /*&& (Cminion >= Program.FarmMenu["MinionE"].Cast<Slider>().CurrentValue)*/)
            {
                E.Cast();
            }
        }
Exemplo n.º 2
0
        public static void LastHit()
        {
            var Q        = Program.Q;
            var E        = Program.E;
            var qminions = EntityManager.MinionsAndMonsters.EnemyMinions.FirstOrDefault(m => m.IsValidTarget(Program.Q.Range));
            var eminions = EntityManager.MinionsAndMonsters.EnemyMinions.FirstOrDefault(m => m.IsValidTarget(Program.Q.Range) && (DamageLib.ECalc(m) > m.Health + 50));

            if (qminions == null)
            {
                return;
            }

            if (Q.IsReady() && Program.Q.IsInRange(qminions) && Program.FarmMenu["LastQ"].Cast <CheckBox>().CurrentValue&& qminions.Health < DamageLib.QCalc(qminions))
            {
                Q.Cast(qminions);
            }
            //  if (E.IsReady() && Program.Q.IsInRange(eminions) && Program.FarmMenu["LastE"].Cast<CheckBox>().CurrentValue && (eminions.Health + 150) < DamageLib.ECalc(eminions))

            //    E.Cast();
        }