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; Drawing.OnDraw += DrawHandler.Draw; }
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(); }
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(); } }
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>(); } }); } }
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); } }