• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Items.Item类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中LeagueSharp.Common.Items.Item的典型用法代码示例。如果您正苦于以下问题:C# Items.Item类的具体用法?C# Items.Item怎么用?C# Items.Item使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Items.Item类属于LeagueSharp.Common命名空间,在下文中一共展示了Items.Item类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: OnLoad

        public static void OnLoad()
        {
            if (Player.ChampionName != "Rengar")
            {
                return;
            }

            try
            {
                Youmuu = new Items.Item(3142, 0f);

                Ignite = Player.GetSpellSlot("summonerdot");
                Chat.Print(
                    "[00:01] <font color='#CC0000'>HEEEEEEY!</font> Use ElUtilitySuite for optimal results! xo jQuery!!");

                spells[Spells.E].SetSkillshot(0.25f, 70f, 1500f, true, SkillshotType.SkillshotLine);

                MenuInit.Initialize();
                Game.OnUpdate += OnUpdate;
                Drawing.OnDraw += OnDraw;
                CustomEvents.Unit.OnDash += OnDash;
                Drawing.OnEndScene += OnDrawEndScene;
                Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast;
                LSEvents.AfterAttack += AfterAttack;
                LSEvents.BeforeAttack += BeforeAttack;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
开发者ID:yashine59fr,项目名称:PortAIO-1,代码行数:31,代码来源:Rengar.cs


示例2: OnLoad

        public static void OnLoad(EventArgs args)
        {
            if (Player.ChampionName != "Rengar")
            {
                return;
            }

            try
            {
                Youmuu = new Items.Item(3142, 0f);

                Ignite = Player.GetSpellSlot("summonerdot");
                Notifications.AddNotification(string.Format("ElRengarRevamped by jQuery v{0}", ScriptVersion), 6000);
                Game.PrintChat(
                    "[00:00] <font color='#f9eb0b'>HEEEEEEY!</font> Use ElUtilitySuite for optimal results! xo jQuery");
                spells[Spells.E].SetSkillshot(0.25f, 70f, 1500f, true, SkillshotType.SkillshotLine);

                MenuInit.Initialize();
                Game.OnUpdate += OnUpdate;
                Drawing.OnDraw += OnDraw;
                CustomEvents.Unit.OnDash += OnDash;
                Drawing.OnEndScene += OnDrawEndScene;
                Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast;
                Orbwalking.BeforeAttack += OrbwalkingBeforeAttack;
                Orbwalking.AfterAttack += AfterAttack;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
开发者ID:JusNulled,项目名称:ElBundle,代码行数:31,代码来源:Rengar.cs


示例3: OnLoad

        public static void OnLoad()
        {
            if (Player.ChampionName != "Rengar")
            {
                return;
            }

            try
            {
                Youmuu = new Items.Item(3142);

                Ignite = Player.GetSpellSlot("summonerdot");
                spells[Spells.E].SetSkillshot(0.25f, 70f, 1500f, true, SkillshotType.SkillshotLine);

                MenuInit.Initialize();
                Game.OnUpdate += OnUpdate;
                Drawing.OnDraw += OnDraw;
                CustomEvents.Unit.OnDash += OnDash;
                Drawing.OnEndScene += OnDrawEndScene;
                Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast;
                Orbwalker.OnPostAttack += AfterAttack;
                Orbwalker.OnPreAttack += BeforeAttack;
                Game.OnWndProc += OnClick;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
开发者ID:Xelamats,项目名称:PortAIO,代码行数:29,代码来源:Rengar.cs


示例4: Game_OnGameLoad

        public static void Game_OnGameLoad(EventArgs args)
        {
            if (ObjectManager.Player.CharData.BaseSkinName != "Talon")
            {
                return;
            }

            #region Spell Data

            // set spells
            Q = new Spell(SpellSlot.Q, Orbwalking.GetRealAutoAttackRange(Player) + 100);
            W = new Spell(SpellSlot.W, 650);
            E = new Spell(SpellSlot.E, 700);
            R = new Spell(SpellSlot.R, 650);

            W.SetSkillshot(0.25f, 75, 2300, false, SkillshotType.SkillshotLine);

            SpellList = new List<Spell> { Q, E, W, R };

            ignite = Player.GetSpellSlot("summonerdot");

            Tiamat = new Items.Item(3077, 400f);
            Youmuu = new Items.Item(3142, 0f);
            Hydra = new Items.Item(3074, 400f);

            InitializeMenu();

            #endregion

            Game.OnUpdate += OnGameUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
            Orbwalking.AfterAttack += AfterAttack;
            AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
            new AssassinManager();
        }
开发者ID:Arhts,项目名称:JTalon,代码行数:35,代码来源:Talon.cs


示例5: Ahri

        public Ahri()
        {
            if (ObjectManager.Player.ChampionName != "Ahri")
                return;

            (_menu = new Menu("AhriSharp", "AhriSharp", true)).AddToMainMenu();

            var targetSelectorMenu = new Menu("Target Selector", "TargetSelector");
            TargetSelector.AddToMenu(targetSelectorMenu);
            _menu.AddSubMenu(targetSelectorMenu);

            _orbwalker = new Orbwalking.Orbwalker(_menu.AddSubMenu(new Menu("Orbwalking", "Orbwalking")));

            var comboMenu = _menu.AddSubMenu(new Menu("Combo", "Combo"));
            comboMenu.AddItem(new MenuItem("comboQ", "Use Q").SetValue(true));
            comboMenu.AddItem(new MenuItem("comboW", "Use W").SetValue(true));
            comboMenu.AddItem(new MenuItem("comboE", "Use E").SetValue(true));
            comboMenu.AddItem(new MenuItem("comboR", "Use R").SetValue(true));
            comboMenu.AddItem(new MenuItem("comboROnlyUserInitiate", "Use R only if user initiated").SetValue(false));

            var harassMenu = _menu.AddSubMenu(new Menu("Harass", "Harass"));
            harassMenu.AddItem(new MenuItem("harassQ", "Use Q").SetValue(true));
            harassMenu.AddItem(new MenuItem("harassE", "Use E").SetValue(true));
            harassMenu.AddItem(new MenuItem("harassPercent", "Skills until Mana %").SetValue(new Slider(20)));

            var farmMenu = _menu.AddSubMenu(new Menu("Lane Clear", "LaneClear"));
            farmMenu.AddItem(new MenuItem("farmQ", "Use Q").SetValue(true));
            farmMenu.AddItem(new MenuItem("farmW", "Use W").SetValue(false));
            farmMenu.AddItem(new MenuItem("farmPercent", "Skills until Mana %").SetValue(new Slider(20)));
            farmMenu.AddItem(new MenuItem("farmStartAtLevel", "Only AA until Level").SetValue(new Slider(8, 1, 18)));

            var drawMenu = _menu.AddSubMenu(new Menu("Drawing", "Drawing"));
            drawMenu.AddItem(new MenuItem("drawQE", "Draw Q, E range").SetValue(new Circle(true, System.Drawing.Color.FromArgb(125, 0, 255, 0))));
            drawMenu.AddItem(new MenuItem("drawW", "Draw W range").SetValue(new Circle(false, System.Drawing.Color.FromArgb(125, 0, 0, 255))));
            var dmgAfterComboItem = new MenuItem("DamageAfterCombo", "Draw Combo Damage").SetValue(true); //copied from esk0r Syndra
            drawMenu.AddItem(dmgAfterComboItem);

            var miscMenu = _menu.AddSubMenu(new Menu("Misc", "Misc"));
            miscMenu.AddItem(new MenuItem("packetCast", "Packet Cast").SetValue(true));

            _itemDFG = Utility.Map.GetMap().Type == Utility.Map.MapType.TwistedTreeline ? new Items.Item(3188, 750) : new Items.Item(3128, 750);

            _spellQ = new Spell(SpellSlot.Q, 990);
            _spellW = new Spell(SpellSlot.W, 795 - 95);
            _spellE = new Spell(SpellSlot.E, 1000 - 10);
            _spellR = new Spell(SpellSlot.R, 1000 - 100);

            _spellQ.SetSkillshot(.215f, 100, 1600f, false, SkillshotType.SkillshotLine);
            _spellW.SetSkillshot(.71f, _spellW.Range, float.MaxValue, false, SkillshotType.SkillshotLine);
            _spellE.SetSkillshot(.23f, 60, 1500f, true, SkillshotType.SkillshotLine);

            Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage;
            Utility.HpBarDamageIndicator.Enabled = dmgAfterComboItem.GetValue<bool>();
            dmgAfterComboItem.ValueChanged += delegate(object sender, OnValueChangeEventArgs eventArgs) { Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue<bool>(); };

            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnUpdate += Game_OnUpdate;

            Game.PrintChat("<font color=\"#1eff00\">AhriSharp by Beaving</font> - <font color=\"#00BFFF\">Loaded</font>");
        }
开发者ID:deltinho4,项目名称:LeagueSharp,代码行数:60,代码来源:Ahri.cs


示例6: OnGameLoad

        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>");
        }
开发者ID:q601333824,项目名称:ChewyMoonScripts,代码行数:27,代码来源:ChewyMoonShaco.cs


示例7: OnLoad

        public static void OnLoad(EventArgs args)
        {
            if (Player.ChampionName != "Rengar")
            {
                return;
            }

            try
            {
                Youmuu = new Items.Item(3142, 0f);

                Ignite = Player.GetSpellSlot("summonerdot");
                Notifications.AddNotification(string.Format("ElRengarRevamped by jQuery v{0}", ScriptVersion), 6000);
                Game.PrintChat(
                    "<font color='#CC0000'>Stutter?</font> Please try to put your windup, holdzone, farmdelay and so on higher than what it is now!");
                spells[Spells.E].SetSkillshot(0.25f, 70f, 1500f, true, SkillshotType.SkillshotLine);

                MenuInit.Initialize();
                Game.OnUpdate += OnUpdate;
                Drawing.OnDraw += OnDraw;
                CustomEvents.Unit.OnDash += OnDash;
                Drawing.OnEndScene += OnDrawEndScene;
                Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
开发者ID:JamesChaplin,项目名称:ElBundle,代码行数:29,代码来源:Rengar.cs


示例8: Game_OnLoad

        public static void Game_OnLoad()
        {
            #region main
            {
                Player = ObjectManager.Player;

                if (Player.ChampionName != ChampionName)
                {
                    return;
                }

                _q = new Spell(SpellSlot.Q, 600, DamageType.Physical);
                _w = new Spell(SpellSlot.W, 405, DamageType.Physical);
                _e = new Spell(SpellSlot.E, 400, DamageType.Magical);
                _r = new Spell(SpellSlot.R, 125, DamageType.Magical);

                _botrk = new Items.Item(3153, 450f);
                _cutlass = new Items.Item(3144, 450f);

            }
            #endregion

            #region content menu

            Menu = MainMenu.AddMenu("Teddy Bear - ThunderBuddy", "teddy.bear");

            comboMenu = Menu.AddSubMenu("Combo", "teddy.bear.combo");
            comboMenu.Add("teddy.bear.combo.useq", new CheckBox("Use Q", true));
            comboMenu.Add("teddy.bear.combo.usew", new CheckBox("Use W", true));
            comboMenu.Add("teddy.bear.combo.usee", new CheckBox("Use E", true));
            comboMenu.Add("teddy.bear.combo.user", new CheckBox("Use R", true));

            laneclearing = Menu.AddSubMenu("Lane clear", "teddy.bear.laneclearing");
            laneclearing.Add("teddy.bear.laneclearing.useQ", new CheckBox("Use Q", true));
            laneclearing.Add("teddy.bear.laneclearing.useW", new CheckBox("Use W", true));
            laneclearing.Add("teddy.bear.laneclearing.useE", new CheckBox("Use E", true));

            fleeMenu = Menu.AddSubMenu("Flee", "teddy.bear.flee");
            fleeMenu.Add("teddy.bear.flee.useQ", new CheckBox("Use Q", true));
            fleeMenu.Add("teddy.bear.flee.useE", new CheckBox("Use E", true));

            misc = Menu.AddSubMenu("Misc", "teddy.bear.misc");
            misc.Add("teddy.bear.misc.skW", new CheckBox("safe kill with W", true));

            drawingMenu = Menu.AddSubMenu("Drawing", "teddy.bear.drawing");
            drawingMenu.Add("DrawQ", new CheckBox("Draw Q range", true));
            drawingMenu.Add("DrawW", new CheckBox("Draw W range", true));
            drawingMenu.Add("DrawE", new CheckBox("Draw E range", true));
            drawingMenu.Add("DrawR", new CheckBox("Draw R range", true));
            drawingMenu.Add("DrawHP", new CheckBox("Draw HP Indicator", true));

            #endregion

            Interrupter2.OnInterruptableTarget += Interrupter_OnPossibleToInterrupt;
            Game.OnUpdate += Game_OnUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
            Drawing.OnEndScene += OnEndScene;
            Chat.Print("<font color='#881df2'>TeddyBear - Loaded.");
        }
开发者ID:yashine59fr,项目名称:PortAIO-1,代码行数:59,代码来源:Program.cs


示例9: ItemHandlerLoad

 public static void ItemHandlerLoad()
 {
     Dfg = Utility.Map.GetMap().Type == Utility.Map.MapType.TwistedTreeline ? new Items.Item(3188, 750) : new Items.Item(3128, 750);
     //  DFG = new Items.Item(3128, 750);
     Cutlass = new Items.Item(3144, 450);
     Hextech = new Items.Item(3146, 700);
     Frostclaim = new Items.Item(3092, 850);
     Botrk = new Items.Item(3153, 450);
     Youmuus = new Items.Item(3142, 650);
 }
开发者ID:AlrikSharp,项目名称:LeagueSharp-2,代码行数:10,代码来源:ItemHandler.cs


示例10: Buy

 public static void Buy()
 {
     for(int i=0; i < ItemsToBuy.Count; i++)
     {
         if (!ItemsToBuy[i].Bought &&
             Player.Gold > ItemsToBuy[i].Gold &&
             !Items.HasItem(ItemsToBuy[i].ID))
         {
             Items.Item Item = new Items.Item(ItemsToBuy[i].ID);
             Item.Buy();
             ItemsToBuy[i].Bought = true;
         }
     }
 }
开发者ID:jupppiter,项目名称:CTDominion,代码行数:14,代码来源:BuyManager.cs


示例11: BuyFighterItems

 public static void BuyFighterItems()
 {
     for (int i = 0; i < FighterItems.Count; i++)
     {
         if (!Items.HasItem(FighterItems[i].ID, Player) &&
             Player.Gold >= FighterItems[i].Gold &&
             !FighterItems[i].Bought)
         {
             Items.Item itm = new Items.Item(FighterItems[i].ID);
             itm.Buy();
             FighterItems[i].Bought = true;
         }
     }
 }
开发者ID:ElKappa,项目名称:LeagueSharp,代码行数:14,代码来源:BuyManager.cs


示例12: Akali

        /// <summary>
        ///     Initializes a new instance of the <see cref="Akali" /> class.
        /// </summary>
        public Akali()
        {
            this.spellList = new List<Spell>
                                 {
                                     new Spell(SpellSlot.R, 800), new Spell(SpellSlot.Q, 600), new Spell(SpellSlot.E, 325)
                                 };

            this.gunblade = ItemData.Hextech_Gunblade.GetItem();
            this.cutlass = ItemData.Bilgewater_Cutlass.GetItem();

            Game.OnUpdate += this.GameOnOnGameUpdate;
            Drawing.OnDraw += this.DrawingOnOnDraw;

            PrintChat("Akali loaded!");
        }
开发者ID:654955321,项目名称:HY_Recommend,代码行数:18,代码来源:Akali.cs


示例13: Ahri

        public Ahri()
        {
            _menu = Program.Menu;

            var comboMenu = _menu.AddSubMenu(new Menu("TeamFight", "TeamFight"));
            comboMenu.AddItem(new MenuItem("comboQ", "Use Q").SetValue(true));
            comboMenu.AddItem(new MenuItem("comboW", "Use W").SetValue(true));
            comboMenu.AddItem(new MenuItem("comboE", "Use E").SetValue(true));
            comboMenu.AddItem(new MenuItem("comboR", "Use R").SetValue(true));
            comboMenu.AddItem(new MenuItem("comboROnlyUserInitiate", "Use R only if user initiated").SetValue(false));

            var harassMenu = _menu.AddSubMenu(new Menu("Harass", "Harass"));
            harassMenu.AddItem(new MenuItem("harassQ", "Use Q").SetValue(true));
            harassMenu.AddItem(new MenuItem("harassE", "Use E").SetValue(true));
            harassMenu.AddItem(new MenuItem("harassPercent", "Skills until Mana %").SetValue(new Slider(20)));

            var farmMenu = _menu.AddSubMenu(new Menu("Lane Clear", "LaneClear"));
            farmMenu.AddItem(new MenuItem("farmQ", "Use Q").SetValue(true));
            farmMenu.AddItem(new MenuItem("farmW", "Use W").SetValue(false));
            farmMenu.AddItem(new MenuItem("farmPercent", "Skills until Mana %").SetValue(new Slider(20)));
            farmMenu.AddItem(new MenuItem("farmStartAtLevel", "Only AA until Level").SetValue(new Slider(8, 1, 18)));

            var drawMenu = _menu.AddSubMenu(new Menu("Drawing", "Drawing"));
            drawMenu.AddItem(new MenuItem("drawQE", "Draw Q, E range").SetValue(new Circle(true, System.Drawing.Color.FromArgb(125, 0, 255, 0))));
            drawMenu.AddItem(new MenuItem("drawW", "Draw W range").SetValue(new Circle(false, System.Drawing.Color.FromArgb(125, 0, 0, 255))));
            var dmgAfterComboItem = new MenuItem("DamageAfterCombo", "Draw Combo Damage").SetValue(true); //copied from esk0r Syndra
            drawMenu.AddItem(dmgAfterComboItem);

            _itemDFG = Utility.Map.GetMap() == Utility.Map.MapType.TwistedTreeline ? new Items.Item(3188, 750) : new Items.Item(3128, 750);

            _spellQ = new Spell(SpellSlot.Q, 990);
            _spellW = new Spell(SpellSlot.W, 795 - 95);
            _spellE = new Spell(SpellSlot.E, 1000 - 10);
            _spellR = new Spell(SpellSlot.R, 1000 - 100);

            _spellQ.SetSkillshot(.215f, 100, 1600f, false, SkillshotType.SkillshotLine);
            _spellW.SetSkillshot(.71f, _spellW.Range, float.MaxValue, false, SkillshotType.SkillshotLine);
            _spellE.SetSkillshot(.23f, 60, 1500f, true, SkillshotType.SkillshotLine);

            Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage;
            Utility.HpBarDamageIndicator.Enabled = dmgAfterComboItem.GetValue<bool>();
            dmgAfterComboItem.ValueChanged += delegate(object sender, OnValueChangeEventArgs eventArgs) { Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue<bool>(); };

            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnGameUpdate += Game_OnGameUpdate;

            PluginLoaded();
        }
开发者ID:Bombig001,项目名称:UltimateCarry2,代码行数:48,代码来源:Ahri.cs


示例14: Initialize

        public static void Initialize()
        {
            Q = new Spell(SpellSlot.Q, 650);
            W = new Spell(SpellSlot.W);
            E = new Spell(SpellSlot.E, 350);
            R = new Spell(SpellSlot.R, 1000);

            Q.SetTargetted(0f, 2200);
            R.SetSkillshot(0.5f, 120, 1600, false, SkillshotType.SkillshotLine);

            Ignite = ObjectManager.Player.GetSpellSlot("summonerdot");
            Youmuu = new Items.Item(3142);
            Cutlass = new Items.Item(3144, 450f);
            Blade = new Items.Item(3153, 450f);
            Tiamat = new Items.Item(3077, 400f);
            Hydra = new Items.Item(3074, 400f);
        }
开发者ID:yashine59fr,项目名称:PortAIO,代码行数:17,代码来源:Spells.cs


示例15: Game_OnGameLoad

        static void Game_OnGameLoad(EventArgs args)
        {
            if (Player.ChampionName != "Renekton")
                return;
            Q = new Spell(SpellSlot.Q, 225);
            W = new Spell(SpellSlot.W);
            E = new Spell(SpellSlot.E, 450);
            R = new Spell(SpellSlot.R);
            Tiamat = new Items.Item((int)ItemId.Tiamat_Melee_Only, 420);
            Hydra = new Items.Item((int)ItemId.Ravenous_Hydra_Melee_Only, 420);

            Menu = new Menu("【红叶推介】Dat 挖掘机", Player.ChampionName, true);

            Menu orbwalkerMenu = Menu.AddSubMenu(new Menu("Orbwalker", "Orbwalker"));
            Orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);

            Menu tsMenu = Menu.AddSubMenu(new Menu("Target Selector", "TS"));
            TargetSelector.AddToMenu(tsMenu);

            Menu spellsMenu = Menu.AddSubMenu(new Menu("Spells", "spellsMenu"));

            Menu comboMenu = spellsMenu.AddSubMenu(new Menu("Combo Spells", "comboSpells"));
            comboMenu.AddItem(new MenuItem("comboUseQ", "Use Q").SetValue(true));
            comboMenu.AddItem(new MenuItem("comboUseW", "Use W").SetValue(true));
            comboMenu.AddItem(new MenuItem("comboUseE", "Use E").SetValue(true));
            comboMenu.AddItem(new MenuItem("comboUseR", "Use R").SetValue(true));
            comboMenu.AddItem(new MenuItem("comboSliderR", "Use R at Health (%)").SetValue(new Slider(30, 1, 100)));

            Menu laneClearMenu = spellsMenu.AddSubMenu(new Menu("Lane Clear Spells", "laneClearSpells"));
            laneClearMenu.AddItem(new MenuItem("laneClearUseQ", "Use Q").SetValue(true));

            Menu mixedMenu = spellsMenu.AddSubMenu(new Menu("Mixed Mode Spells", "mixedSpells"));
            mixedMenu.AddItem(new MenuItem("mixedUseQ", "Use Q").SetValue(true));
            mixedMenu.AddItem(new MenuItem("mixedUseW", "Use W").SetValue(true));

            Menu drawMenu = Menu.AddSubMenu(new Menu("Drawing", "drawing"));
            drawMenu.AddItem(new MenuItem("drawQ", "Draw Q Range").SetValue(true));
            drawMenu.AddItem(new MenuItem("drawIt", "Draw Balls (Risky Click of the Day)").SetValue(false));

            Menu.AddToMainMenu();
            Drawing.OnDraw += Drawing_OnDraw;
            Orbwalking.AfterAttack += Orbwalking_AfterAttack;
            Game.OnUpdate += Game_OnGameUpdate;
            Game.PrintChat("<font color ='#33FFFF'>Dat Renekton</font> by GoldenGates loaded, enjoy! Best used with an activator and evader!");
        }
开发者ID:654955321,项目名称:HY_Recommend,代码行数:45,代码来源:Program.cs


示例16: Game_OnGameLoad

        static void Game_OnGameLoad(EventArgs args)
        {
            TIA = new Items.Item(3077, 400);
            HYD = new Items.Item(3074, 400);
            if (Player.BaseSkinName != ChampName) return;
            Q = new Spell(SpellSlot.Q, 250);
            W = new Spell(SpellSlot.W, Player.AttackRange);
            E = new Spell(SpellSlot.E, 460);
            R = new Spell(SpellSlot.R, float.MaxValue);
            W.SetSkillshot(0.5f, 50.0f, 20.0f, false, SkillshotType.SkillshotLine);

            RenektonWrapper = new Menu(ChampName, ChampName, true);

            RenektonWrapper.AddSubMenu(new Menu("Orbwalker", "Orbwalker"));
            Orbwalker = new Orbwalking.Orbwalker(RenektonWrapper.SubMenu("Orbwalker"));
            var ts = new Menu("Target Selector", "Target Selector");
            SimpleTs.AddToMenu(ts);
            RenektonWrapper.AddSubMenu(ts);
            RenektonWrapper.AddSubMenu(new Menu("Combo", "Combo"));
            RenektonWrapper.SubMenu("Combo").AddItem(new MenuItem("chance", "Use R Life?").SetValue(new Slider(40, 0, 100)));
            RenektonWrapper.SubMenu("Combo").AddItem(new MenuItem("ComboActive", "COMBO!").SetValue(new KeyBind(32, KeyBindType.Press)));
            RenektonWrapper.SubMenu("Combo").AddItem(new MenuItem("useR", "Use R").SetValue(true));
            RenektonWrapper.SubMenu("Combo").AddItem(new MenuItem("useE2", "Use E twice").SetValue(true));
            RenektonWrapper.AddSubMenu(new Menu("Interrupt", "Interrupt"));
           RenektonWrapper.AddSubMenu(new Menu("Harrass", "Harrass"));
            RenektonWrapper.AddSubMenu(new Menu("Farm", "Farm"));
            RenektonWrapper.AddSubMenu(new Menu("Draw", "Drawing"));
            RenektonWrapper.SubMenu("Draw").AddItem(new MenuItem("DrawActive", "Enable drawings").SetValue(new KeyBind("L".ToCharArray()[0], KeyBindType.Toggle)));
            RenektonWrapper.SubMenu("Harrass").AddItem(new MenuItem("HarrassActive", "Harrass").SetValue(new KeyBind("X".ToCharArray()[0], KeyBindType.Press)));
           RenektonWrapper.SubMenu("Farm").AddItem(new MenuItem("FarmActive", "Farm").SetValue(new KeyBind("V".ToCharArray()[0], KeyBindType.Press)));
           RenektonWrapper.SubMenu("Farm").AddItem(new MenuItem("useqf", "Use Q to Farm").SetValue(true));
            RenektonWrapper.AddSubMenu(new Menu("AntiGapclose", "AntiGapclose"));
            RenektonWrapper.SubMenu("AntiGapclose").AddItem(new MenuItem("useeg", "Use E to AntiGapclose").SetValue(true));
            RenektonWrapper.SubMenu("Interrupt").AddItem(new MenuItem("usew", "Use W to Interrupt").SetValue(true));
            RenektonWrapper.AddToMainMenu();

            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnGameUpdate += Game_OnGameUpdate;
            AntiGapcloser.OnEnemyGapcloser += AntiGapclose;
            Game.PrintChat("Frosty " + ChampName + " by newchild 1.0");
            Interrupter.OnPosibleToInterrupt += OnPosibleToInterrupt;
            
        }
开发者ID:CupidL0ve,项目名称:LeagueSharp,代码行数:43,代码来源:Program.cs


示例17: Yasuo

        /// <summary>
        ///     Initializes a new instance of the <see cref="Yasuo" /> class.
        /// </summary>
        public Yasuo()
        {
            // Setup Spells
            this.W = new Spell(SpellSlot.W, 400);
            this.E = new Spell(SpellSlot.E, 475);
            this.R = new Spell(SpellSlot.R, 1200);

            this.E.SetTargetted(0.25f, 20);

            // Setup Items
            this.Botrk = ItemData.Blade_of_the_Ruined_King.GetItem();

            PrintChat("Yasuo loaded!");

            Game.OnUpdate += this.Game_OnGameUpdate;
            AntiGapcloser.OnEnemyGapcloser += this.AntiGapcloserOnOnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += this.InterrupterOnOnPossibleToInterrupt;
            Drawing.OnDraw += this.DrawingOnOnDraw;
        }
开发者ID:654955321,项目名称:HY_Recommend,代码行数:22,代码来源:Yasuo.cs


示例18: OnStart

 private static void OnStart(EventArgs args)
 {
     var plugin = Type.GetType("BrianSharp.Plugin." + Player.ChampionName);
     if (plugin == null)
     {
         Helper.AddNotif(string.Format("[Brian Sharp] - {0}: Not Load !", Player.ChampionName), 3000);
         return;
     }
     MainMenu = new Menu("Brian Sharp", "BrianSharp", true);
     var infoMenu = new Menu("Info", "Info");
     {
         infoMenu.AddItem(new MenuItem("Author", "Author: Brian"));
         infoMenu.AddItem(new MenuItem("Paypal", "Paypal: [email protected]"));
         MainMenu.AddSubMenu(infoMenu);
     }
     TargetSelector.AddToMenu(MainMenu.AddSubMenu(new Menu("Target Selector", "TS")));
     Orbwalk.AddToMainMenu(MainMenu);
     NewInstance(plugin);
     Helper.AddBool(
         MainMenu.SubMenu(Player.ChampionName + "_Plugin").SubMenu("Misc"), "UsePacket", "Use Packet To Cast");
     Tiamat = ItemData.Tiamat_Melee_Only.GetItem();
     Hydra = ItemData.Ravenous_Hydra_Melee_Only.GetItem();
     Youmuu = ItemData.Youmuus_Ghostblade.GetItem();
     Zhonya = ItemData.Zhonyas_Hourglass.GetItem();
     Seraph = ItemData.Seraphs_Embrace.GetItem();
     Sheen = ItemData.Sheen.GetItem();
     Iceborn = ItemData.Iceborn_Gauntlet.GetItem();
     Trinity = ItemData.Trinity_Force.GetItem();
     Flash = Player.GetSpellSlot("summonerflash");
     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");
     MainMenu.AddToMainMenu();
     Helper.AddNotif(string.Format("[Brian Sharp] - {0}: Loaded !", Player.ChampionName), 3000);
 }
开发者ID:LSharpAura,项目名称:LeagueSharp-1,代码行数:41,代码来源:Program.cs


示例19: PerfectDarius

        public PerfectDarius()
        {
            if (ObjectManager.Player.ChampionName == "Darius")
            {
                Game.PrintChat("Perfect Darius v1.0");
                HealthPot = new Items.Item(2003, 0);
                ManaPot = new Items.Item(2004, 0);
                CrystalFlask = new Items.Item(2041, 0);
                IgniteSlot = ObjectManager.Player.GetSpellSlot("summonerdot");
                Menu_OnLoad();
                Game.OnUpdate += Game_OnUpdate;

                Drawing.OnDraw += Drawing_OnDraw;
                Drawing.OnEndScene += Drawing_OnEndScene;

                Orbwalking.AfterAttack += Orbwalking_AfterAttack;

                Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;

                Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
            }
        }
开发者ID:centilmen50,项目名称:Perfect-Darius,代码行数:22,代码来源:PerfectDarius.cs


示例20: Game_OnGameUpdate

        private void Game_OnGameUpdate(EventArgs args)
        {
            if (!IsActive() || !_db.IsReady())
                return;

            AutoItems.UpdateCCList();
            List<BuffInstance> buffList = Activator.GetActiveCcBuffs(AutoItems._buffs);

            if (buffList.Count() >=
                AutoDervishBladeActivator.GetMenuItem("SAwarenessActivatorDefensiveCleanseSelfConfigMinSpells")
                    .GetValue<Slider>()
                    .Value &&
                AutoDervishBladeActivator.GetMenuItem("SAwarenessActivatorDefensiveCleanseSelfDervishBlade")
                    .GetValue<bool>() &&
                Activator._lastItemCleanseUse + 1 < Game.Time)
            {
                var db = new Items.Item(3137, 0);
                if (db.IsReady())
                {
                    db.Cast();
                    Activator._lastItemCleanseUse = Game.Time;
                }
            }
        }
开发者ID:kampfi,项目名称:SAwarenessBeta,代码行数:24,代码来源:AutoDervishBlade.cs



注:本文中的LeagueSharp.Common.Items.Item类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Common.Menu类代码示例发布时间:2022-05-26
下一篇:
C# Common.Interrupter2类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap