Example #1
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            Menu = new Menu("Summoners", "Summoners");
            Menu.AddBool("SmiteManagerEnabled", "Load Smite Manager");
            Menu.AddBool("IgniteManagerEnabled", "Load Ignite Manager");
            Bootstrap.Menu.AddSubMenu(Menu);

            var smite = ObjectManager.Player.Spellbook.Spells.FirstOrDefault(h => h.Name.ToLower().Contains("smite"));

            if (smite != null && !smite.Slot.Equals(SpellSlot.Unknown))
            {
                Smite = new Spell(smite.Slot, 500);
                Smite.SetTargetted(.333f, 20);

                if (Menu.Item("SmiteManagerEnabled").IsActive())
                {
                    SmiteManager.Initialize();
                }
            }

            var igniteSlot = ObjectManager.Player.GetSpellSlot("summonerdot");

            if (!igniteSlot.Equals(SpellSlot.Unknown))
            {
                Ignite = new Spell(igniteSlot, 600);
                Ignite.SetTargetted(.172f, 20);

                if (Menu.Item("IgniteManagerEnabled").IsActive())
                {
                    IgniteManager.Initialize();
                }
            }
        }
Example #2
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            Menu = MainMenu.AddMenu("Summoners", "Summoners");
            Menu.Add("SmiteManagerEnabled", new CheckBox("Load Smite Manager"));
            Menu.Add("IgniteManagerEnabled", new CheckBox("Load Ignite Manager"));

            var smite = ObjectManager.Player.Spellbook.Spells.FirstOrDefault(h => h.Name.ToLower().Contains("smite"));

            if (smite != null && !smite.Slot.Equals(SpellSlot.Unknown))
            {
                Smite = new LeagueSharp.Common.Spell(smite.Slot, 500);
                Smite.SetTargetted(.333f, 20);

                if (Menu["SmiteManagerEnabled"].Cast <CheckBox>().CurrentValue)
                {
                    SmiteManager.Initialize();
                }
            }

            var igniteSlot = ObjectManager.Player.GetSpellSlot("summonerdot");

            if (!igniteSlot.Equals(SpellSlot.Unknown))
            {
                Ignite = new LeagueSharp.Common.Spell(igniteSlot, 600);
                Ignite.SetTargetted(.172f, 20);

                if (Menu["IgniteManagerEnabled"].Cast <CheckBox>().CurrentValue)
                {
                    IgniteManager.Initialize();
                }
            }
        }