static AutoWalker() { Chat.Print("Game Mode: " + BrutalExtensions.GetGameMode()); newPF = MainMenu.GetMenu("AB").Get <CheckBox>("newPF").CurrentValue; NavGraph = new NavGraph(Path.Combine(SandboxConfig.DataDirectory, "AutoBuddy")); PfNodes = new List <Vector3>(); color = new ColorBGRA(79, 219, 50, 255); MyNexus = ObjectManager.Get <Obj_HQ>().First(n => n.IsAlly); EneMyNexus = ObjectManager.Get <Obj_HQ>().First(n => n.IsEnemy); EnemyLazer = ObjectManager.Get <Obj_AI_Turret>().FirstOrDefault(tur => !tur.IsAlly && tur.GetLane() == Lane.Spawn); p = ObjectManager.Player; initSummonerSpells(); Target = ObjectManager.Player.Position; Orbwalker.DisableMovement = false; Game.OnUpdate += Game_OnUpdate; if (!MainMenu.GetMenu("AB").Get <CheckBox>("disableAutoBuddy").CurrentValue) { Orbwalker.OverrideOrbwalkPosition = () => Target; } if (Orbwalker.HoldRadius > 130 || Orbwalker.HoldRadius < 80) { Chat.Print("=================WARNING=================", Color.Red); Chat.Print("Your hold radius value in orbwalker isn't optimal for AutoBuddy", Color.Aqua); Chat.Print("Please set hold radius through menu=>Orbwalker"); Chat.Print("Recommended values: Hold radius: 80-130, Delay between movements: 100-250"); } if (MainMenu.GetMenu("AB").Get <CheckBox>("debuginfo").CurrentValue) { Drawing.OnDraw += Drawing_OnDraw; } updateItems(); oldOrbwalk(); Game.OnTick += OnTick; Game.OnTick += GameEndHandler; }
//For Kalista private static void Start() { Chat.Print("Autobuddy: Started!"); RandGen.Start(); bool generic = false; switch (ObjectManager.Player.Hero) { case Champion.Ashe: myChamp = new Ashe(); break; case Champion.Caitlyn: myChamp = new Caitlyn(); break; default: generic = true; myChamp = new Generic(); break; case Champion.Ezreal: myChamp = new Ezreal(); break; case Champion.Cassiopeia: myChamp = new Cassiopeia(); break; case Champion.Ryze: myChamp = new Ryze(); break; case Champion.Soraka: myChamp = new Soraka(); break; case Champion.Kayle: myChamp = new Kayle(); break; case Champion.Tristana: myChamp = new Tristana(); break; case Champion.Sivir: myChamp = new Sivir(); break; case Champion.Ahri: myChamp = new Ahri(); break; case Champion.Anivia: myChamp = new Anivia(); break; case Champion.Annie: myChamp = new Annie(); break; case Champion.Corki: myChamp = new Corki(); break; case Champion.Brand: myChamp = new Brand(); break; case Champion.Azir: myChamp = new Azir(); break; case Champion.Xerath: myChamp = new Xerath(); break; case Champion.Morgana: myChamp = new Morgana(); break; case Champion.Draven: myChamp = new Draven(); break; case Champion.Twitch: myChamp = new Twitch(); break; case Champion.Kalista: myChamp = new Kalista(); break; case Champion.Velkoz: myChamp = new Velkoz(); break; case Champion.Leblanc: myChamp = new Leblanc(); break; case Champion.Jinx: myChamp = new Jinx(); break; case Champion.Katarina: myChamp = new Katarina(); break; case Champion.Nidalee: myChamp = new Nidalee(); break; } CustomLvlSeq cl = new CustomLvlSeq(menu, AutoWalker.p, Path.Combine(SandboxConfig.DataDirectory , "AutoBuddy\\Skills")); Logic = new LogicSelector(myChamp, menu); new Disrespekt(); Telemetry.SendEvent("GameStart", new Dictionary <string, string>() { { "GameChamp", AutoWalker.p.ChampionName }, { "GameType", BrutalExtensions.GetGameType() }, { "GameRegion", Game.Region }, { "GameID", "" + AutoWalker.GameID }, }); }
private static void Start() { RandGen.Start(); bool generic = false; switch (ObjectManager.Player.Hero) { case Champion.Ashe: myChamp = new Ashe(); break; case Champion.Caitlyn: myChamp = new Caitlyn(); break; default: generic = true; myChamp = new Generic(); break; case Champion.Ezreal: myChamp = new Ezreal(); break; case Champion.Cassiopeia: myChamp = new Cassiopeia(); break; } CustomLvlSeq cl = new CustomLvlSeq(menu, AutoWalker.p, Path.Combine(Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData), "AutoBuddy\\Skills")); if (!generic) { BuildCreator bc = new BuildCreator(menu, Path.Combine(Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData), "AutoBuddy\\Builds"), myChamp.ShopSequence); } else { myChamp = new Generic(); if (MainMenu.GetMenu("AB_" + ObjectManager.Player.ChampionName) != null && MainMenu.GetMenu("AB_" + ObjectManager.Player.ChampionName).Get <Label>("shopSequence") != null) { Chat.Print("Autobuddy: Loaded shop plugin for " + ObjectManager.Player.ChampionName); BuildCreator bc = new BuildCreator(menu, Path.Combine(Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData), "AutoBuddy\\Builds"), MainMenu.GetMenu("AB_" + ObjectManager.Player.ChampionName) .Get <Label>("shopSequence") .DisplayName); } else { BuildCreator bc = new BuildCreator(menu, Path.Combine(Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData), "AutoBuddy\\Builds"), myChamp.ShopSequence); } } Logic = new LogicSelector(myChamp, menu); new Disrespekt(); Telemetry.SendEvent("GameStart", new Dictionary <string, string>() { { "GameChamp", AutoWalker.p.ChampionName }, { "GameType", BrutalExtensions.GetGameType() }, { "GameRegion", Game.Region }, { "GameID", "" + AutoWalker.GameID }, }); }