コード例 #1
0
ファイル: Program.cs プロジェクト: LordZEDith/LeagueSharp-5
 private static void OnLoad(object sender, EventArgs e)
 {
     UpdateCheck();
     if (!Plugins.ContainsKey(Player.ChampionName))
     {
         Game.PrintChat(string.Format("Valvrave Sharp => {0} Not Support!", Player.ChampionName));
         return;
     }
     Bilgewater = new Items.Item(ItemId.Bilgewater_Cutlass, 550);
     BotRuinedKing = new Items.Item(ItemId.Blade_of_the_Ruined_King, 550);
     Youmuu = new Items.Item(ItemId.Youmuus_Ghostblade, 0);
     Tiamat = new Items.Item(ItemId.Tiamat_Melee_Only, 400);
     Hydra = new Items.Item(ItemId.Ravenous_Hydra_Melee_Only, 400);
     Titanic = new Items.Item(3053, 400);
     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 Menu("ValvraveSharp", "Valvrave Sharp", true, Player.ChampionName).Attach();
     Config.Separator(MainMenu, "Author", "Author: Brian");
     Config.Separator(MainMenu, "Paypal", "Paypal: [email protected]");
     Plugins[Player.ChampionName].Invoke();
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: q51251/LeagueSharp-8
 private static void InitItem()
 {
     Bilgewater = new Items.Item(ItemId.Bilgewater_Cutlass, 550);
     BotRuinedKing = new Items.Item(ItemId.Blade_of_the_Ruined_King, 550);
     Youmuu = new Items.Item(ItemId.Youmuus_Ghostblade, 0);
     Tiamat = new Items.Item(ItemId.Tiamat_Melee_Only, 400);
     Hydra = new Items.Item(ItemId.Ravenous_Hydra_Melee_Only, 400);
     Titanic = new Items.Item(3748, 0);
 }
コード例 #3
0
ファイル: Program.cs プロジェクト: seniseviy/LeagueSharp-6
 private static void OnLoad(object sender, EventArgs e)
 {
     UpdateCheck();
     Player = ObjectManager.Player;
     var plugin = Type.GetType("Valvrave_Sharp.Plugin." + Player.ChampionName);
     if (plugin == null)
     {
         Game.PrintChat(string.Format("Valvrave Sharp => {0} Not Support!", Player.ChampionName));
         return;
     }
     Bootstrap.Init(null);
     DelayAction.Add(
         1000,
         () =>
             {
                 MenuCustomizer.Instance.Parent["orbwalker"]["lasthitKey"].DisplayName = "Last Hit";
                 MainMenu = new Menu("ValvraveSharp", "Valvrave Sharp", true, Player.ChampionName).Attach();
                 Config.Separator(MainMenu, "Author", "Author: Brian");
                 Config.Separator(MainMenu, "Paypal", "Paypal: [email protected]");
                 NewInstance(plugin);
                 Bilgewater = new Items.Item(ItemId.Bilgewater_Cutlass, 550);
                 BotRuinedKing = new Items.Item(ItemId.Blade_of_the_Ruined_King, 550);
                 Youmuu = new Items.Item(ItemId.Youmuus_Ghostblade, 0);
                 Tiamat = new Items.Item(ItemId.Tiamat_Melee_Only, 400);
                 Hydra = new Items.Item(ItemId.Ravenous_Hydra_Melee_Only, 400);
                 Titanic = new Items.Item(3053, 400);
                 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");
                 Game.PrintChat(string.Format("Valvrave Sharp => {0} Loaded !", Player.ChampionName));
             });
 }
コード例 #4
0
ファイル: Program.cs プロジェクト: badao/BadaoAIO
        private static void OnLoad(object sender, EventArgs e)
        {
            var plugin = Type.GetType("BadaoAIO.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(ItemId.Bilgewater_Cutlass, 550);
            BotRK = new Items.Item(ItemId.Blade_of_the_Ruined_King, 550);
            Youmuu = new Items.Item(ItemId.Youmuus_Ghostblade, 0);
            Tiamat = new Items.Item(ItemId.Tiamat_Melee_Only, 400);
            Hydra = new Items.Item(ItemId.Ravenous_Hydra_Melee_Only, 400);
            Sheen = new Items.Item(ItemId.Sheen,0);
            LichBane = new Items.Item(ItemId.Lich_Bane, 0);
            TrinityForce = new Items.Item(ItemId.Trinity_Force, 0);
            IcebornGauntlet = new Items.Item(ItemId.Iceborn_Gauntlet, 0);
            LudensEcho = new Items.Item(ItemId.Ludens_Echo, 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 Menu("BadaoAIO", "BadaoAIO", true, Player.ChampionName);
            AddUI.Bool(MainMenu, "Enable", Player.ChampionName + " Enable", true);
            MainMenu.Attach();
            MainMenu.MenuValueChanged += MainMenu_MenuValueChanged;
            NewInstance(plugin);
        }
コード例 #5
0
ファイル: Program.cs プロジェクト: ChewyMoon/ChewySDK
        /// <summary>
        /// Called when the game loads.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="eventArgs">
        /// The <see cref="EventArgs"/> instance containing the event data.
        /// </param>
        private static void LoadOnOnLoad(object sender, EventArgs eventArgs)
        {
            if (Player.CharData.BaseSkinName != "Irelia")
            {
                return;
            }

            Bootstrap.Init(null);

            Q = new Spell(SpellSlot.Q, 0x28A);
            W = new Spell(SpellSlot.W, Player.AttackRange + Player.BoundingRadius);
            E = new Spell(SpellSlot.E, 0x1A9);
            R = new Spell(SpellSlot.R, 0x4B0);

            Q.SetTargetted(0x3E876C8B, 0x898);
            E.SetTargetted(0x3E800000, 0x14);
            R.SetSkillshot(0x3E800000, 0x41, 0x640, false, SkillshotType.SkillshotLine);

            Botrk = new Items.Item(ItemId.Blade_of_the_Ruined_King, 0x226);
            Randuins = new Items.Item(ItemId.Randuins_Omen, 0x1F4);
            Hextech = new Items.Item(ItemId.Hextech_Gunblade, 0x2BC);

            CreateMenu();

            Game.OnUpdate += Game_OnUpdate;
            Obj_AI_Base.OnProcessSpellCast += ObjAiBaseOnProcessSpellCast;
            Drawing.OnDraw += DrawingOnDraw;
            InterruptableSpell.OnInterruptableTarget += InterruptableSpellOnInterruptableTarget;
            Gapcloser.OnGapCloser += GapcloserOnGapCloser;
        }