void SetUpEvents() { Cleanser.OnLoad(); PotionManager.OnLoad(Menu); ItemManager.OnLoad(Menu); Game.OnGameUpdate += Game_OnGameUpdate; Orbwalking.AfterAttack += OrbwalkingAfterAttack; AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser; Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget; Drawing.OnDraw += Drawing_OnDraw; }
static void SetUpEvents() { Cleanser.OnLoad(); PotionManager.OnLoad(Menu); ItemManager.OnLoad(Menu); Game.OnUpdate += Game_OnGameUpdate; Orbwalking.AfterAttack += OrbwalkingAfterAttack; AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser; Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget; Stealth.OnStealth += Stealth_OnStealth; Drawing.OnDraw += Drawing_OnDraw; Obj_AI_Hero.OnPlayAnimation += Obj_AI_Hero_OnPlayAnimation; GameObject.OnCreate += GameObject_OnCreate; }
public static void OnLoad(EventArgs args) { Player = ObjectManager.Player; Config = new Menu("DZAIO", "dzaio", true); TargetSelector.AddToMenu(Config.SubMenu("Target selector")); Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking")); Game.PrintChat("<b><font color='#FF0000'>[DZAIO]</font></b><font color='#FFFFFF'> DZAIO Loaded!</font> v{0}", Assembly.GetExecutingAssembly().GetName().Version); if (ChampList.ContainsKey(Player.ChampionName)) { CurrentChampion = ChampList[Player.ChampionName].Invoke(); CurrentChampion.OnLoad(Config); CurrentChampion.SetUpSpells(); CurrentChampion.RegisterEvents(); ItemManager.OnLoad(Config); Game.PrintChat("<b><font color='#FF0000'>[DZAIO] </font></b><font color='#FFFFFF'>Loaded</font> <b><font color='#FF0000'>{0}</font></b> plugin! <font color='#FFFFFF'> Have fun! </font>", Player.ChampionName); } Game.PrintChat("<b><font color='#FF0000'>[DZAIO] </font></b><font color='#FFFFFF'>Special credits to:</font> <b><font color='#FF0000'>Hellsing</font></b>, <b><font color='#FF0000'>ChewyMoon</font></b> "); Cleanser.OnLoad(); ChatHook.OnLoad(); DebugHelper.OnLoad(); NotificationDrawing.OnLoad(); PotionManager.OnLoad(Config); Config.AddItem(new MenuItem("dzaio.hpdraw.disable", "Disable HP Bar Drawing").SetValue(false)); var aboutMenu = new Menu(Player.ChampionName + " - About", "dzaio.about"); { aboutMenu.AddItem(new MenuItem("dzaio.about.line1", "DZAIO By Asuna/DZ191")); aboutMenu.AddItem(new MenuItem("dzaio.about.line2", "v." + Assembly.GetExecutingAssembly().GetName().Version)); aboutMenu.AddItem(new MenuItem("dzaio.about.line3", " ")); aboutMenu.AddItem(new MenuItem("dzaio.about.line4", "If you liked/appreciated the assembly")); aboutMenu.AddItem(new MenuItem("dzaio.about.line5", "Feel free to donate at:")); aboutMenu.AddItem(new MenuItem("dzaio.about.line6", "*****@*****.**")); } Config.AddSubMenu(aboutMenu); Config.AddToMainMenu(); }