private static void Init() { try { if (Orbwalker.MovementDelay < 200) { Orbwalker.MovementDelay += new Random().Next(200, 400); } if (Setup.CurrentChampionBuild.BuildData.Length > 0) { var i = 0; foreach (var item in Setup.CurrentChampionBuild.BuildData) { i++; BuildMenu.AddLabel(i + " - " + item); } } if (EnableCustomPlugins) { loadPlugin(); } // Sends Start / End Msg Chatting.Init(); // Initialize Bot Functions. Brain.Init(); // Inits Activator if (EnableActivator) { Plugins.Activator.Load.Init(); } Chat.Print("AramBuddy Loaded !"); Chat.Print("AramBuddy Version: " + version); } catch (Exception ex) { Logger.Send("Program Error At Init", ex, Logger.LogLevel.Error); } }
private static void Init() { try { if (Orbwalker.MovementDelay < 200) { Orbwalker.MovementDelay = new Random().Next(200, 500) + Game.Ping; } MenuIni = MainMenu.AddMenu("AramBuddy", "AramBuddy"); var build = MenuIni.AddSubMenu("Current Build"); SpellsMenu = MenuIni.AddSubMenu("Spells"); MenuIni.AddGroupLabel("AramBuddy Version: " + version); MenuIni.AddGroupLabel("AramBuddy Settings"); var debug = MenuIni.CreateCheckBox("debug", "Enable Debugging Mode"); var activator = MenuIni.CreateCheckBox("activator", "Enable Built-In Activator"); var DisableSpells = MenuIni.CreateCheckBox("DisableSpells", "Disable Built-in Casting Logic", false); var quit = MenuIni.CreateCheckBox("quit", "Quit On Game End"); var stealhr = MenuIni.CreateCheckBox("stealhr", "Dont Steal Health Relics From Allies", false); var chat = MenuIni.CreateCheckBox("chat", "Send Start / End msg In-Game Chat", false); var texture = MenuIni.CreateCheckBox("texture", "Disable In-Game Texture (Less RAM/CPU)", false); MenuIni.AddSeparator(0); var Safe = MenuIni.CreateSlider("Safe", "Safe Slider (Recommended 1250)", 1250, 0, 2500); MenuIni.AddLabel("More Safe Value = more defensive playstyle"); MenuIni.AddSeparator(0); var HRHP = MenuIni.CreateSlider("HRHP", "Health Percent To Pick Health Relics (Recommended 75%)", 75); var HRMP = MenuIni.CreateSlider("HRMP", "Mana Percent To Pick Health Relics (Recommended 15%)", 15); MenuIni.AddSeparator(0); var Reset = MenuIni.CreateCheckBox("reset", "Reset All Settings To Default", false); Reset.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args) { if (args.NewValue) { Reset.CurrentValue = false; debug.CurrentValue = true; activator.CurrentValue = true; DisableSpells.CurrentValue = false; quit.CurrentValue = true; stealhr.CurrentValue = false; chat.CurrentValue = true; texture.CurrentValue = false; Safe.CurrentValue = 1250; HRHP.CurrentValue = 75; HRMP.CurrentValue = 15; } }; SpellsMenu.AddGroupLabel("SummonerSpells"); SpellsMenu.Add("Heal", new CheckBox("Use Heal")); SpellsMenu.Add("Barrier", new CheckBox("Use Barrier")); SpellsMenu.Add("Clarity", new CheckBox("Use Clarity")); SpellsMenu.Add("Ghost", new CheckBox("Use Ghost")); SpellsMenu.Add("Flash", new CheckBox("Use Flash")); SpellsMenu.Add("Cleanse", new CheckBox("Use Cleanse")); if (AutoShop.Setup.CurrentChampionBuild.BuildData.Length > 0) { var i = 0; foreach (var item in AutoShop.Setup.CurrentChampionBuild.BuildData) { i++; build.AddLabel(i + " - " + item); } } if (!DisableSpellsCasting) { try { if ((Base)Activator.CreateInstance(null, "AramBuddy.Plugins.Champions." + Player.Instance.Hero + "." + Player.Instance.Hero).Unwrap() != null) { CustomChamp = true; Logger.Send("Loaded Custom Champion " + Player.Instance.Hero, Logger.LogLevel.Info); } } catch (Exception) { CustomChamp = false; Logger.Send("There Is No Custom Plugin For " + Player.Instance.Hero, Logger.LogLevel.Warn); } } // Sends Start / End Msg Chatting.Init(); // Initialize Bot Functions. Brain.Init(); // Inits Activator if (EnableActivator) { Plugins.Activator.Load.Init(); } if (!File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\EloBuddy\\AramBuddy\\temp\\DisableTexture.dat")) { if (DisableTexture) { File.Create(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\EloBuddy\\AramBuddy\\temp\\DisableTexture.dat"); } } else { if (!DisableTexture) { File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\EloBuddy\\AramBuddy\\temp\\DisableTexture.dat"); } } Drawing.OnEndScene += Drawing_OnEndScene; Chat.Print("AramBuddy Loaded !"); Chat.Print("AramBuddy Version: " + version); } catch (Exception ex) { Logger.Send("Program Error At Init", ex, Logger.LogLevel.Error); } }
private static void Init() { try { if (Orbwalker.MovementDelay < 200) { Orbwalker.MovementDelay += new Random().Next(200, 375) + Game.Ping; } if (AutoShop.Setup.CurrentChampionBuild.BuildData.Length > 0) { var i = 0; foreach (var item in AutoShop.Setup.CurrentChampionBuild.BuildData) { i++; BuildMenu.AddLabel(i + " - " + item); } } if (EnableCustomPlugins) { try { if ((Base)Activator.CreateInstance(null, "AramBuddy.Plugins.Champions." + Player.Instance.Hero + "." + Player.Instance.Hero).Unwrap() != null) { CustomChamp = true; Logger.Send("Loaded Custom Champion " + Player.Instance.Hero); } } catch (Exception) { CustomChamp = false; Logger.Send("There Is No Custom Plugin For " + Player.Instance.Hero, Logger.LogLevel.Warn); } } // Sends Start / End Msg Chatting.Init(); // Initialize Bot Functions. Brain.Init(); // Inits Activator if (EnableActivator) { Plugins.Activator.Load.Init(); } if (DisableTexture) { Misc.CreateAramBuddyFile("DisableTexture.dat", Misc.AramBuddyDirectories.Temp); } else { File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\EloBuddy\\AramBuddy\\temp\\DisableTexture.dat"); } Drawing.OnEndScene += Drawing_OnEndScene; Chat.Print("AramBuddy Loaded !"); Chat.Print("AramBuddy Version: " + version); } catch (Exception ex) { Logger.Send("Program Error At Init", ex, Logger.LogLevel.Error); } }