public static void Game_OnGameLoad() { if (Player.CharacterName != "Gangplank") { return; } Q = new Spell(SpellSlot.Q, 625); W = new Spell(SpellSlot.W, 0); E = new Spell(SpellSlot.E, 1000); R = new Spell(SpellSlot.R); #region Menu Config Menu = new Config(); Menu.Initialize(); #endregion QDelay = new DelayManager(Q, 1500); Game.Print("<font color='#bb0000'>e</font>.<font color='#0000cc'>Motion</font> Gangplank loaded"); //SetBarrelTime(); #region Subscriptions Drawing.OnDraw += OnDraw; Game.OnUpdate += GameOnUpdate; GameObject.OnCreate += OnCreate; AIBaseClient.OnDoCast += CheckForBarrel; AIBaseClient.OnProcessSpellCast += OnProcessSpellCast; #endregion }
static void Game_OnGameLoad(EventArgs args) { if (Player.ChampionName != "Gangplank") { return; } Q = new Spell(SpellSlot.Q, 625); W = new Spell(SpellSlot.W, 0); E = new Spell(SpellSlot.E, 1000); R = new Spell(SpellSlot.R); #region Menu Config Menu = new Config(); Menu.Initialize(); #endregion QDelay = new DelayManager(Q,1500); Game.PrintChat("<font color='#bb0000'>e</font>.<font color='#0000cc'>Motion</font> Gangplank loaded"); //SetBarrelTime(); #region Subscriptions Drawing.OnDraw += OnDraw; Game.OnUpdate += GameOnUpdate; GameObject.OnCreate += OnCreate; Obj_AI_Base.OnDoCast += CheckForBarrel; Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast; #endregion }