public static void Flee() { Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos); var random = new Random().Next(500); if (SpellHandler.LastMove + 200 + random < Environment.TickCount && MenuHandler.Config.Item("streamMouse").GetValue <bool>()) { SpellHandler.LastMove = Environment.TickCount; SmoothMouse.doMouseClick(); } if (SH.Spells[SpellSlot.E].IsReady() && CH.LastQ + 250 < Environment.TickCount && MenuHandler.GetMenuBool("EFlee")) { SH.CastE(Game.CursorPos); } if ((!SH.Spells[SpellSlot.Q].IsReady() || CH.LastE + 250 >= Environment.TickCount || !MenuHandler.GetMenuBool("QFlee"))) { return; } if ((MenuHandler.Config.Item("Ward Mechanic").GetValue <bool>() && CheckHandler.QCount == 2)) { return; } SH.CastQ(); }
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>(); } }); } }