Пример #1
0
        public static void Execute()
        {
            //////////////////// KS E BETA
            var targetKSE = TargetSelector.GetTarget(SpellsManager.E.Range, DamageType.Magical);

            if (targetKSE != null && KillStealMenu.GetCheckBoxValue("eUse") && SpellsManager.E.IsReady())
            {
                var predE2 = SpellsManager.E.GetPrediction(targetKSE);
                if (predE2.HitChance >= HitChance.High && targetKSE.Health < Player.Instance.GetSpellDamage(targetKSE, SpellSlot.E))
                {
                    SpellsManager.E.Cast(predE2.CastPosition);
                    return;
                }
            }//////////////////// END KS E

            //////////////////// KS R BETA
            var targetKSR = TargetSelector.GetTarget(SpellsManager.R.Range, DamageType.Magical);

            if (targetKSR != null && KillStealMenu.GetCheckBoxValue("rUse") && SpellsManager.R.IsReady())
            {
                var predR2 = SpellsManager.R.GetPrediction(targetKSR);
                if (predR2.HitChance >= HitChance.High && targetKSR.Health < Player.Instance.GetSpellDamage(targetKSR, SpellSlot.R))
                {
                    SpellsManager.R.Cast(predR2.CastPosition);
                    return;
                }
            }//////////////////// END KS R

            if (Player.Instance.InDanger(95) && W.IsReady() && (Hitch.ShouldOverload(SpellSlot.W) || Player.Instance.Mana < 80)) //Credits Mario
            {
                W.Cast();
            }
        }
Пример #2
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);
                        }
                    }
                }
            }
        }
Пример #3
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"));
                }
            }
        }