static void Game_OnGameUpdate(EventArgs args)
        {
            CheckHandler.Checks();
            var Config = MenuHandler.Config;

            if (MenuHandler.getMenuBool("keepQAlive") && SH._spells[SpellSlot.Q].IsReady() && CheckHandler.QCount >= 1 && Environment.TickCount - CheckHandler.LastQ > 3650 && !Player.IsRecalling())
            {
                SH.CastQ();
            }

            if (Config.Item("normalCombo").GetValue <KeyBind>().Active)
            {
                StateHandler.mainCombo();
            }
            else
            {
                StateHandler.startedR2Combo.state = false;
                StateHandler.startedRCombo.state  = false;
            }
            if (Config.Item("burstCombo").GetValue <KeyBind>().Active)
            {
                StateHandler.burstCombo();
            }
            if (Config.Item("jungleCombo").GetValue <KeyBind>().Active)
            {
                StateHandler.JungleFarm();
            }
            if (Config.Item("waveClear").GetValue <KeyBind>().Active)
            {
                StateHandler.laneclear();
            }
            if (Config.Item("lastHit").GetValue <KeyBind>().Active)
            {
                StateHandler.lastHit();
            }
            if (Config.Item("flee").GetValue <KeyBind>().Active)
            {
                StateHandler.flee();
            }
        }
Exemple #2
0
        static void Game_OnGameUpdate(EventArgs args)
        {
            if (Queuer.Queue.Count > 0)
            {
                Queuer.doQueue();
            }
            if (MenuHandler.Config.Item("logPos").GetValue <bool>())
            {
                JumpHandler.addPos();
                MenuHandler.Config.Item("logPos").SetValue(false);
            }
            if (MenuHandler.Config.Item("printPos").GetValue <bool>())
            {
                JumpHandler.printToConsole();
                MenuHandler.Config.Item("printPos").SetValue(false);
            }
            if (MenuHandler.Config.Item("clearCurrent").GetValue <bool>())
            {
                JumpHandler.clearCurrent();
                MenuHandler.Config.Item("clearCurrent").SetValue(false);
            }
            if (MenuHandler.Config.Item("clearPrevious").GetValue <bool>())
            {
                JumpHandler.clearPrevious();
                MenuHandler.Config.Item("clearPrevious").SetValue(false);
            }

            CheckHandler.Checks();
            var Config = MenuHandler.Config;

            if (Config.Item("jungleCombo").GetValue <KeyBind>().Active)
            {
                StateHandler.JungleFarm();
            }
            if (MenuHandler.getMenuBool("keepQAlive") && SH._spells[SpellSlot.Q].IsReady() && CheckHandler.QCount >= 1 && Environment.TickCount - CheckHandler.LastQ > 3650 && !Player.IsRecalling())
            {
                SH.CastQ();
            }

            if (Config.Item("normalCombo").GetValue <KeyBind>().Active)
            {
                StateHandler.mainCombo();
            }
            if (Config.Item("burstCombo").GetValue <KeyBind>().Active)
            {
                StateHandler.burstCombo();
            }
            else if (Config.Item("waveClear").GetValue <KeyBind>().Active)
            {
                StateHandler.laneclear();
            }
            else if (Config.Item("lastHit").GetValue <KeyBind>().Active)
            {
                StateHandler.lastHit();
            }
            else if (Config.Item("flee").GetValue <KeyBind>().Active)
            {
                StateHandler.flee();
            }
            else
            {
                MenuHandler.Orbwalker.SetAttack(true);
                MenuHandler.Orbwalker.SetMovement(true);
            }
        }