/// <summary>
 /// This event is triggered when a unit levels up
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private static void Obj_AI_Base_OnLevelUp(Obj_AI_Base sender, Obj_AI_BaseLevelUpEventArgs args)
 {
     if (MiscMenu.GetCheckBoxValue("activateAutoLVL") && sender.IsMe)
     {
         var delay = MiscMenu.GetSliderValue("delaySlider");
         Core.DelayAction(LevelUPSpells, delay);
     }
 }
Пример #2
0
 public static void Obj_AI_Base_OnLevelUp(Obj_AI_Base sender, Obj_AI_BaseLevelUpEventArgs args)
 {
     if (MiscMenu.GetCheckBoxValue("activateAutoLVL") && sender.IsMe)
     {
         Random rnd   = new Random();
         var    delay = MiscMenu.GetSliderValue("delaySlider") + rnd.Next((int)Math.Ceiling(MiscMenu.GetSliderValue("delaySlider") * 0.5), (int)MiscMenu.GetSliderValue("delaySlider"));
         Core.DelayAction(LevelUpSpells, delay);
     }
 }
Пример #3
0
        public static void AutoHeal()
        {
            var health = MiscMenu.GetSliderValue("AutoWHP");

            if (_player.HasBuff("Recall") || _player.Mana <= 5)
            {
                return;
            }

            if (W.IsReady() && _player.HealthPercent <= health)
            {
                W.Cast();
            }
        }
Пример #4
0
        public static void Execute()
        {
            Orbwalker.DisableAttacking = true;
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical);

            if (Q.IsReady())
            {
                MiscMenu.GetSliderValue("predictionHit");
                SpellsManager.castQ(target, false, predictionHit);
            }
            if (E.IsReady())
            {
                E.Cast(Utils.getPlayer());
            }
        }
Пример #5
0
        public override void PermaActive()
        {
            var ks = W.GetKillableTarget();
            if (KillStealMenu.GetCheckBoxValue(KillstealMenuID + "Q")) Q.TryCast(ks);
            if (KillStealMenu.GetCheckBoxValue(KillstealMenuID + "W")) W.TryCast(ks);

            var target = GetTarget(1200);
            if (HarassMenu.GetSliderValue(AutoHarassMenuID + "mana") <= Player.Instance.ManaPercent)
            {
                if (HarassMenu.GetCheckBoxValue(AutoHarassMenuID + "Q")) Q.TryCast(target);
                if (HarassMenu.GetCheckBoxValue(AutoHarassMenuID + "W")) W.TryCast(target);
                if (HarassMenu.GetCheckBoxValue(AutoHarassMenuID + "E") &&
                    HarassMenu.GetSliderValue(50) <= Player.Instance.HealthPercent)
                {
                    E.TryCast(target);
                }
            }

            if (MiscMenu.GetSliderValue(MiscMenuID + "mana") <= Player.Instance.ManaPercent &&
                MiscMenu.GetCheckBoxValue(58))
            {
                if (MiscMenu.GetCheckBoxValue(60))
                {
                    if (MiscMenu.GetCheckBoxValue(61) && target.IsStunned) Q.TryCast(target);
                    if (MiscMenu.GetCheckBoxValue(62) && target.IsRooted) Q.TryCast(target);
                    if (MiscMenu.GetCheckBoxValue(63) && target.IsFeared) Q.TryCast(target);
                    if (MiscMenu.GetCheckBoxValue(64) && target.IsTaunted) Q.TryCast(target);
                    if (MiscMenu.GetCheckBoxValue(65) && target.IsSuppressCallForHelp) Q.TryCast(target);
                    if (MiscMenu.GetCheckBoxValue(66) && target.IsCharmed) Q.TryCast(target);
                }
                if (MiscMenu.GetCheckBoxValue(67))
                {
                    if (MiscMenu.GetCheckBoxValue(68) && target.IsStunned) W.TryCast(target);
                    if (MiscMenu.GetCheckBoxValue(69) && target.IsRooted) W.TryCast(target);
                    if (MiscMenu.GetCheckBoxValue(70) && target.IsFeared) W.TryCast(target);
                    if (MiscMenu.GetCheckBoxValue(71) && target.IsTaunted) W.TryCast(target);
                    if (MiscMenu.GetCheckBoxValue(72) && target.IsSuppressCallForHelp) W.TryCast(target);
                    if (MiscMenu.GetCheckBoxValue(73) && target.IsCharmed) W.TryCast(target);
                }
            }
        }
