Ejemplo n.º 1
0
        private void Harass()
        {
            if (Player.ManaPercent < Config.HarassManaManager.GetValue <Slider>().Value)
            {
                return;
            }

            var SpellQ = Config.HarassQ.GetValue <bool>();
            var SpellW = Config.HarassW.GetValue <bool>();
            var target = Orbwalker.GetTarget() as AIHeroClient;

            if (target == null)
            {
                target = TargetSelector.GetTarget(W.Range, TargetSelector.DamageType.Physical);
            }

            if ((target != null) && target.IsValidTarget())
            {
                if (target.IsValidTarget(W.Range) && SpellW)
                {
                    SpellCast.SebbySpellMain(W, target);
                }

                if (Q.IsReady() && SpellQ)
                {
                    Q.Cast();
                }
            }
        }
Ejemplo n.º 2
0
        private void Harass()
        {
            // Harass
            var t = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical);

            if (!t.IsValidTarget())
            {
                return;
            }
            if (Player.ManaPercent > Config.HarassManaManager.GetValue <Slider>().Value)
            {
                if (Config.HarassW.GetValue <bool>() && W.IsInRange(t))
                {
                    SpellCast.SebbySpellMain(W, t);
                }
            }
            if (Player.ManaPercent > Config.HarassManaManager.GetValue <Slider>().Value)
            {
                if (Config.HarassQ.GetValue <bool>() && Q.IsInRange(t))
                {
                    SpellCast.SebbySpellMain(Q, t);
                }
            }
            if (Player.ManaPercent > Config.HarassManaManager.GetValue <Slider>().Value)
            {
                if (Config.HarassE.GetValue <bool>() && E.IsInRange(t))
                {
                    E.CastOnUnit(t);
                }
            }
        }
Ejemplo n.º 3
0
        private void KSCheck()
        {
            var target = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical);

            // If Target's not in Q Range or there's no target or target's invulnerable don't f**k with him
            if ((target == null) || !target.IsValidTarget(Q.Range) || target.IsInvulnerable)
            {
                return;
            }

            var ksQ = Config.KSQ.GetValue <bool>();
            var ksW = Config.KSW.GetValue <bool>();
            var ksE = Config.KSE.GetValue <bool>();

            // KS
            if (ksQ && (OktwCommon.GetKsDamage(target, Q) > target.Health) && target.IsValidTarget(Q.Range))
            {
                SpellCast.SebbySpellMain(Q, target);
            }
            if (ksW && (OktwCommon.GetKsDamage(target, W) > target.Health) && target.IsValidTarget(W.Range))
            {
                W.CastOnUnit(target);
            }
            if (ksE && (OktwCommon.GetKsDamage(target, E) > target.Health) && target.IsValidTarget(E.Range))
            {
                E.CastOnUnit(target);
            }
        }
Ejemplo n.º 4
0
        // Combo
        private void Combo()
        {
            var useQ = Config.UseQ.GetValue <bool>();
            var useW = Config.UseW.GetValue <bool>();
            var useE = Config.UseE.GetValue <bool>();
            var useR = Config.UseR.GetValue <bool>();
            var m    = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical);

            if ((m == null) || !m.IsValidTarget())
            {
                return;
            }

            if (Player.Mana > E.ManaCost + W.ManaCost + R.ManaCost)
            {
                if (useQ && Q.IsReady() && (Player.Mana > Q.ManaCost) && Q.IsInRange(m))
                {
                    SpellCast.SebbySpellMain(Q, m);
                }

                if (useW && W.IsReady())
                {
                    W.Cast(m);
                }

                if (useE && E.IsReady() && E.IsInRange(m))
                {
                    E.CastOnUnit(m);
                }

                if (useR && R.IsReady() && !W.IsReady() && !E.IsReady() && (m != null) &&
                    E.IsInRange(m))
                {
                    R.CastOnUnit(m);
                }
            }
            else
            {
                if (useE && E.IsReady() && E.IsInRange(m))
                {
                    E.CastOnUnit(m);
                }

                if (useQ && Q.IsReady() && (Player.Mana > Q.ManaCost) && Q.IsInRange(m))
                {
                    SpellCast.SebbySpellMain(Q, m);
                }

                if (useW && W.IsReady() && (Player.Mana > W.ManaCost) && W.IsInRange(m))
                {
                    W.Cast(m);
                }
            }
        }
