Esempio n. 1
0
        private void GameOnUpdate(EventArgs args)
        {
            EvolvedSpells();
            if (Player.IsDead || Player.IsRecalling())
            {
                return;
            }

            Orbwalker.SetAttack(!IsInvisible());
            KillStealCheck();
            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;
            }
        }
Esempio n. 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;
            }
        }
Esempio n. 3
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;
            }
            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 < OktwCommon.GetKsDamage(h, E) + 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 < OktwCommon.GetKsDamage(h, Q) + OktwCommon.GetEchoLudenDamage(h))))
                {
                    SebbySpell(Q, h);
                }
            }
            //Combo
            if (Orbwalker.ActiveMode == 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 == Orbwalking.OrbwalkingMode.LaneClear)
            {
                JungleClear();
                Lane();
            }
            //AutoHarass
            if (Menu.Item("autoharassenabled").GetValue <bool>())
            {
                AutoHarass();
            }
        }
Esempio n. 4
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;
            }
            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 < OktwCommon.GetKsDamage(h, E) + 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 < OktwCommon.GetKsDamage(h, Q) + OktwCommon.GetEchoLudenDamage(h))))
                {
                    #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      = h,
                        Type      = PredSkillShotType
                    };
                    //SebbyPrediction END

                    #endregion

                    // Input = 'var predictioninput'
                    var predpos = Prediction.GetPrediction(predictioninput);
                    if (predpos.Hitchance >= HitChance.High)
                    {
                        Q.Cast(predpos.CastPosition);
                    }
                }
            }
            //Combo
            if (Orbwalker.ActiveMode == 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 == Orbwalking.OrbwalkingMode.LaneClear)
            {
                JungleClear();
                Lane();
            }
            //AutoHarass
            if (Menu.Item("autoharassenabled").GetValue <bool>())
            {
                AutoHarass();
            }
        }