private static void Game_OnGameLoad(EventArgs args) { if (Player.ChampionName != "LeeSin") { return; } igniteSlot = Player.GetSpellSlot("SummonerDot"); flashSlot = Player.GetSpellSlot("summonerflash"); spells[Spells.Q].SetSkillshot(0.25f, 65f, 1800f, true, SkillshotType.SkillshotLine); try { InitMenu.Initialize(); } catch (Exception e) { Console.WriteLine("An error occurred: '{0}'", e); } Drawing.OnDraw += Drawings.Drawing_OnDraw; Game.OnUpdate += Game_OnGameUpdate; Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; GameObject.OnCreate += GameObject_OnCreate; Orbwalking.AfterAttack += OrbwalkingAfterAttack; GameObject.OnDelete += GameObject_OnDelete; Game.OnWndProc += Game_OnWndProc; }
private static void Game_OnGameLoad(EventArgs args) { if (Player.ChampionName != "LeeSin") { return; } igniteSlot = Player.GetSpellSlot("SummonerDot"); flashSlot = Player.GetSpellSlot("summonerflash"); spells[Spells.Q].SetSkillshot(0.25f, 65f, 1800f, true, SkillshotType.SkillshotLine); slot1 = Player.Spellbook.GetSpell(SpellSlot.Summoner1); slot2 = Player.Spellbook.GetSpell(SpellSlot.Summoner2); var smiteNames = new[] { "s5_summonersmiteplayerganker", "itemsmiteaoe", "s5_summonersmitequick", "s5_summonersmiteduel", "summonersmite" }; if (smiteNames.Contains(slot1.Name)) { smite = new Spell(SpellSlot.Summoner1, 550f); smiteSlot = SpellSlot.Summoner1; } else if (smiteNames.Contains(slot2.Name)) { smite = new Spell(SpellSlot.Summoner2, 550f); smiteSlot = SpellSlot.Summoner2; } else { Console.WriteLine("You don't have smite f****t"); return; } try { InitMenu.Initialize(); } catch (Exception e) { Console.WriteLine("An error occurred: '{0}'", e); } Drawing.OnDraw += Drawings.Drawing_OnDraw; Game.OnUpdate += Game_OnGameUpdate; Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; GameObject.OnCreate += GameObject_OnCreate; Orbwalking.AfterAttack += OrbwalkingAfterAttack; GameObject.OnDelete += GameObject_OnDelete; Game.OnWndProc += Game_OnWndProc; }