Ejemplo n.º 5
0
        // Burst
        public void Oneshot()
        {
            // If player doesn't have mana don't execute the OneShot Combo
            if (Player.Mana < Q.ManaCost + W.ManaCost + E.ManaCost + R.ManaCost)
            {
                return;
            }

            if (Player.IsChannelingImportantSpell() || (Game.Time - Rtime < 2.5) ||
                Player.HasBuff("malzaharrsound"))
            {
                Orbwalker.SetAttack(false);
                Orbwalker.SetMovement(false);
                return;
            }
            Orbwalker.SetAttack(true);
            Orbwalker.SetMovement(true);

            Orbwalking.MoveTo(Game.CursorPos);

            var m = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical);

            if (!m.IsValidTarget())
            {
                return;
            }

            if (Q.IsReady() && Q.IsInRange(m))
            {
                SpellCast.SebbySpellMain(Q, m);
            }

            if (E.IsReady() && E.IsInRange(m))
            {
                E.CastOnUnit(m);
            }

            if (W.IsReady())
            {
                W.Cast(m);
            }

            if (R.IsReady() && !E.IsReady() && !W.IsReady() && R.IsInRange(m))
            {
                R.CastOnUnit(m);
            }
        }
Ejemplo n.º 6
0
        private void InstantlyR()
        {
            var target = TargetSelector.GetSelectedTarget();

            if ((target == null) || !target.IsValidTarget())
            {
                target = TargetSelector.GetTarget(1400, TargetSelector.DamageType.Physical);
            }

            if (target.IsValidTarget() && (target != null))
            {
                if ((Player.Mana > R.Instance.SData.Mana) && !target.HasBuff("rebirth"))
                {
                    SpellCast.SebbySpellMain(R, target);
                }
            }
        }
Ejemplo n.º 7
0
        private void EUsage()
        {
            // E Usage
            var t = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Magical);

            if (t.IsValidTarget())
            {
                if ((Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo) && (Player.Mana > RManaC + E.ManaCost))
                {
                    var enemystunned =
                        HeroManager.Enemies.Find(
                            enemy =>
                            (enemy.IsValidTarget(E.Range) && enemy.HasBuff("stun")) ||
                            (enemy.IsStunned && Config.PrioritizeStunned.GetValue <bool>()));
                    if (enemystunned != null)
                    {
                        Orbwalker.ForceTarget(enemystunned);
                        E.CastOnUnit(enemystunned);
                    }
                    else
                    {
                        Orbwalker.ForceTarget(t);
                        E.CastOnUnit(t);
                    }
                }
                else
                {
                    // If there's a chance to KS/Get :kappa: a kill.
                    var eDmg = OktwCommon.GetKsDamage(t, E) + BonusDmg(t) + OktwCommon.GetEchoLudenDamage(t);
                    var wDmg = W.GetDamage(t);
                    if (eDmg > t.Health)
                    {
                        E.CastOnUnit(t);
                    }
                    else if ((wDmg + eDmg > t.Health) && (Player.Mana > W.ManaCost + E.ManaCost))
                    {
                        E.CastOnUnit(t);
                        SpellCast.SebbySpellMain(W, t);
                    }
                }
            }
        }
