示例#1
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);
            }
        }
示例#2
0
        private void GameOnUpdate(EventArgs args)
        {
            EvolvedSpells();
            if (Player.IsDead || Player.IsRecalling())
            {
                return;
            }

            Orbwalker.SetAttack(!IsInvisible());
            KillStealCheck();
            if (Config.Item("AssassinateTarget").GetValue <KeyBind>().Active)
            {
                var target = AssassinManager();
                if ((target == null) || !target.IsValidTarget())
                {
                    Orbwalking.MoveTo(Game.CursorPos);
                    return;
                }
                if (target.IsValidTarget(E.Range))
                {
                    Orbwalking.Orbwalk(target, Game.CursorPos);
                    AssassinateProgram(target);
                }
            }
            switch (Orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.LaneClear:
                JungleClear();
                LaneClear();
                break;

            case Orbwalking.OrbwalkingMode.LastHit:
                LastHit();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                HarassMode();
                break;
            }
        }
示例#3
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);
                        }
                    }
                }
            }
        }
示例#4
0
        private static void OnUpdate(EventArgs args)
        {
            if (Player.IsDead || Player.IsRecalling())
            {
                return;
            }
            if (Menu.Item("UseSkin").GetValue <bool>())
            {
                Player.SetSkin(Player.CharData.BaseSkinName, Menu.Item("SkinID").GetValue <Slider>().Value);
            }
            // Checks
            RManaCost();
            // Combo
            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
            {
                Combo();
            }
            //Lane
            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear) // LaneClear mode broken? kappa
            {
                JungleClear();
                LaneClear();
            }
            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed)
            {
                AABlock();
                Harass();
            }
            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.None)
            {
                Orbwalker.SetMovement(true);
                Orbwalker.SetAttack(true);
            }
            if (Menu.Item("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())
                        {
                            SebbySpell(Q, t);
                        }
                    }
                    else
                    {
                        if (Q.IsReady() && E.IsReady())
                        {
                            E.CastOnUnit(t);
                        }
                        else if (Q.IsReady() && W.IsReady())
                        {
                            SebbySpell(W, t);
                        }
                    }
                }
            }

            //AutoLeveler
            if (Menu.Item("AutoLevelUp").GetValue <bool>())
            {
                lvl1 = Menu.Item("AutoLevelUp1").GetValue <StringList>().SelectedIndex;
                lvl2 = Menu.Item("AutoLevelUp2").GetValue <StringList>().SelectedIndex;
                lvl3 = Menu.Item("AutoLevelUp3").GetValue <StringList>().SelectedIndex;
                lvl4 = Menu.Item("AutoLevelUp4").GetValue <StringList>().SelectedIndex;
            }
        }
示例#5
0
        //Burst
        public static 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;
            }

            #region SebbyPrediction

            //SebbyPrediction
            var PredSkillShotType = SebbyLib.Prediction.SkillshotType.SkillshotCircle;
            var Aoe10             = true;

            var predictioninput = new PredictionInput
            {
                Aoe       = Aoe10,
                Collision = Q.Collision,
                Speed     = Q.Speed,
                Delay     = Q.Delay,
                Range     = Q.Range,
                From      = Player.ServerPosition,
                Radius    = Q.Width,
                Unit      = m,
                Type      = PredSkillShotType
            };
            //SebbyPrediction END

            #endregion

            // Input = 'var predictioninput'
            var predpos = Prediction.GetPrediction(predictioninput);
            // var pred = Q.GetSPrediction(m);
            if (Q.IsReady() && Q.IsInRange(m))
            {
                if (m.CanMove && (predpos.Hitchance >= HitChance.High))
                {
                    Q.Cast(predpos.CastPosition);
                }
                else if (!m.CanMove)
                {
                    Q.Cast(m.Position);
                }
            }
            if (E.IsReady() && E.IsInRange(m))
            {
                E.CastOnUnit(m);
            }
            if (W.IsReady())
            {
                W.Cast(m);
            }
            Player.Spellbook.CastSpell(igniteSlot, m);
            if (R.IsReady() && !E.IsReady() && !W.IsReady() && R.IsInRange(m))
            {
                R.CastOnUnit(m);
            }
        }