예제 #1
0
        public static void Draw(EventArgs args)
        {
            if (MenuHandler.Config.Item("drawCirclesforTest").GetValue <bool>())
            {
                JumpHandler.drawCircles();
            }
            var drawQ  = MenuHandler.Config.Item("DQ").GetValue <Circle>();
            var drawW  = MenuHandler.Config.Item("DW").GetValue <Circle>();
            var drawE  = MenuHandler.Config.Item("DE").GetValue <Circle>();
            var drawR  = MenuHandler.Config.Item("DR").GetValue <Circle>();
            var drawBC = MenuHandler.Config.Item("DBC").GetValue <Circle>();

            var PlayerPos = Drawing.WorldToScreen(ObjectManager.Player.Position);
            var RBool     = MenuHandler.Config.Item("forcedR").GetValue <KeyBind>().Active;

            Drawing.DrawText(PlayerPos.X - 70, PlayerPos.Y + 40, (RBool ? Color.GreenYellow : Color.Red), "Forced R: {0}", (RBool ? "Enabled" : "Disabled"));

            if (drawQ.Active)
            {
                Render.Circle.DrawCircle(ObjectManager.Player.Position, SpellHandler.QRange, drawQ.Color);
            }
            if (drawW.Active)
            {
                Render.Circle.DrawCircle(ObjectManager.Player.Position, SpellHandler.WRange, drawW.Color);
            }
            if (drawE.Active)
            {
                Render.Circle.DrawCircle(ObjectManager.Player.Position, SpellHandler._spells[SpellSlot.E].Range, drawE.Color);
            }
            if (drawR.Active)
            {
                Render.Circle.DrawCircle(ObjectManager.Player.Position, 900, drawR.Color);
            }
            if (drawBC.Active)
            {
                Render.Circle.DrawCircle(ObjectManager.Player.Position, 400 + SpellHandler._spells[SpellSlot.E].Range, drawR.Color);
            }

            if (!MenuHandler.Config.Item("debug").GetValue <bool>())
            {
                return;
            }
            Drawing.DrawText(100, 100 + (20 * 1), Color.White, "Can Q" + ": " + CheckHandler.CanQ);
            Drawing.DrawText(100, 100 + (20 * 2), Color.White, "Can W" + ": " + CheckHandler.CanW);
            Drawing.DrawText(100, 100 + (20 * 3), Color.White, "Can E" + ": " + CheckHandler.CanE);
            Drawing.DrawText(100, 100 + (20 * 4), Color.White, "Can R" + ": " + CheckHandler.CanR);
            Drawing.DrawText(100, 100 + (20 * 5), Color.White, "Can AA" + ": " + CheckHandler.CanAa);
            Drawing.DrawText(100, 100 + (20 * 6), Color.White, "Can Move" + ": " + CheckHandler.CanMove);
            Drawing.DrawText(100, 100 + (20 * 7), Color.White, "Can SR" + ": " + CheckHandler.CanSr);
            Drawing.DrawText(100, 100 + (20 * 8), Color.White, "Mid Q" + ": " + CheckHandler.MidQ);
            Drawing.DrawText(100, 100 + (20 * 9), Color.White, "Mid W" + ": " + CheckHandler.MidW);
            Drawing.DrawText(100, 100 + (20 * 10), Color.White, "Mid E" + ": " + CheckHandler.MidE);
            Drawing.DrawText(100, 100 + (20 * 11), Color.White, "Mid AA" + ": " + CheckHandler.MidAa);
            Drawing.DrawText(100, 100 + (20 * 12), Color.White, "TickCount" + ": " + Environment.TickCount);
            Drawing.DrawText(100, 100 + (20 * 13), Color.White, "lastQ" + ": " + CheckHandler.LastQ);
            Drawing.DrawText(100, 100 + (20 * 14), Color.White, "lastAA" + ": " + CheckHandler.LastAa);
            Drawing.DrawText(100, 100 + (20 * 15), Color.White, "lastE" + ": " + CheckHandler.LastE);
        }