Ejemplo n.º 8
0
        private void Combo()
        {
            // If target's champion target him, if it's not target surrounding enemy [creep, etc]
            var target = Orbwalker.GetTarget() as AIHeroClient;

            if (target == null)
            {
                target = TargetSelector.GetTarget(W.Range, TargetSelector.DamageType.Physical);
            }

            if ((target != null) && target.IsValidTarget())
            {
                if ((Config.UseQ.GetValue <bool>() && Q.IsReady() &&
                     (Player.Mana > Q.Instance.SData.Mana + R.Instance.SData.Mana)) ||
                    (target.Health < 5 * Player.GetAutoAttackDamage(Player)))
                {
                    Q.Cast();
                }
                if (Config.UseW.GetValue <bool>() && W.IsReady() &&
                    (Player.Mana > W.Instance.SData.Mana + R.Instance.SData.Mana) && target.IsValidTarget(W.Range))
                {
                    SpellCast.SebbySpellMain(W, target);
                }
                foreach (
                    var ulttarget in
                    HeroManager.Enemies.Where(ulttarget => target.IsValidTarget(2000) && OktwCommon.ValidUlt(ulttarget))
                    )
                {
                    if (Config.UseR.GetValue <bool>() && target.IsValidTarget(W.Range) &&
                        (target.Health <
                         W.GetDamage(target) + R.GetDamage(target) + 3 * Player.GetAutoAttackDamage(target) +
                         OktwCommon.GetIncomingDamage(target)) && !target.HasBuff("rebirth"))
                    {
                        SpellCast.SebbySpellMain(R, target);
                        if (Q.IsReady())
                        {
                            Q.Cast();
                        }
                    }
                }
            }
        }
Ejemplo n.º 9
0
        private void KSAshe()
        {
            if (Config.KillSteal.GetValue <bool>())
            {
                var target = Orbwalker.GetTarget() as AIHeroClient;

                if (target.IsValidTarget(W.Range) &&
                    (target.Health < W.GetDamage(target) + R.GetDamage(target) + OktwCommon.GetIncomingDamage(target)))
                {
                    if (!OktwCommon.IsSpellHeroCollision(target, R))
                    {
                        SpellCast.SebbySpellMain(R, target);
                    }
                    if (!target.CanMove || target.IsStunned)
                    {
                        SpellCast.SebbySpellMain(W, target);
                    }
                }
                if (target.IsValidTarget(1600) &&
                    (target.Health < R.GetDamage(target) + OktwCommon.GetIncomingDamage(target)))
                {
                    if (!OktwCommon.IsSpellHeroCollision(target, R))
                    {
                        SpellCast.SebbySpellMain(R, target);
                    }
                }
                if (target.IsValidTarget(W.Range) &&
                    (target.Health < W.GetDamage(target) + OktwCommon.GetIncomingDamage(target)))
                {
                    if (target.CanMove)
                    {
                        SpellCast.SebbySpellMain(W, target);
                    }
                    else
                    {
                        SpellCast.SebbySpellMain(W, target);
                    }
                }
                // More to be Added
            }
        }
Ejemplo n.º 10
0
        private void Harass()
        {
            // Harass
            var HarassUseQ = Config.HarassQ.GetValue <bool>();
            var HarassUseW = Config.HarassW.GetValue <bool>();
            var HarassUseE = Config.HarassE.GetValue <bool>();
            // Checks
            var target      = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical);
            var ryzeebuffed =
                MinionManager.GetMinions(Player.Position, E.Range)
                .Find(x => x.HasBuff("RyzeE") && x.IsValidTarget(E.Range));

            // If Target's not in Q Range or there's no target or target's invulnerable don't f**k with him
            if ((target == null) || !target.IsValidTarget(Q.Range) || target.IsInvulnerable)
            {
                return;
            }

            // Execute the Lad
            if (Player.ManaPercent > Config.HarassManaManager.GetValue <Slider>().Value)
            {
                if (HarassUseW && target.IsValidTarget(W.Range))
                {
                    W.CastOnUnit(target);
                }
                if (HarassUseQ && target.IsValidTarget(Q.Range))
                {
                    SpellCast.SebbySpellMain(Q, target);
                }
                if (HarassUseE && ryzeebuffed.IsValidTarget() && (target.Distance(ryzeebuffed) < 200))
                {
                    E.CastOnUnit(ryzeebuffed);
                }
                else if (HarassUseE && (!ryzeebuffed.IsValidTarget() || (ryzeebuffed == null)) &&
                         target.IsValidTarget(W.Range))
                {
                    E.CastOnUnit(target);
                }
            }
        }
