Ejemplo n.º 1
0
        public static void Execute()
        {
            if (player.ManaPercent < MenuValue.Harass.ManaLimit)
            {
                return;
            }
            var Champ = EntityManager.Heroes.Enemies.Where(x => x.Health < HandleDamageIndicator(x));

            if (MenuValue.Harass.UseQ && Q.IsReady())
            {
                var target  = Q.GetTarget(Champ);
                var target2 = QPix.GetTarget(Champ);
                if (target != null || target2 != null)
                {
                    PredictionResult pred  = null;
                    PredictionResult pred2 = null;
                    if (target != null)
                    {
                        pred = Q.GetPrediction(target);
                    }
                    if (target2 != null)
                    {
                        pred2 = QPix.GetPrediction(target2);
                    }
                    if (pred.CanNext(Q, MenuValue.General.QHitChance, false) || pred2.CanNext(QPix, MenuValue.General.QHitChance, false))
                    {
                        if (pred.HitChance > pred2.HitChance)
                        {
                            Q.Cast(pred.CastPosition);
                        }
                        else
                        {
                            QPix.Cast(pred2.CastPosition);
                        }
                    }
                }
            }
            if (MenuValue.Harass.UseE && E.IsReady())
            {
                var target = Q.GetTarget(Champ);
                if (target != null)
                {
                    E.Cast(target);
                }
            }
        }
Ejemplo n.º 2
0
 public static void Execute()
 {
     if (MenuValue.Misc.QKS && Q.IsReady())
     {
         var Target  = Q.GetKillableTarget();
         var Target2 = QPix.GetKillableTarget();
         if (Target != null && Target2 != null)
         {
             var pred  = Q.GetPrediction(Target);
             var pred2 = QPix.GetPrediction(Target2);
             if (pred.CanNext(Q, MenuValue.General.QHitChance, false) || pred2.CanNext(QPix, MenuValue.General.QHitChance, false))
             {
                 if (pred.HitChance > pred2.HitChance)
                 {
                     Q.Cast(pred.CastPosition);
                 }
                 else
                 {
                     QPix.Cast(pred2.CastPosition);
                 }
             }
         }
     }
     if (MenuValue.Auto.Enable)
     {
         var Allies = EntityManager.Heroes.Allies.Where(x => !x.IsDead && x.IsValidTarget() && MenuValue.Auto.EnableWith(x) && x.HealthPercent <= MenuValue.Auto.HP(x) && R.IsInRange(x)).OrderByDescending(x => MenuValue.Auto.ChampPriority(x));
         foreach (var Ally in Allies)
         {
             if ((MenuValue.Auto.EnablePred(Ally) && Prediction.Health.GetPrediction(Ally, 2000) <= 0) || !MenuValue.Auto.EnablePred(Ally) || Ally.CountEnemyChampionsInRange(1000) >= 1)
             {
                 if (R.IsReady())
                 {
                     R.Cast(Ally);
                 }
             }
             else
             {
                 continue;
             }
         }
     }
 }
Ejemplo n.º 3
0
        public static void Execute()
        {
            var Champ = EntityManager.Heroes.Enemies.Where(x => x.Health < HandleDamageIndicator(x));

            if (MenuValue.Combo.UseQ && Q.IsReady())
            {
                var target  = Q.GetTarget(Champ);
                var target2 = QPix.GetTarget(Champ);
                if (target != null || target2 != null)
                {
                    PredictionResult pred  = null;
                    PredictionResult pred2 = null;
                    if (target != null)
                    {
                        pred = Q.GetPrediction(target);
                    }
                    if (target2 != null)
                    {
                        pred2 = QPix.GetPrediction(target2);
                    }
                    if (pred.CanNext(Q, MenuValue.General.QHitChance, false) || pred2.CanNext(QPix, MenuValue.General.QHitChance, false))
                    {
                        if (pred.HitChance > pred2.HitChance)
                        {
                            Q.Cast(pred.CastPosition);
                        }
                        else
                        {
                            QPix.Cast(pred2.CastPosition);
                        }
                    }
                }
            }
            if (MenuValue.Combo.UseW && W.IsReady())
            {
                switch (MenuValue.Combo.Wlogic)
                {
                case 0:
                {
                    var target = EntityManager.Heroes.Allies.Where(x => x.IsAlly && x.IsValidTarget(W.Range) && !x.IsDead && !x.IsZombie).OrderByDescending(x => x.TotalAttackDamage).FirstOrDefault();
                    if (target != null)
                    {
                        W.Cast(target);
                    }
                }
                break;

                case 1:
                {
                    var target = W.GetTarget(Champ);
                    if (target != null)
                    {
                        W.Cast(target);
                    }
                }
                break;
                }
            }
            if (MenuValue.Combo.UseE && E.IsReady())
            {
                switch (MenuValue.Combo.Elogic)
                {
                case 0:
                {
                    var target = EntityManager.Heroes.Allies.Where(x => x.IsAlly && x.IsValidTarget(E.Range) && !x.IsDead && !x.IsZombie).OrderBy(x => x.Health).FirstOrDefault();
                    if (target != null)
                    {
                        E.Cast(target);
                    }
                }
                break;

                case 1:
                {
                    var target = E.GetTarget(Champ);
                    if (target != null)
                    {
                        E.Cast(target);
                    }
                }
                break;

                case 2:
                {
                    var target = E.GetTarget(Champ);
                    if (target != null)
                    {
                        var whomoreas = EntityManager.Heroes.Allies.Where(x => x.IsAlly && x.IsValidTarget(W.Range)).OrderByDescending(x => x.AttackSpeedMod).FirstOrDefault();
                        if (HandleDamageIndicator(target, SpellSlot.E) > HowAA(whomoreas, 6) * PixDamage(target))
                        {
                            E.Cast(target);
                        }
                        else
                        {
                            E.Cast(whomoreas);
                        }
                    }
                }
                break;
                }
            }
            if (MenuValue.Combo.UseR && R.IsReady())
            {
                foreach (var ally in EntityManager.Heroes.Allies.Where(x => x.IsValidTarget(R.Range)))
                {
                    if (ally != null)
                    {
                        if (ally.CountEnemyHeroesInRangeWithPrediction(350, R.CastDelay) >= MenuValue.Combo.Rhit)
                        {
                            R.Cast(ally);
                        }
                    }
                }
            }
        }