private static void OnGameLoad(EventArgs args) { Player = ObjectManager.Player; Name = Player.ChampionName; Game.PrintChat("<font color = \'{0}'>Master Series</font>", HtmlColor.Lime); Game.PrintChat("<font color = \'{0}'>-></font> <font color = \'{1}'>Feel free to donate via Paypal to</font>: <font color = \'{2}'>[email protected]</font>", HtmlColor.BlueViolet, HtmlColor.Orange, HtmlColor.LightCoral); Config = new Menu("Master Series", "MasterSeries", true); TS = new M_TargetSelector(Config, 1600); Orbwalk.AddToMenu(Config); try { if (Activator.CreateInstance(null, "MasterSeries.Champions." + Name) != null) { ItemBool(Config.SubMenu(Name + "Plugin").SubMenu("Misc"), "UsePacket", "Use Packet To Cast"); FlashSlot = Player.GetSpellSlot("summonerflash"); SmiteSlot = SmiteName.Any(i => Player.GetSpellSlot(i) != SpellSlot.Unknown) ? Player.GetSpellSlot(SmiteName.First(i => Player.GetSpellSlot(i) != SpellSlot.Unknown)) : SpellSlot.Unknown; IgniteSlot = Player.GetSpellSlot("summonerdot"); SkinChanger(null, null); Game.PrintChat("<font color = \'{0}'>-></font> <font color = \'{1}'>Master Of {2}</font>: <font color = \'{3}'>Loaded !</font>", HtmlColor.BlueViolet, HtmlColor.Gold, Name, HtmlColor.Cyan); Game.OnUpdate += OnUpdate; } } catch { Game.PrintChat("<font color = \'{0}'>-></font> <font color = \'{1}'>{2}</font>: <font color = \'{3}'>Currently not supported !</font>", HtmlColor.BlueViolet, HtmlColor.Gold, Name, HtmlColor.Cyan); } Config.AddItem(new MenuItem("Author", "Credits: Brian")); Config.AddItem(new MenuItem("Fixed", "Fixed by Somaher")); Config.AddToMainMenu(); }
private static void OnGameLoad(EventArgs args) { Player = ObjectManager.Player; Name = Player.ChampionName; Game.PrintChat("<font color = \'{0}'>Master Series</font>", HtmlColor.Lime); Config = new Menu("Master Series", "MasterSeries", true); Config.AddSubMenu(new Menu("Info", "Info")); Config.SubMenu("Info").AddItem(new MenuItem("Author", "Credits: Brian")); Config.SubMenu("Info").AddItem(new MenuItem("Paypal", "Donate: [email protected]")); TS = new M_TargetSelector(Config); Orbwalk.AddToMenu(Config); try { if (Activator.CreateInstance(null, "MasterSeries.Champions." + Name) != null) { Tiamat = ItemData.Tiamat_Melee_Only.GetItem(); Hydra = ItemData.Ravenous_Hydra_Melee_Only.GetItem(); Bilgewater = ItemData.Bilgewater_Cutlass.GetItem(); HexGun = ItemData.Hextech_Gunblade.GetItem(); BladeRuined = ItemData.Blade_of_the_Ruined_King.GetItem(); RanduinOmen = ItemData.Randuins_Omen.GetItem(); Youmuu = ItemData.Youmuus_Ghostblade.GetItem(); Deathfire = ItemData.Deathfire_Grasp.GetItem(); Blackfire = ItemData.Blackfire_Torch.GetItem(); Sheen = ItemData.Sheen.GetItem(); Iceborn = ItemData.Iceborn_Gauntlet.GetItem(); Trinity = ItemData.Trinity_Force.GetItem(); ItemBool(Config.SubMenu(Name + "Plugin").SubMenu("Misc"), "UsePacket", "Use Packet To Cast"); FlashSlot = Player.GetSpellSlot("summonerflash"); foreach (var Smite in Player.Spellbook.Spells.Where(i => i.Name.ToLower().Contains("smite") && (i.Slot == SpellSlot.Summoner1 || i.Slot == SpellSlot.Summoner2))) { SmiteSlot = Smite.Slot; } IgniteSlot = Player.GetSpellSlot("summonerdot"); SkinChanger(null, null); Game.PrintChat("<font color = \'{0}'>-></font> <font color = \'{1}'>Master Of {2}</font>: <font color = \'{3}'>Loaded !</font>", HtmlColor.BlueViolet, HtmlColor.Gold, Name, HtmlColor.Cyan); Game.OnGameUpdate += OnGameUpdate; //Game.OnGameProcessPacket += OnGameProcessPacket; } } catch { Game.PrintChat("<font color = \'{0}'>-></font> <font color = \'{1}'>{2}</font>: <font color = \'{3}'>Currently not supported !</font>", HtmlColor.BlueViolet, HtmlColor.Gold, Name, HtmlColor.Cyan); } Config.AddToMainMenu(); }
public static void CustomOrbwalk(Obj_AI_Base Target) { Orbwalk.Orbwalk(Game.CursorPos, Orbwalk.InAutoAttackRange(Target) ? Target : null); }