Ejemplo n.º 11
0
        private void WUsage()
        {
            // W Usage
            var t = TargetSelector.GetTarget(W.Range, TargetSelector.DamageType.Magical);

            if (t.IsValidTarget())
            {
                var Qdamage = Q.GetDamage(t);
                var Wdamage = OktwCommon.GetKsDamage(t, W) + BonusDmg(t) + OktwCommon.GetEchoLudenDamage(t);
                if (Wdamage > t.Health)
                {
                    SpellCast.SebbySpellMain(W, t);
                }
                else if ((Wdamage + Qdamage > t.Health) && (Player.ManaPercent > Q.ManaCost + E.ManaCost))
                {
                    SpellCast.SebbySpellMain(W, t);
                }

                if (Player.Mana > RManaC + W.ManaCost)
                {
                    var enemystunned =
                        HeroManager.Enemies.Find(
                            enemy =>
                            (enemy.IsValidTarget(W.Range) && enemy.HasBuff("stun")) ||
                            (enemy.IsStunned && Config.PrioritizeStunned.GetValue <bool>()));
                    if (enemystunned != null)
                    {
                        Orbwalker.ForceTarget(enemystunned);
                        SpellCast.SebbySpellMain(W, enemystunned);
                    }
                    else
                    {
                        Orbwalker.ForceTarget(enemystunned);
                        SpellCast.SebbySpellMain(W, t);
                    }
                }
            }
        }
Ejemplo n.º 12
0
        private void AutoHarass()
        {
            if (Player.ManaPercent < Config.HarassMana.GetValue <Slider>().Value)
            {
                return;
            }

            var m = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Magical);

            if ((m == null) || !m.IsValidTarget())
            {
                return;
            }

            if ((m != null) && Config.HarassE.GetValue <bool>())
            {
                E.CastOnUnit(m);
            }

            if ((m != null) && Config.HarassQ.GetValue <bool>())
            {
                SpellCast.SebbySpellMain(Q, m);
            }
        }
Ejemplo n.º 13
0
        private void OnUpdate(EventArgs args)
        {
            if (Player.IsDead || Player.IsRecalling())
            {
                return;
            }

            /*if (LeagueSharp.Common.Config.Item("UseSkin").GetValue<bool>())
             * {
             *  Player.SetSkin(Player.CharData.BaseSkinName, LeagueSharp.Common.Config.Item("SkinID").GetValue<Slider>().Value);
             * }*/
            // Checks
            RManaCost();
            //new Utility.Activator().SeraphUsage();
            //new Utility.Activator().ProHexGLPUsage();
            // Combo
            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
            {
                Combo();
            }
            //Lane
            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear) // LaneClear mode broken? kappa
            {
                LaneClear();
            }
            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed)
            {
                AABlock();
                Harass();
            }
            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.None)
            {
                Orbwalker.SetMovement(true);
                Orbwalker.SetAttack(true);
            }
            if (Config.StunTargetKey.GetValue <KeyBind>().Active)
            {
                Orbwalking.MoveTo(Game.CursorPos);
                if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.None)
                {
                    var t = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical);
                    if (!t.IsValidTarget() || (t == null))
                    {
                        return;
                    }
                    // Wait till the enemy has BrandABlaze from the W or E casting and then cast Q.
                    if (t.HasBuff("brandablaze"))
                    {
                        if (Q.IsReady())
                        {
                            SpellCast.SebbySpellMain(Q, t);
                        }
                    }
                    else
                    {
                        if (Q.IsReady() && E.IsReady())
                        {
                            E.CastOnUnit(t);
                        }
                        else if (Q.IsReady() && W.IsReady())
                        {
                            SpellCast.SebbySpellMain(W, t);
                        }
                    }
                }
            }
        }
