Beispiel #1
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            StateHandler.DrawProjection();
            var lowFps     = Config.Item("LowFPS").GetValue <bool>();
            var lowFpsMode = Config.Item("LowFPSMode").GetValue <StringList>().SelectedIndex + 1;

            if (Config.Item("DQ").GetValue <Circle>().Active)
            {
                Render.Circle.DrawCircle(
                    ObjectManager.Player.Position, CheckHandler._spells[SpellSlot.Q].Range,
                    Config.Item("DQ").GetValue <Circle>().Color, lowFps ? lowFpsMode : 5);
            }
            if (Config.Item("DW").GetValue <Circle>().Active)
            {
                Render.Circle.DrawCircle(
                    ObjectManager.Player.Position, CheckHandler._spells[SpellSlot.W].Range,
                    Config.Item("DW").GetValue <Circle>().Color, lowFps ? lowFpsMode : 5);
            }
            if (Config.Item("DE").GetValue <Circle>().Active)
            {
                Render.Circle.DrawCircle(
                    ObjectManager.Player.Position, CheckHandler._spells[SpellSlot.E].Range,
                    Config.Item("DE").GetValue <Circle>().Color, lowFps ? lowFpsMode : 5);
            }
            if (Config.Item("DR").GetValue <Circle>().Active)
            {
                Render.Circle.DrawCircle(
                    ObjectManager.Player.Position, CheckHandler._spells[SpellSlot.R].Range,
                    Config.Item("DR").GetValue <Circle>().Color, lowFps ? lowFpsMode : 5);
            }
            //Render.Circle.DrawCircle(StateHandler.GetFirstCollisionMinion(ObjectManager.Player, TargetSelector.GetTarget(1200f, TargetSelector.DamageType.Physical)).Position, 100f, Color.OrangeRed);
            WardjumpHandler.Draw();
            InsecHandler.Draw();
        }
Beispiel #2
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            //StateHandler.SuperDuperUlt();

            if (CheckHandler.LastSpell + 3000 <= Environment.TickCount)
            {
                CheckHandler.PassiveStacks = 0;
            }
            if (Config.Item("starCombo").GetValue <KeyBind>().Active)
            {
                StateHandler.StarCombo();
                return;
            }
            if (Config.Item("insec").GetValue <KeyBind>().Active)
            {
                InsecHandler.DoInsec();
                return;
            }
            InsecHandler.FlashPos = new Vector3();
            InsecHandler.FlashR   = false;

            if (Config.Item("Wardjump").GetValue <KeyBind>().Active)
            {
                WardjumpHandler.DrawEnabled = Config.Item("DWJ").GetValue <bool>();
                WardjumpHandler.Jump(Game.CursorPos, Config.Item("alwaysJumpMaxRange").GetValue <bool>(), true);
                return;
            }
            WardjumpHandler.DrawEnabled = false;

            switch (_orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                StateHandler.Combo();
                return;

            case Orbwalking.OrbwalkingMode.LaneClear:
                StateHandler.JungleClear();
                return;

            case Orbwalking.OrbwalkingMode.Mixed:
                StateHandler.Harass();
                return;
            }
        }