Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
        public static void StarCombo()
        {
            var target = TargetSelector.GetTarget(1200, TargetSelector.DamageType.Physical);

            if (target == null)
            {
                Orbwalking.Orbwalk(null, Game.CursorPos);
                return;
            }

            Orbwalking.Orbwalk(Orbwalking.InAutoAttackRange(target) ? target : null, Game.CursorPos);

            CheckHandler.UseItems(target);

            if (!target.IsValidTarget())
            {
                return;
            }

            if (target.HasBuffOfType(BuffType.Knockback) && target.Distance(Player) > 300 && target.HasQBuff() &&
                !CheckHandler.QState)
            {
                CheckHandler._spells[SpellSlot.Q].Cast();
                return;
            }

            if (!CheckHandler._spells[SpellSlot.R].IsReady())
            {
                return;
            }

            if (CheckHandler._spells[SpellSlot.Q].IsReady() && CheckHandler.QState)
            {
                CastQ(target, Program.Config.Item("smiteQ").GetValue <bool>());
                return;
            }
            if (target.HasQBuff() && !target.HasBuffOfType(BuffType.Knockback))
            {
                if (target.Distance(Player) < CheckHandler._spells[SpellSlot.R].Range &&
                    CheckHandler._spells[SpellSlot.R].IsReady())
                {
                    CheckHandler._spells[SpellSlot.R].CastOnUnit(target);
                    return;
                }
                if (target.Distance(Player) < 600 && CheckHandler.WState)
                {
                    WardjumpHandler.Jump(
                        Player.Position.Extend(target.Position, Player.Position.Distance(target.Position) - 50));
                }
            }
        }
Ejemplo n.º 3
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;
            }
        }