Ejemplo n.º 14
0
        private void QUsage()
        {
            var m = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical);

            if (!m.IsValidTarget())
            {
                return;
            }
            // Q Improvement + KS Below
            if (OktwCommon.GetKsDamage(m, Q) + BonusDmg(m) + OktwCommon.GetEchoLudenDamage(m) > m.Health)
            {
                SpellCast.SebbySpellMain(Q, m);
            }
            if (Config.QAblazedEnemy.GetValue <bool>() && m.HasBuff("brandablaze"))
            {
                foreach (
                    var enemy in
                    HeroManager.Enemies.Where(enemy => enemy.IsValidTarget(Q.Range) && enemy.HasBuff("brandablaze")))
                {
                    SpellCast.SebbySpellMain(Q, enemy);
                }
            }
            else
            {
                if (m.HasBuff("brandablaze") && Config.QAblazedEnemy.GetValue <bool>())
                {
                    var spreadTarget = m;

                    foreach (
                        var enemy in
                        HeroManager.Enemies.Where(enemy => enemy.IsValidTarget(Q.Range) && enemy.HasBuff("brandablaze"))
                        )
                    {
                        m = enemy;
                    }

                    if ((spreadTarget == m) && !LogQUse(m))
                    {
                        return;
                    }
                }

                if ((Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo) && !W.IsReady() &&
                    (Player.ManaPercent > RManaC + Q.ManaCost))
                {
                    var enemystunned =
                        HeroManager.Enemies.Find(
                            enemy =>
                            (enemy.IsValidTarget(Q.Range) && enemy.HasBuff("stun")) ||
                            (enemy.IsStunned && Config.PrioritizeStunned.GetValue <bool>()));
                    if (enemystunned != null)
                    {
                        Orbwalker.ForceTarget(enemystunned);
                        SpellCast.SebbySpellMain(Q, enemystunned);
                    }
                    else
                    {
                        Orbwalker.ForceTarget(m);
                        SpellCast.SebbySpellMain(Q, m);
                    }
                }
                if (Player.Mana > RManaC + Q.ManaCost)
                {
                    var enemystunned =
                        HeroManager.Enemies.Find(
                            enemy =>
                            (enemy.IsValidTarget(Q.Range) && enemy.HasBuff("stun")) ||
                            (enemy.IsStunned && Config.PrioritizeStunned.GetValue <bool>()));
                    if (enemystunned != null)
                    {
                        Orbwalker.ForceTarget(enemystunned);
                        SpellCast.SebbySpellMain(Q, enemystunned);
                    }
                    else
                    {
                        Orbwalker.ForceTarget(m);
                        SpellCast.SebbySpellMain(Q, m);
                    }
                }
            }
        }
