public static void Init() { Map = Utility.Map.GetMap().Type; Config = new Menu("AutoSharp: " + ObjectManager.Player.ChampionName, "autosharp." + ObjectManager.Player.ChampionName, true); Config.AddItem(new MenuItem("autosharp.mode", "Mode").SetValue(new StringList(new[] { "AUTO", "SBTW" }))).ValueChanged += (sender, args) => { if (Config.Item("autosharp.mode").GetValue <StringList>().SelectedValue == "AUTO") { Autoplay.Load(); } else { Autoplay.Unload(); Orbwalker.SetOrbwalkingPoint(Game.CursorPos); } }; Config.AddItem(new MenuItem("autosharp.humanizer", "Humanize Movement by ").SetValue(new Slider(new Random().Next(125, 350), 125, 350))); Config.AddItem(new MenuItem("autosharp.quit", "Quit after Game End").SetValue(true)); Config.AddItem(new MenuItem("autosharp.shop", "AutoShop?").SetValue(true)); Config.AddItem(new MenuItem("autosharp.disablesr", "Disable for Summoners Rift?").SetValue(true)); var options = Config.AddSubMenu(new Menu("Options: ", "autosharp.options")); options.AddItem(new MenuItem("autosharp.options.healup", "Take Heals?").SetValue(true)); options.AddItem(new MenuItem("onlyfarm", "Only Farm").SetValue(false)); if (Map == Utility.Map.MapType.SummonersRift) { options.AddItem(new MenuItem("recallhp", "Recall if Health% <").SetValue(new Slider(30, 0, 100))); } var randomizer = Config.AddSubMenu(new Menu("Randomizer", "autosharp.randomizer")); var orbwalker = Config.AddSubMenu(new Menu("Orbwalker", "autosharp.orbwalker")); randomizer.AddItem(new MenuItem("autosharp.randomizer.minrand", "Min Rand By").SetValue(new Slider(0, 0, 90))); randomizer.AddItem(new MenuItem("autosharp.randomizer.maxrand", "Max Rand By").SetValue(new Slider(100, 100, 300))); randomizer.AddItem(new MenuItem("autosharp.randomizer.playdefensive", "Play Defensive?").SetValue(true)); randomizer.AddItem(new MenuItem("autosharp.randomizer.auto", "Auto-Adjust? (ALPHA)").SetValue(true)); new PluginLoader(); Cache.Load(); Game.OnUpdate += Positioning.OnUpdate; Autoplay.Load(); Game.OnEnd += OnEnd; Obj_AI_Base.OnIssueOrder += AntiShrooms; Game.OnUpdate += AntiShrooms2; Spellbook.OnCastSpell += OnCastSpell; Obj_AI_Base.OnDamage += OnDamage; Orbwalker = new MyOrbwalker.Orbwalker(orbwalker); Utility.DelayAction.Add( new Random().Next(1000, 10000), () => { var _autoLevel = new Utils.AutoLevel(Utils.AutoLevel.GetSequenceFromDb()); _autoLevel.Enable(); LeagueSharp.Common.AutoLevel.Enable(); Console.WriteLine("AutoLevel Init Success!"); }); }
public static void Init() { Map = Utility.Map.GetMap().Type; Config = new Menu("AutoSharp: " + ObjectManager.Player.ChampionName, "autosharp." + ObjectManager.Player.ChampionName, true); Config.AddItem(new MenuItem("autosharp.mode", "Mode").SetValue(new StringList(new[] {"AUTO", "SBTW"}))).ValueChanged += (sender, args) => { if (Config.Item("autosharp.mode").GetValue<StringList>().SelectedValue == "AUTO") { Autoplay.Load(); } else { Autoplay.Unload(); Orbwalker.SetOrbwalkingPoint(Game.CursorPos); } }; Config.AddItem(new MenuItem("autosharp.humanizer", "Humanize Movement by ").SetValue(new Slider(new Random().Next(125, 350), 125, 350))); Config.AddItem(new MenuItem("autosharp.quit", "Quit after Game End").SetValue(true)); Config.AddItem(new MenuItem("autosharp.shop", "AutoShop?").SetValue(true)); Config.AddItem(new MenuItem("autosharp.disablesr", "Disable for Summoners Rift?").SetValue(true)); var options = Config.AddSubMenu(new Menu("Options: ", "autosharp.options")); options.AddItem(new MenuItem("autosharp.options.healup", "Take Heals?").SetValue(true)); options.AddItem(new MenuItem("onlyfarm", "Only Farm").SetValue(false)); if (Map == Utility.Map.MapType.SummonersRift) { options.AddItem(new MenuItem("recallhp", "Recall if Health% <").SetValue(new Slider(30, 0, 100))); } var randomizer = Config.AddSubMenu(new Menu("Randomizer", "autosharp.randomizer")); var orbwalker = Config.AddSubMenu(new Menu("Orbwalker", "autosharp.orbwalker")); randomizer.AddItem(new MenuItem("autosharp.randomizer.minrand", "Min Rand By").SetValue(new Slider(0, 0, 90))); randomizer.AddItem(new MenuItem("autosharp.randomizer.maxrand", "Max Rand By").SetValue(new Slider(100, 100, 300))); randomizer.AddItem(new MenuItem("autosharp.randomizer.playdefensive", "Play Defensive?").SetValue(true)); randomizer.AddItem(new MenuItem("autosharp.randomizer.auto", "Auto-Adjust? (ALPHA)").SetValue(true)); new PluginLoader(); Cache.Load(); Game.OnUpdate += Positioning.OnUpdate; Autoplay.Load(); Game.OnEnd += OnEnd; Obj_AI_Base.OnIssueOrder += AntiShrooms; Game.OnUpdate += AntiShrooms2; Spellbook.OnCastSpell += OnCastSpell; Obj_AI_Base.OnDamage += OnDamage; Orbwalker = new MyOrbwalker.Orbwalker(orbwalker); Utility.DelayAction.Add( new Random().Next(1000, 10000), () => { var _autoLevel = new Utils.AutoLevel(Utils.AutoLevel.GetSequenceFromDb()); _autoLevel.Enable(); Console.WriteLine("AutoLevel Init Success!"); }); }
public static void Init() { Orbwalker.DisableMovement = true; Map = LeagueSharp.Common.Utility.Map.GetMap().Type; Config = MainMenu.AddMenu("AutoSharp: " + ObjectManager.Player.ChampionName, "autosharp." + ObjectManager.Player.ChampionName); Config.Add("autosharp.mode", new ComboBox("Mode", 0, "AUTO", "SBTW")).OnValueChange += (sender, args) => { if (Config["autosharp.mode"].Cast <ComboBox>().CurrentValue == 0) { Autoplay.Load(); } else { Autoplay.Unload(); //Orbwalker.MoveTo(Game.CursorPos); } }; Config.Add("autosharp.humanizer", new Slider("Humanize Movement by ", new Random().Next(125, 350), 125, 350)); Config.Add("autosharp.quit", new CheckBox("Quit after Game End")); Config.Add("autosharp.shop", new CheckBox("AutoShop?")); Config.Add("autosharp.disablesr", new CheckBox("Disable for Summoners Rift?")); options = Config.AddSubMenu("Options: ", "autosharp.options"); options.Add("autosharp.options.healup", new CheckBox("Take Heals?")); options.Add("onlyfarm", new CheckBox("Only Farm", false)); if (Map == LeagueSharp.Common.Utility.Map.MapType.SummonersRift) { options.Add("recallhp", new Slider("Recall if Health% <", 30, 0, 100)); } randomizer = Config.AddSubMenu("Randomizer", "autosharp.randomizer"); //var orbwalker = Config.AddSubMenu(new Menu("Orbwalker", "autosharp.orbwalker")); randomizer.Add("autosharp.randomizer.minrand", new Slider("Min Rand By", 0, 0, 90)); randomizer.Add("autosharp.randomizer.maxrand", new Slider("Max Rand By", 100, 100, 300)); randomizer.Add("autosharp.randomizer.playdefensive", new CheckBox("Play Defensive?")); randomizer.Add("autosharp.randomizer.auto", new CheckBox("Auto-Adjust? (ALPHA)")); new PluginLoader(); Cache.Load(); Game.OnUpdate += Positioning.OnUpdate; Autoplay.Load(); Game.OnEnd += OnEnd; Player.OnIssueOrder += AntiShrooms; Game.OnUpdate += AntiShrooms2; Spellbook.OnCastSpell += OnCastSpell; Obj_AI_Base.OnDamage += OnDamage; LeagueSharp.Common.Utility.DelayAction.Add( new Random().Next(1000, 10000), () => { var _autoLevel = new Utils.AutoLevel(Utils.AutoLevel.GetSequenceFromDb()); _autoLevel.Enable(); LeagueSharp.Common.AutoLevel.Enable(); Console.WriteLine("AutoLevel Init Success!"); }); }