private static void OnGameLoad(EventArgs args) { _loaded = (Bot.Level == 1) ? Environment.TickCount:Environment.TickCount - 140000; _stepTime = Environment.TickCount; var map = Utility.Map.GetMap(); if (map != null && map.Type == Utility.Map.MapType.SummonersRift) { if (Bot.Team == GameObjectTeam.Order) { _chosen = Blue + Rand.Next(-76, 76); _safe = Purple + Rand.Next(-67, 67); BotLanePos.X = 11376 + Rand.Next(-50, 50); BotLanePos.Y = 1062 + Rand.Next(-50, 50); TopLanePos.X = 1302 + Rand.Next(-50, 50); TopLanePos.Y = 10249 + Rand.Next(-50, 50); } if (Bot.Team == GameObjectTeam.Chaos) { _chosen = Purple + Rand.Next(-67, 67); _safe = Blue + Rand.Next(-76, 76); BotLanePos.X = 13496 + Rand.Next(-50, 50); BotLanePos.Y = 4218 + Rand.Next(-50, 50); TopLanePos.X = 4849 + Rand.Next(-50, 50); TopLanePos.Y = 13535 + Rand.Next(-50, 50); } } else { _byPassLoadedCheck = true; if (Bot.Team == GameObjectTeam.Order) { _chosen = Blue; _safe = Purple; } if (Bot.Team == GameObjectTeam.Chaos) { _chosen = Purple; _safe = Blue; } } AutoLevel levelUpSpells = new AutoLevel(TreesAutoLevel.GetSequence()); AutoLevel.Enabled(true); FileHandler.DoChecks(); MetaHandler.LoadObjects(); }
private static void OnGameLoad(EventArgs args) { _loaded = (Bot.Level == 1) ? Environment.TickCount:Environment.TickCount - 140000; _stepTime = Environment.TickCount; var map = Utility.Map.GetMap(); if (map.Type == Utility.Map.MapType.SummonersRift) { //Initialize var condition = Bot.Team == GameObjectTeam.Order; _chosen = condition ? Blue : Purple; _safe = condition ? Purple : Blue; BotLanePos = condition ? new Vector2(11376, 1062).To3D() : new Vector2(13496, 4218).To3D(); TopLanePos = condition ? new Vector2(1302, 10249).To3D() : new Vector2(4849, 13535).To3D(); //Randomize: _chosen += Rand.Next(-100, 100); _safe += Rand.Next(-100, 100); TopLanePos = TopLanePos.Randomize(-150, 150); BotLanePos = BotLanePos.Randomize(-150, 150); } else { _byPassLoadedCheck = true; var condition = Bot.Team == GameObjectTeam.Order; _chosen = condition ? Blue : Purple; _safe = condition ? Purple : Blue; //Randomize: _chosen += Rand.Next(-100, 100); _safe += Rand.Next(-100, 100); } new AutoLevel(TreesAutoLevel.GetSequence().Select(l => l - 1)); AutoLevel.Enable(); MetaHandler.LoadObjects(); }