Пример #6
0
        public override void PermaActive()
        {
            var ks = R.GetKillableTarget();

            if (KillStealMenu.GetCheckBoxValue(KillstealMenuID + "W"))
            {
                W.TryCast(ks);
            }
            if (KillStealMenu.GetCheckBoxValue(KillstealMenuID + "R"))
            {
                R.TryCast(ks);
            }

            var target = GetTarget(W);

            if (HarassMenu.GetCheckBoxValue(AutoHarassMenuID + "W") &&
                HarassMenu.GetSliderValue(AutoHarassMenuID + "mana") <= Player.Instance.ManaPercent)
            {
                W.TryCast(target);
            }

            if (MiscMenu.GetSliderValue(MiscMenuID + "mana") <= Player.Instance.ManaPercent && MiscMenu.GetCheckBoxValue(56))
            {
                if (MiscMenu.GetCheckBoxValue(52))
                {
                    if (MiscMenu.GetCheckBoxValue(53) && target.IsStunned)
                    {
                        W.TryCast(target);
                    }
                    if (MiscMenu.GetCheckBoxValue(54) && target.IsRooted)
                    {
                        W.TryCast(target);
                    }
                    if (MiscMenu.GetCheckBoxValue(55) && target.IsFeared)
                    {
                        W.TryCast(target);
                    }
                    if (MiscMenu.GetCheckBoxValue(56) && target.IsTaunted)
                    {
                        W.TryCast(target);
                    }
                    if (MiscMenu.GetCheckBoxValue(57) && target.IsSuppressCallForHelp)
                    {
                        W.TryCast(target);
                    }
                    if (MiscMenu.GetCheckBoxValue(58) && target.IsCharmed)
                    {
                        W.TryCast(target);
                    }
                }
                if (MiscMenu.GetCheckBoxValue(59))
                {
                    if (MiscMenu.GetCheckBoxValue(60) && target.IsStunned)
                    {
                        R.TryCast(target);
                    }
                    if (MiscMenu.GetCheckBoxValue(61) && target.IsRooted)
                    {
                        R.TryCast(target);
                    }
                    if (MiscMenu.GetCheckBoxValue(62) && target.IsFeared)
                    {
                        R.TryCast(target);
                    }
                    if (MiscMenu.GetCheckBoxValue(63) && target.IsTaunted)
                    {
                        R.TryCast(target);
                    }
                    if (MiscMenu.GetCheckBoxValue(64) && target.IsSuppressCallForHelp)
                    {
                        R.TryCast(target);
                    }
                    if (MiscMenu.GetCheckBoxValue(65) && target.IsCharmed)
                    {
                        R.TryCast(target);
                    }
                }
            }
        }
Пример #7
0
        public static void Execute()
        {
            var target = TargetSelector.GetTarget(1700, DamageType.Magical);

            if (target == null || target.IsInvulnerable || target.MagicImmune)
            {
                return;
            }


            Core.DelayAction(delegate
            {
                if (target.IsValidTarget(E.Range) && E.IsReady() && ComboMenu.GetCheckBoxValue("eUse") && (Hitch.ShouldOverload(SpellSlot.E) || Player.Instance.Mana < 80))
                {
                    E.Cast(target.Position);
                }
            }, Edelay);

            Core.DelayAction(delegate
            {
                if (Player.Instance.Spellbook.GetSpell(SpellSlot.E).ToggleState == 1)
                {
                    E.Cast(target.Position);
                }
            }, Edelay);

            if (target.IsValidTarget(Q.Range) && Q.IsReady() && ComboMenu.GetCheckBoxValue("qUse") && Player.Instance.IsFacing(target) && (Hitch.ShouldOverload(SpellSlot.Q) || Player.Instance.Mana < 80))
            {
                Q.Cast();
            }

            if (W.IsReady() && ComboMenu.GetCheckBoxValue("wUse"))
            {
                W.Cast();
            }

            var targetR = TargetSelector.GetTarget(R.Range, DamageType.Magical);

            if (targetR == null || targetR.IsZombie || targetR.HasUndyingBuff())
            {
                return;
            }

            if (ComboMenu["rlog"].Cast <ComboBox>().CurrentValue == 0 && R.IsReady())
            {
                if (targetR.IsMoving)
                {
                    if (targetR.IsValidTarget(R.Range + 300))
                    {
                        R.Cast(target.Position - target.MoveSpeed);
                    }
                    else
                    {
                        R.Cast(target.Position - target.MoveSpeed / 2);
                    }
                }

                else if (R.IsReady() && targetR.IsValidTarget(R.Range + Q.Range) && ComboMenu["rlog"].Cast <ComboBox>().CurrentValue == 1 && !targetR.IsInRange(Player.Instance, E.Range) && !targetR.IsFacing(Player.Instance))
                {
                    if (ComboMenu.GetCheckBoxValue("rUse") && Prediction.Health.GetPrediction(targetR, R.CastDelay) <=
                        SpellDamage.GetRealDamage(SpellSlot.R, targetR))
                    {
                        Hitch.CastR(targetR, MiscMenu.GetSliderValue("minR"));
                    }
                    else
                    {
                        Hitch.CastR(targetR, MiscMenu.GetSliderValue("minR"));
                    }
                }

                else if (ComboMenu["rlog"].Cast <ComboBox>().CurrentValue == 2 && R.IsReady())
                {
                    if (targetR.IsValidTarget(R.Range + Q.Range))
                    {
                        var predr = R.GetPrediction(targetR);
                        if (predr.HitChance >= HitChance.High)
                        {
                            R.Cast(predr.CastPosition - 40);
                        }
                    }
                    else
                    {
                        var predictedHealth = Prediction.Health.GetPrediction(targetR, R.CastDelay + Game.Ping);
                        var predr           = R.GetPrediction(targetR);
                        var rDamage         = targetR.GetDamage(SpellSlot.R);
                        if (predictedHealth <= rDamage)
                        {
                            R.Cast(predr.CastPosition);
                        }
                    }
                }
            }
        }