예제 #2
0
 static void Game_OnGameStart(EventArgs args)
 {
     if (ObjectManager.Player.ChampionName != "Riven")
     {
         return;
     }
     MenuHandler.initMenu();
     CheckHandler.init();
     Player             = ObjectManager.Player;
     Game.OnGameUpdate += Game_OnGameUpdate;
     Game.OnGameUpdate += eventArgs => StateHandler.tick();
     Obj_AI_Hero.OnProcessSpellCast += CheckHandler.Obj_AI_Hero_OnProcessSpellCast;
     Obj_AI_Hero.OnProcessSpellCast += EvadeUtils.AutoE.autoE;
     Drawing.OnDraw += DrawHandler.Draw;
     JumpHandler.load();
 }
예제 #3
0
        private static void Game_OnGameStart()
        {
            if (ObjectManager.Player.ChampionName != "Riven")
            {
                return;
            }

            MenuHandler.InitMenu();
            CheckHandler.Init();
            Player         = ObjectManager.Player;
            Game.OnUpdate += Game_OnGameUpdate;
            Game.OnUpdate += eventArgs => StateHandler.Tick();
            Obj_AI_Base.OnProcessSpellCast += CheckHandler.Obj_AI_Hero_OnProcessSpellCast;
            Obj_AI_Base.OnProcessSpellCast += AutoE.autoE;
            Drawing.OnDraw += DrawHandler.Draw;
            JumpHandler.Load();
            SmoothMouse.start();
        }
예제 #4
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            if (MenuHandler.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.None && MenuHandler.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.Combo && MenuHandler.Config.Item("streamMouse").GetValue <bool>())
            {
                var random = new Random().Next(500);
                if (SpellHandler.LastMove + 200 + random < Environment.TickCount && CheckHandler.CanMove)
                {
                    SpellHandler.LastMove = Environment.TickCount;
                    SmoothMouse.doMouseClick();
                }
            }
            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 (MenuHandler.GetMenuBool("keepQAlive") && SH.Spells[SpellSlot.Q].IsReady() && CheckHandler.QCount >= 1 &&
                Environment.TickCount - CheckHandler.LastQ > 3650 && !Player.IsRecalling())
            {
                SH.CastQ();
            }
            if (config.Item("jungleCombo").GetValue <KeyBind>().Active)
            {
                StateHandler.JungleFarm();
            }
            if (config.Item("harass").GetValue <KeyBind>().Active)
            {
                StateHandler.Harass();
            }
            else if (config.Item("normalCombo").GetValue <KeyBind>().Active)
            {
                StateHandler.MainCombo();
            }

            else 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);
                SmoothMouse.queuePos.Clear();
                Utility.DelayAction.Add(
                    2000, () =>
                {
                    if (
                        !(config.Item("flee").GetValue <KeyBind>().Active ||
                          config.Item("lastHit").GetValue <KeyBind>().Active ||
                          config.Item("waveClear").GetValue <KeyBind>().Active ||
                          config.Item("burstCombo").GetValue <KeyBind>().Active ||
                          config.Item("normalCombo").GetValue <KeyBind>().Active ||
                          config.Item("jungleCombo").GetValue <KeyBind>().Active))
                    {
                        Queuer.Queue = new List <string>();
                    }
                });
            }
        }
예제 #5
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);
            }
        }
