Exemplo n.º 1
0
        public static void Execute()
        {
            if (kstarget(Q.Range) == null)
            {
                return;
            }
            if (W.IsReady() && KillStealMenu.GetCheckBoxValue("wUse"))
            {
                if (Q.IsReady() && Q.Handle.SData.Mana + W.Handle.SData.Mana < Azir.Mana &&
                    Azir.GetSpellDamage(kstarget(Q.Range), SpellSlot.Q) >= kstarget(Q.Range).TotalShieldHealth())
                {
                    var p = Azir.Distance(kstarget(Q.Range), true) > W.RangeSquared
                                ? Azir.Position.To2D().Extend(kstarget(Q.Range).Position.To2D(), W.Range)
                                : kstarget(Q.Range).Position.To2D();
                    W.Cast((Vector3)p);
                }
            }

            if (Azir.GetSpellDamage(kstarget(Q.Range), SpellSlot.Q) >= kstarget(Q.Range).TotalShieldHealth())
            {
                if (Orbwalker.AzirSoldiers.Any(s => s.IsAlly))
                {
                    Q.TryToCast(kstarget(Q.Range).Position, KillStealMenu);
                }
            }

            if (Azir.GetSpellDamage(kstarget(E.Range), SpellSlot.E) >= kstarget(E.Range).TotalShieldHealth())
            {
                if (Ehit(kstarget(E.Range)))
                {
                    E.TryToCast(kstarget(E.Range).Position, KillStealMenu);
                }
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Put in here what you want to do when the mode is running
        /// </summary>
        public static void Execute()
        {
            var target = TargetSelector.GetTarget(1250, DamageType.Magical);

            if (target == null)
            {
                return;
            }

            if (W.IsReady() && AutoHarassMenu.GetCheckBoxValue("wUse"))
            {
                if (W.Handle.Ammo == 1 && AutoHarassMenu.GetCheckBoxValue("wSave"))
                {
                    return;
                }

                if (Orbwalker.AzirSoldiers.Any(x => !x.IsInRange(target, Orbwalker.AzirSoldierAutoAttackRange)))
                {
                    W.Cast(W.GetPrediction(target).CastPosition);
                }

                if (Orbwalker.AzirSoldiers.Count(s => s.IsAlly) == 0)
                {
                    W.Cast(W.GetPrediction(target).CastPosition);
                }

                if (target.IsValidTarget(Q.Range - 25) && Q.IsReady() && Q.Handle.SData.Mana + W.Handle.SData.Mana < Azir.Mana)
                {
                    var p = Azir.Distance(target, true) > W.RangeSquared
                                ? Azir.Position.To2D().Extend(target.Position.To2D(), W.Range)
                                : target.Position.To2D();
                    W.Cast((Vector3)p);
                }
            }

            if (Q.IsReady() && AutoHarassMenu.GetCheckBoxValue("qUse"))
            {
                if (Orbwalker.AzirSoldiers.Any(x => x.IsInRange(target, Orbwalker.AzirSoldierAutoAttackRange)))
                {
                    return;
                }

                Q.RangeCheckSource = Azir.ServerPosition;
                Q.SourcePosition   = Orbwalker.AzirSoldiers.FirstOrDefault(s => s.IsAlly)?.ServerPosition;

                var pred = Q.GetPrediction(target);
                if (pred.HitChance >= hitchance)
                {
                    Q.Cast(pred.CastPosition);
                }
                if (target.GetDamage(SpellSlot.Q) >= target.TotalShieldHealth())
                {
                    Q.Cast(Azir.Position.To2D().Extend(target.Position.To2D(), Q.Range).To3D());
                }
            }

            if (Ehit(target) && E.IsReady() && AutoHarassMenu.GetCheckBoxValue("eUse"))
            {
                if (target.IsUnderHisturret() && !AutoHarassMenu.GetCheckBoxValue("eDive") ||
                    (target.CountEnemiesInRange(750) >= AutoHarassMenu.GetSliderValue("eSave")))
                {
                    return;
                }
                E.TryToCast(target, AutoHarassMenu);
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// Put in here what you want to do when the mode is running
        /// </summary>
        public static void Execute()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical);

            if (target == null)
            {
                return;
            }

            if (W.IsReady() && ComboMenu.GetCheckBoxValue("wUse"))
            {
                if (W.Handle.Ammo == 1 && ComboMenu.GetCheckBoxValue("wSave"))
                {
                    return;
                }

                if (Orbwalker.AzirSoldiers.Any(x => !x.IsInRange(target, Orbwalker.AzirSoldierAutoAttackRange)) &&
                    ComboMenu.GetCheckBoxValue("wUseAA"))
                {
                    W.Cast(W.GetPrediction(target).CastPosition);
                }

                if (Orbwalker.AzirSoldiers.Count(s => s.IsAlly) == 0 || !ComboMenu.GetCheckBoxValue("wUseAA"))
                {
                    W.Cast(W.GetPrediction(target).CastPosition);
                }

                if (target.IsValidTarget(Q.Range - 100) && Q.IsReady() && Azir.Mana > ManaCheck(Azir) &&
                    !target.IsValidTarget(W.Range))
                {
                    var p = Azir.Distance(target, true) > W.RangeSquared
                                ? Azir.Position.To2D().Extend(target.Position.To2D(), W.Range)
                                : target.Position.To2D();
                    W.Cast((Vector3)p);
                }
            }

            var azirtower =
                ObjectManager.Get <GameObject>().FirstOrDefault(o => o != null && o.Name.ToLower().Contains("towerclicker") && Azir.Distance(o) < 500);

            if (azirtower != null && Azir.PassiveCooldownEndTime <= 0 && azirtower.CountEnemiesInRange(800) >= ComboMenu.GetSliderValue("TowerPls"))
            {
                Player.UseObject(azirtower);
            }

            if (Orbwalker.AzirSoldiers.Count(s => s.IsAlly) >= ComboMenu.GetSliderValue("Qcount") && Q.IsReady() && ComboMenu.GetCheckBoxValue("qUse"))
            {
                Q.RangeCheckSource = Azir.ServerPosition;
                Q.SourcePosition   = Orbwalker.AzirSoldiers.Where(s => s.IsAlly).OrderBy(s => s.Distance(target)).FirstOrDefault()?.Position;
                if (Orbwalker.AzirSoldiers.Any(x => x.IsInRange(target, Orbwalker.AzirSoldierAutoAttackRange)) && ComboMenu.GetCheckBoxValue("qUseAA"))
                {
                    return;
                }

                if (target.CountEnemiesInRange(Q.Width) >= ComboMenu.GetSliderValue("Qaoe"))
                {
                    Q.Cast(target.Position);
                }

                if (target.GetDamage(SpellSlot.Q) + target.GetDamage(SpellSlot.W) >= target.TotalShieldHealth())
                {
                    Q.Cast(Azir.Position.To2D().Extend(target.Position.To2D(), Q.Range).To3D());
                }

                var pred = Q.GetPrediction(target);
                if (pred.HitChance >= hitchance)
                {
                    Q.Cast(pred.CastPosition);
                }
            }

            if (Ehit(target) && E.IsReady() && ComboMenu.GetCheckBoxValue("eUse"))
            {
                if (target.IsUnderHisturret() && !ComboMenu.GetCheckBoxValue("eUseDive") ||
                    (target.CountEnemiesInRange(800) >= ComboMenu.GetSliderValue("eSave")))
                {
                    return;
                }

                if (target.HealthPercent - Azir.HealthPercent > ComboMenu.GetSliderValue("eHealth"))
                {
                    return;
                }

                if (target.Damage() >= target.TotalShieldHealth() && ComboMenu.GetCheckBoxValue("eUsekill"))
                {
                    E.TryToCast(target, ComboMenu);
                }
                else
                {
                    if (!ComboMenu.GetCheckBoxValue("eUsekill"))
                    {
                        E.TryToCast(target, ComboMenu);
                    }
                }
            }

            if ((R.IsReady() && ComboMenu.GetCheckBoxValue("rUse") || (ComboMenu.GetKeyBindValue("Rcast"))) && target.IsValidTarget(R.Range) &&
                R.GetPrediction(target).HitChance >= hitchance)
            {
                if (target.Damage() - target.GetDamage(SpellSlot.R) >= target.TotalShieldHealth() && ComboMenu.GetCheckBoxValue("rOverKill"))
                {
                    pos = Vector2.Zero;
                    return;
                }

                var RTargets = ComboMenu.GetSliderValue("Raoe");
                if ((Azir.HealthPercent <= 20 && ComboMenu.GetCheckBoxValue("rUseSave")) ||
                    (ManaCheck(Azir) < Azir.Mana && target.Damage() >= target.TotalShieldHealth() && ComboMenu.GetCheckBoxValue("rUsekill")) ||
                    (Azir.CountEnemiesInRange(R.Range - 15) >= RTargets))
                {
                    if (tower != null && ComboMenu.GetCheckBoxValue("rUseTower"))
                    {
                        R.Cast(tower.ServerPosition);
                    }
                    else if (ally != null && ComboMenu.GetCheckBoxValue("rUseAlly"))
                    {
                        R.Cast(ally.ServerPosition);
                    }
                    else
                    {
                        R.Cast(target.Position);
                    }
                }
            }
        }