Пример #8
0
        public static void Execute()
        {
            var target = TargetSelector.GetTarget(1700, DamageType.Magical);

            if (target == null || target.IsInvulnerable || target.MagicImmune)
            {
                return;
            }


            Core.DelayAction(delegate
            {
                if (target.IsValidTarget(E.Range) && E.IsReady() && ComboMenu.GetCheckBoxValue("eUse") && (Hitch.ShouldOverload(SpellSlot.E) || Player.Instance.Mana < 80))
                {
                    E.Cast(target);
                }
            }, Edelay);

            if (Player.Instance.Spellbook.GetSpell(SpellSlot.E).ToggleState == 1)
            {
                E.Cast(target.Position);
            }

            if (target.IsValidTarget(Q.Range) && Q.IsReady() && ComboMenu.GetCheckBoxValue("qUse") && Player.Instance.IsFacing(target) && (Hitch.ShouldOverload(SpellSlot.Q) || Player.Instance.Mana < 80))
            {
                Q.Cast();
            }

            if (W.IsReady() && ComboMenu.GetCheckBoxValue("wUse"))
            {
                W.Cast();
            }

            var targetR = TargetSelector.GetTarget(R.Range, DamageType.Magical);

            if (targetR == null || targetR.IsZombie || targetR.HasUndyingBuff())
            {
                return;
            }

            if (ComboMenu.GetCheckBoxValue("my") && R.IsReady())
            {
                if (targetR.IsMoving)
                {
                    if (targetR.IsValidTarget(R.Range + 1000))
                    {
                        R.Cast(target.Position - target.MoveSpeed);
                    }
                }
                else
                {
                    R.Cast(target.Position + 550);
                }
            }

            if (R.IsReady() && targetR.IsValidTarget(R.Range) && ComboMenu.GetCheckBoxValue("mario") && !targetR.IsInRange(Player.Instance, E.Range) && !targetR.IsFacing(Player.Instance))
            {
                if (KillStealMenu.GetCheckBoxValue("rUse") && Prediction.Health.GetPrediction(targetR, R.CastDelay) <=
                    SpellDamage.GetRealDamage(SpellSlot.R, targetR))
                {
                    Hitch.CastR(targetR, MiscMenu.GetSliderValue("minR"));
                }
                else
                {
                    Hitch.CastR(targetR, MiscMenu.GetSliderValue("minR"));
                }
            }
        }
Пример #9
0
        public static void Execute()
        {
            //if (InRLock()) return;

            // Primary target
            var target = Targeting.Champions(EffectiveExtendedSkillRange);

            // Check if we should wait with spells
            if (!States.SpellReady(target))
            {
                return;
            }

            // Use E?
            if (E.IsReady() && ComboMenu.GetCheckBoxValue("eUse"))
            {
                // Attempt to dash
                if (!Dash.Attempt(target, MiscMenu.GetSliderValue("maxEnemiesNear")))
                {
                    // No dash is suitable, target closer enemies and attempt to dash again
                    target = Targeting.Champions(EffectiveSkillRange, true);
                    Dash.Attempt(target, MiscMenu.GetSliderValue("maxEnemiesNear"));
                }
            }

            // Cast Q
            if (ComboMenu.GetCheckBoxValue("qUse"))
            {
                if (!Q.TryToCast(target, ComboMenu))
                {
                    CastQExtended(target);
                }
            }

            // Cast W
            if (ComboMenu.GetCheckBoxValue("wUse"))
            {
                var wPrediction = W.GetPrediction(target);

                if ((!Q.IsReady() || !target.WithinRange(Q.Range)) &&
                    (wPrediction.HitChance != HitChance.Collision && wPrediction.HitChance >= HitChance.Medium))
                {
                    if (!W.TryToCast(wPrediction.CastPosition, ComboMenu) && target.WithinRange(EffectiveAttackRange))
                    {
                        CastW(wPrediction.CastPosition);
                    }
                }
            }

            // Attempt to cast R
            if (R.IsReady() && ComboMenu.GetCheckBoxValue("rUse"))
            {
                target  = Targeting.Champions(R.Range);
                RTarget = target;
                //Chat.Print("Casting R!");
                CastR(target);
            }

            // Attempt to cast extended Q
            if (ComboMenu.GetCheckBoxValue("qUse"))
            {
                target = Targeting.Champions(EffectiveReachRange);
                if (!Q.TryToCast(target, ComboMenu))
                {
                    CastQExtended(target);
                }
            }
        }