예제 #6
0
        public static void Draw(EventArgs args)
        {
            if (MenuHandler.Config.Item("DALL").GetValue <bool>())
            {
                return;
            }

            if (MenuHandler.Config.Item("drawCirclesforTest").GetValue <bool>())
            {
                JumpHandler.DrawCircles();
            }

            var drawQ  = MenuHandler.Config.Item("DQ").GetValue <Circle>();
            var drawW  = MenuHandler.Config.Item("DW").GetValue <Circle>();
            var drawE  = MenuHandler.Config.Item("DE").GetValue <Circle>();
            var drawR  = MenuHandler.Config.Item("DR").GetValue <Circle>();
            var drawBc = MenuHandler.Config.Item("DBC").GetValue <Circle>();

            var playerPos = Drawing.WorldToScreen(ObjectManager.Player.Position);
            var rBool     = MenuHandler.Config.Item("forcedR").GetValue <KeyBind>().Active;

            Drawing.DrawText(
                playerPos.X - 70, playerPos.Y + 40, (rBool ? Color.GreenYellow : Color.Red), "Forced R: {0}",
                (rBool ? "Enabled" : "Disabled"));

            if (drawQ.Active)
            {
                Render.Circle.DrawCircle(ObjectManager.Player.Position, SpellHandler.QRange, drawQ.Color);
            }

            if (drawW.Active)
            {
                Render.Circle.DrawCircle(ObjectManager.Player.Position, SpellHandler.WRange, drawW.Color);
            }

            if (drawE.Active)
            {
                Render.Circle.DrawCircle(
                    ObjectManager.Player.Position, SpellHandler.Spells[SpellSlot.E].Range, drawE.Color);
            }

            if (drawR.Active)
            {
                Render.Circle.DrawCircle(ObjectManager.Player.Position, 900, drawR.Color);
            }

            if (drawBc.Active)
            {
                Render.Circle.DrawCircle(
                    ObjectManager.Player.Position, 400 + SpellHandler.Spells[SpellSlot.E].Range, drawR.Color);
            }

            if (MenuHandler.Config.Item("DER").GetValue <Circle>().Active)
            {
                Render.Circle.DrawCircle(
                    ObjectManager.Player.Position, SpellHandler.Spells[SpellSlot.W].IsReady() ? SpellHandler.Spells[SpellSlot.E].Range + SpellHandler.Spells[SpellSlot.W].Range : SpellHandler.Spells[SpellSlot.E].Range, MenuHandler.Config.Item("DER").GetValue <Circle>().Color);
            }

            if (!MenuHandler.Config.Item("debug").GetValue <bool>())
            {
                return;
            }

            Drawing.DrawText(100, 100 + (20 * 1), Color.White, "Can Q" + ": " + CheckHandler.CanQ);
            Drawing.DrawText(100, 100 + (20 * 2), Color.White, "Can W" + ": " + CheckHandler.CanW);
            Drawing.DrawText(100, 100 + (20 * 3), Color.White, "Can E" + ": " + CheckHandler.CanE);
            Drawing.DrawText(100, 100 + (20 * 4), Color.White, "Can R" + ": " + CheckHandler.CanR);
            Drawing.DrawText(100, 100 + (20 * 5), Color.White, "Can AA" + ": " + CheckHandler.CanAa);
            Drawing.DrawText(100, 100 + (20 * 6), Color.White, "Can Move" + ": " + CheckHandler.CanMove);
            Drawing.DrawText(100, 100 + (20 * 7), Color.White, "Can SR" + ": " + CheckHandler.CanSr);
            Drawing.DrawText(100, 100 + (20 * 8), Color.White, "Mid Q" + ": " + CheckHandler.MidQ);
            Drawing.DrawText(100, 100 + (20 * 9), Color.White, "Mid W" + ": " + CheckHandler.MidW);
            Drawing.DrawText(100, 100 + (20 * 10), Color.White, "Mid E" + ": " + CheckHandler.MidE);
            Drawing.DrawText(100, 100 + (20 * 11), Color.White, "Mid AA" + ": " + CheckHandler.MidAa);
            Drawing.DrawText(100, 100 + (20 * 12), Color.White, "TickCount" + ": " + Environment.TickCount);
            Drawing.DrawText(100, 100 + (20 * 13), Color.White, "lastQ" + ": " + CheckHandler.LastQ);
            Drawing.DrawText(100, 100 + (20 * 14), Color.White, "lastAA" + ": " + CheckHandler.LastAa);
            Drawing.DrawText(100, 100 + (20 * 15), Color.White, "lastE" + ": " + CheckHandler.LastE);
            Drawing.DrawText(100, 100 + (20 * 17), Color.White, "windingup" + ": " + ObjectManager.Player.IsWindingUp);

            var text2 = Queuer.Queue.Aggregate(string.Empty, (current, q) => current + q + "->");

            Drawing.DrawText(100, 100 + (20 * 16), Color.White, "queue" + ": " + text2);
        }