public static void OnGameLoad() { if (player.BaseSkinName != "Shaco") { return; } Q = new LeagueSharp.Common.Spell(SpellSlot.Q, 400); W = new LeagueSharp.Common.Spell(SpellSlot.W, 425); E = new LeagueSharp.Common.Spell(SpellSlot.E, 625); R = new LeagueSharp.Common.Spell(SpellSlot.R, 200); SpellList = new List <LeagueSharp.Common.Spell> { Q, E, W, R }; CreateMenu(); Illuminati.Init(); Tiamat = ItemData.Tiamat_Melee_Only.GetItem(); Hydra = ItemData.Ravenous_Hydra_Melee_Only.GetItem(); Game.OnUpdate += GameOnOnGameUpdate; Drawing.OnDraw += Drawing_OnDraw; Orbwalker.OnPostAttack += OrbwalkingOnAfterAttack; Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; }
public static void OnGameLoad(EventArgs args) { if (ObjectManager.Player.BaseSkinName != "Shaco") { return; } Q = new Spell(SpellSlot.Q, 400); W = new Spell(SpellSlot.W, 425); E = new Spell(SpellSlot.E, 625); SpellList = new List <Spell> { Q, E, W }; CreateMenu(); Illuminati.Init(); Tiamat = ItemData.Tiamat_Melee_Only.GetItem(); Hydra = ItemData.Ravenous_Hydra_Melee_Only.GetItem(); Game.OnUpdate += GameOnOnGameUpdate; Drawing.OnDraw += Drawing_OnDraw; Orbwalking.AfterAttack += OrbwalkingOnAfterAttack; Game.PrintChat( "<font color=\"#6699ff\"><b>ChewyMoon's Shaco:</b></font> <font color=\"#FFFFFF\">" + "loaded!" + "</font>"); }