private static void Loading_OnLoadingComplete(EventArgs args) { _player = Player.Instance; mapID = Game.MapId; // Initialize classes MenuManager.Initialize(); // Initialize methods title = GenerateTitle(); potentialItems = GeneratePotentialList(); itemList = GenerateItemList(); spellList = GenerateSpellList(); Time = Game.Time; // Configure dirk options if (MenuManager.Settings.GetCheckBoxValue("dirk")) { Lists.dirkoption = ItemId.Poachers_Dirk; } else if (!MenuManager.Settings.GetCheckBoxValue("dirk")) { Lists.dirkoption = ItemId.Serrated_Dirk; } foreach (ItemId item in itemList) { Console.WriteLine(item); } // Activate events Game.OnTick += Game_OnTick; Player_OnLevelUp(null, null); Player.OnLevelUp += Player_OnLevelUp; }
private static void Loading_OnLoadingComplete(EventArgs args) { Map = Game.MapId; //Cache.Load(); Game.OnEnd += OnEnd; Chat.Print("AutoSharp loaded", Color.CornflowerBlue); Timer = Game.Time; Game.OnTick += Game_OnTick; Game.OnTick += DecisionMaker.OnTick; }
public JungleCamp(int respawnTime, Vector3 position, string[] mobNames, GameMapId mapID, GameObjectTeam team) { RespawnTime = respawnTime; Position = position; MobNames = mobNames; MapID = mapID; Team = team; ObjectsDead = new List <string>(); ObjectsAlive = new List <string>(); }
public Mobs( int respawnTime, Vector3 position, string[] mobNames, GameMapId MapID, GameObjectTeam team) { this.RespawnTime = respawnTime; this.Position = position; this.MobNames = mobNames; this.MapID = MapID; this.Team = team; this.ObjectsDead = new List <string>(); this.ObjectsAlive = new List <string>(); }
public Mobs( int respawnTime, Vector3 position, string[] mobNames, GameMapId MapID, GameObjectTeam team) { this.RespawnTime = respawnTime; this.Position = position; this.MobNames = mobNames; this.MapID = MapID; this.Team = team; this.ObjectsDead = new List<string>(); this.ObjectsAlive = new List<string>(); }
/// <summary> /// Initializes a new instance of the <see cref="JungleCamp" /> class. /// </summary> /// <param name="respawnTime">The respawn time.</param> /// <param name="position">The position.</param> /// <param name="mobNames">The mob names.</param> /// <param name="mapType">Type of the map.</param> /// <param name="team">The team.</param> /// <param name="mobsAreChildren">if set to <c>true</c> the mob names need to be dead to respawn.</param> public JungleCamp( int respawnTime, Vector3 position, string[] mobNames, GameMapId mapType, GameObjectTeam team, bool mobsAreChildren = true) { this.RespawnTime = respawnTime; this.Position = position; this.MobNames = mobNames; this.MapType = mapType; this.Team = team; this.MobsAreChildren = mobsAreChildren; this.ObjectsDead = new List <string>(); this.ObjectsAlive = new List <string>(); }
internal static void Load() { CurrentMap = Game.MapId; Me = ObjectManager.Player; SmiteSlot = Me.GetSpellSlotFromName("SummonerSmite"); FlashSlot = Me.GetSpellSlotFromName("SummonerFlash"); foreach (var hero in EntityManager.Heroes.AllHeroes) { if (!hero.IsEnemy) { continue; } var enemy = hero; foreach ( var spell in Spell.SpellList.Where( s => String.Equals(s.ChampionName, enemy.ChampionName, StringComparison.CurrentCultureIgnoreCase))) { Spell.ActiveSpellList.Add(spell); } foreach ( var buff in Buff.BuffList.Where( s => String.Equals(s.ChampionName, enemy.ChampionName, StringComparison.CurrentCultureIgnoreCase))) { Buff.ActiveBuffList.Add(buff); } foreach ( var troy in Troy.TroyList.Where( s => String.Equals(s.ChampionName, enemy.ChampionName, StringComparison.CurrentCultureIgnoreCase))) { Troy.ActiveTroyList.Add(troy); } } CleanserItems.Load(); OffensiveItems.Load(); SituationalItems.Load(); //not finished Yet //FireManager.Load(); //FireManager.OnSpellCast += OnSpellCast; //Drawing.OnDraw += OnDraw; }
public static void Init() { //if (Loader.intro) //{ Intro = new Render.Sprite(LoadImg("ASLogo"), new Vector2((Drawing.Width / 2) - 283, (Drawing.Height / 2) - 87)); Intro.Add(0); Intro.OnDraw(); LeagueSharp.Common.Utility.DelayAction.Add(5000, () => Intro.Remove()); //} Chat.Print("AutoSharp loaded", Color.CornflowerBlue); Map = Game.MapId; //Chat.Print(Map.ToString()); // Prints Summoners Rift on Howling Abbyss /* * 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 == "SBTW") * { * 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)); * 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)); */ // Moved it to another addon: ChampionPlugins //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), () => * { * new AutoSharp.Utils (Utils.AutoLevel.GetSequence().Select(num => num - 1).ToArray()); * AutoSharp.Utils.AutoLevel.Enable(); * Console.WriteLine("AutoLevel Init Success!"); * }); */ }
internal WCastPositionInfo(GameMapId mapId, string positionName, Vector3 position) { MapID = mapId; PositionName = positionName; Position = position; }
public static void Init() { Chat.Print("AutoSharp loaded", Color.CornflowerBlue); Map = Game.MapId; //Chat.Print(Map.ToString()); // Prints Summoners Rift on Howling Abbyss /* 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)); 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)); */ // Moved it to another addon: ChampionPlugins //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), () => { new LeagueSharp.Common.AutoLevel(Utils.AutoLevel.GetSequence().Select(num => num - 1).ToArray()); LeagueSharp.Common.AutoLevel.Enable(); Console.WriteLine("AutoLevel Init Success!"); }); */ }