コード例 #1
0
 private static void Program_ValueChanged(object sender, OnValueChangeEventArgs e)
 {
     if (sender != null)
     {
         enabled = e.GetNewValue <bool>();
         //CustomOrbwalker.Orbwalking.Orbwalker.Enabled = e.GetNewValue<bool>();
         if (e.GetNewValue <bool>())
         {
             AddUI.Notif(Player.ChampionName + ": Enabled !", 4000);
         }
         else
         {
             AddUI.Notif(Player.ChampionName + ": Disabled !", 4000);
         }
     }
 }
コード例 #2
0
        private static void OnLoad(EventArgs e)
        {
            var plugin = Type.GetType("BadaoSeries.Plugin." + Player.ChampionName);

            if (plugin == null)
            {
                AddUI.Notif(Player.ChampionName + ": Not Supported !", 10000);
                return;
            }
            AddUI.Notif(Player.ChampionName + ": Loaded !", 10000);
            //Bootstrap.Init(null);
            //if (Player.ChampionName == "Rammus")
            //{
            //    LeagueSharp.SDK.Core.Orbwalker.Enabled = false;
            //    Menu Orb = new Menu("Orbwalker", "Orbwalker", true).Attach();
            //    Orbwalker.Orbwalker.Initialize(Orb);
            //}
            Bilgewater      = new Items.Item(ItemData.Bilgewater_Cutlass.Id, 550);
            BotRK           = new Items.Item(ItemData.Blade_of_the_Ruined_King.Id, 550);
            Youmuu          = new Items.Item(ItemData.Youmuus_Ghostblade.Id, 0);
            Tiamat          = new Items.Item(ItemData.Tiamat_Melee_Only.Id, 400);
            Hydra           = new Items.Item(ItemData.Ravenous_Hydra_Melee_Only.Id, 400);
            Sheen           = new Items.Item(ItemData.Sheen.Id, 0);
            LichBane        = new Items.Item(ItemData.Lich_Bane.Id, 0);
            TrinityForce    = new Items.Item(ItemData.Trinity_Force.Id, 0);
            IcebornGauntlet = new Items.Item(ItemData.Iceborn_Gauntlet.Id, 0);
            LudensEcho      = new Items.Item(ItemData.Ludens_Echo.Id, 0);

            foreach (var spell in
                     Player.Spellbook.Spells.Where(
                         i =>
                         i.Name.ToLower().Contains("smite") &&
                         (i.Slot == SpellSlot.Summoner1 || i.Slot == SpellSlot.Summoner2)))
            {
                Smite = spell.Slot;
            }
            Ignite = Player.GetSpellSlot("summonerdot");
            Flash  = Player.GetSpellSlot("summonerflash");

            MainMenu = new LeagueSharp.Common.Menu("BadaoSeries", "BadaoSeries", true);
            AddUI.Bool(MainMenu, "Enable", Player.ChampionName + " Enable", true).ValueChanged += Program_ValueChanged;
            MainMenu.AddToMainMenu();
            NewInstance(plugin);
        }