示例#1
0
        private static void Game_OnUpdate(EventArgs args)
        {
            if (Player.IsDead || Player.IsRecalling())
            {
                return;
            }

            if (Menu.Item("StackTear").GetValue <bool>())
            {
                StackItems();
            }
            SeraphUsage();
            ItemsChecks();
            KSCheck();
            PotionsCheck();
            if (Menu.Item("UseSkin").GetValue <bool>())
            {
                Player.SetSkin(Player.CharData.BaseSkinName, Menu.Item("SkinID").GetValue <Slider>().Value);
            }
            switch (Orbwalker.ActiveMode)
            {
            case SebbyLib.Orbwalking.OrbwalkingMode.Combo:
                AABlock();
                Combo();
                ComboPlusCheck();         // Beta - Will be improved
                break;

            case SebbyLib.Orbwalking.OrbwalkingMode.Mixed:
                Harass();
                break;

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

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

            case SebbyLib.Orbwalking.OrbwalkingMode.None:
                Orbwalker.SetMovement(true);
                Orbwalker.SetAttack(true);
                break;
            }
            if (Menu.Item("UseR").GetValue <KeyBind>().Active)
            {
                Orbwalker.SetMovement(false);
                Orbwalker.SetAttack(false);
                REscape();
            }
            //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;
            }
        }
示例#2
0
        private static 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;
            }
            else
            {
                Orbwalker.SetAttack(true);
                Orbwalker.SetMovement(true);
            }
            if (E.IsReady() && Menu.Item("ksE").GetValue <bool>())
            {
                foreach (var h in HeroManager.Enemies.Where(h => h.IsValidTarget(E.Range) && h.Health < SebbyLib.OktwCommon.GetKsDamage(h, E) + SebbyLib.OktwCommon.GetEchoLudenDamage(h)))
                {
                    E.Cast(h);
                }
            }
            if (Q.IsReady() && Menu.Item("ksQ").GetValue <bool>())
            {
                foreach (var h in HeroManager.Enemies.Where(h => h.IsValidTarget(Q.Range) && h.Health < SebbyLib.OktwCommon.GetKsDamage(h, Q) + SebbyLib.OktwCommon.GetEchoLudenDamage(h)))
                {
                    #region SebbyPrediction
                    //SebbyPrediction
                    SebbyLib.Prediction.SkillshotType PredSkillShotType = SebbyLib.Prediction.SkillshotType.SkillshotCircle;
                    bool Aoe10 = true;

                    var predictioninput = new SebbyLib.Prediction.PredictionInput
                    {
                        Aoe       = Aoe10,
                        Collision = Q.Collision,
                        Speed     = Q.Speed,
                        Delay     = Q.Delay,
                        Range     = Q.Range,
                        From      = Player.ServerPosition,
                        Radius    = Q.Width,
                        Unit      = h,
                        Type      = PredSkillShotType
                    };
                    //SebbyPrediction END
                    #endregion
                    // Input = 'var predictioninput'
                    var predpos = SebbyLib.Prediction.Prediction.GetPrediction(predictioninput);
                    if (predpos.Hitchance >= SebbyLib.Prediction.HitChance.High)
                    {
                        Q.Cast(predpos.CastPosition);
                    }
                }
            }
            //Combo
            if (Orbwalker.ActiveMode == SebbyLib.Orbwalking.OrbwalkingMode.Combo)
            {
                if (Menu.Item("DontAAInCombo").GetValue <bool>())
                {
                    Orbwalker.SetAttack(false);
                }
                else
                {
                    Orbwalker.SetAttack(true);
                }
                Combo();
            }
            //Burst
            if (Menu.Item("oneshot").GetValue <KeyBind>().Active)
            {
                Oneshot();
            }
            //Lane
            if (Orbwalker.ActiveMode == SebbyLib.Orbwalking.OrbwalkingMode.LaneClear)
            {
                Lane();
            }
            //AutoHarass
            AutoHarass();
        }
示例#3
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 == SebbyLib.Orbwalking.OrbwalkingMode.Combo)
            {
                Combo();
            }
            //Lane
            if (Orbwalker.ActiveMode == SebbyLib.Orbwalking.OrbwalkingMode.LaneClear) // LaneClear mode broken? kappa
            {
                LaneClear();
            }
            if (Orbwalker.ActiveMode == SebbyLib.Orbwalking.OrbwalkingMode.Mixed)
            {
                AABlock();
                Harass();
            }
            if (Orbwalker.ActiveMode == SebbyLib.Orbwalking.OrbwalkingMode.None)
            {
                Orbwalker.SetMovement(true);
                Orbwalker.SetAttack(true);
            }
            if (Menu.Item("StunTargetKey").GetValue <KeyBind>().Active)
            {
                SebbyLib.Orbwalking.MoveTo(Game.CursorPos);
                if (Orbwalker.ActiveMode == SebbyLib.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;
            }
        }