Ejemplo n.º 15
0
        private void Combo()
        {
            // Combo
            var ComUseQ = Config.CUseQ.GetValue <bool>();
            var ComUseW = Config.CUseW.GetValue <bool>();
            var ComUseE = Config.CUseE.GetValue <bool>();
            // Checks
            var target = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical);

            // If Target's not in Q Range or there's no target or target's invulnerable don't f**k with him
            if ((target == null) || !target.IsValidTarget(Q.Range) || target.IsInvulnerable)
            {
                return;
            }

            switch (Config.ComboMode.GetValue <StringList>().SelectedIndex)
            {
            case 0:

                #region Burst Mode

                // Execute the Lad
                if (Player.Mana >= Q.Instance.ManaCost + W.Instance.ManaCost + E.Instance.ManaCost)
                {
                    if (ComUseW && target.IsValidTarget(W.Range) && W.IsReady())
                    {
                        W.CastOnUnit(target);
                    }
                    if (ComUseQ && target.IsValidTarget(Q.Range))
                    {
                        SpellCast.SebbySpellMain(Q, target);
                    }
                    if (ComUseE && target.IsValidTarget(E.Range) && E.IsReady())
                    {
                        E.CastOnUnit(target);
                    }
                }
                else
                {
                    if (ComUseW && target.IsValidTarget(W.Range) && W.IsReady())
                    {
                        W.CastOnUnit(target);
                    }
                    if (ComUseQ && target.IsValidTarget(Q.Range))
                    {
                        SpellCast.SebbySpellMain(Q, target);
                    }
                    if (ComUseE && target.IsValidTarget(E.Range) && E.IsReady())
                    {
                        E.CastOnUnit(target);
                    }
                }

                #endregion

                break;

            case 1:

                #region SurvivorMode

                if ((Q.Level >= 1) && (W.Level >= 1) && (E.Level >= 1))
                {
                    if (!target.IsValidTarget(W.Range - 15f) && Q.IsReady())
                    {
                        SpellCast.SebbySpellMain(Q, target);
                    }
                    // Try having Full Charge if either W or E spells are ready...
                    if (RyzeCharge1() && Q.IsReady() && (W.IsReady() || E.IsReady()))
                    {
                        if (E.IsReady())
                        {
                            E.Cast(target);
                        }
                        if (W.IsReady())
                        {
                            W.Cast(target);
                        }
                    }
                    if (RyzeCharge1() && !E.IsReady() && !W.IsReady())
                    {
                        SpellCast.SebbySpellMain(Q, target);
                    }

                    if (RyzeCharge0() && !E.IsReady() && !W.IsReady())
                    {
                        SpellCast.SebbySpellMain(Q, target);
                    }

                    if (!RyzeCharge2())
                    {
                        E.Cast(target);
                        W.Cast(target);
                    }
                    else
                    {
                        SpellCast.SebbySpellMain(Q, target);
                    }
                }
                else
                {
                    if (target.IsValidTarget(Q.Range) && Q.IsReady())
                    {
                        SpellCast.SebbySpellMain(Q, target);
                    }

                    if (target.IsValidTarget(W.Range) && W.IsReady())
                    {
                        W.Cast(target);
                    }

                    if (target.IsValidTarget(E.Range) && E.IsReady())
                    {
                        E.Cast(target);
                    }
                }

                #endregion

                break;
            }
        }
Ejemplo n.º 16
0
        private void OnUpdate(EventArgs args)
        {
            if (Player.IsDead || Player.IsRecalling())
            {
                return;
            }

            if (Player.IsChannelingImportantSpell() || (Game.Time - Rtime < 2.5) ||
                Player.HasBuff("malzaharrsound"))
            {
                Orbwalker.SetAttack(false);
                Orbwalker.SetMovement(false);
                return;
            }
            Orbwalker.SetAttack(true);
            Orbwalker.SetMovement(true);

            //new Activator().SeraphUsage();
            //new Activator().ProHexGLPUsage();
            if (E.IsReady() && Config.ksE.GetValue <bool>())
            {
                foreach (
                    var h in
                    HeroManager.Enemies.Where(
                        h =>
                        h.IsValidTarget(E.Range) &&
                        (h.Health < OktwCommon.GetKsDamage(h, E) + OktwCommon.GetEchoLudenDamage(h))))
                {
                    E.Cast(h);
                }
            }

            if (Q.IsReady() && Config.ksQ.GetValue <bool>())
            {
                foreach (
                    var h in
                    HeroManager.Enemies.Where(
                        h =>
                        h.IsValidTarget(Q.Range) &&
                        (h.Health < OktwCommon.GetKsDamage(h, Q) + OktwCommon.GetEchoLudenDamage(h))))
                {
                    SpellCast.SebbySpellMain(Q, h);
                }
            }

            // Combo
            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
            {
                if (Config.DontAAInCombo.GetValue <bool>())
                {
                    Orbwalker.SetAttack(false);
                }
                else
                {
                    Orbwalker.SetAttack(true);
                }

                Combo();
            }

            // Burst
            if (Config.oneshot.GetValue <KeyBind>().Active)
            {
                Oneshot();
            }

            // Lane
            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear)
            {
                Lane();
            }

            // AutoHarass
            AutoHarass();
        }