当前位置: 首页>>代码示例>>C#>>正文


C# AIHeroClient.GetSpellSlotFromName方法代码示例

本文整理汇总了C#中AIHeroClient.GetSpellSlotFromName方法的典型用法代码示例。如果您正苦于以下问题:C# AIHeroClient.GetSpellSlotFromName方法的具体用法?C# AIHeroClient.GetSpellSlotFromName怎么用?C# AIHeroClient.GetSpellSlotFromName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AIHeroClient的用法示例。


在下文中一共展示了AIHeroClient.GetSpellSlotFromName方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: dangerousSpell

 private static bool dangerousSpell(SpellData spellData, AIHeroClient sender)
 {
     var slot = sender.GetSpellSlotFromName(spellData.Name);
     var enemies = EntityManager.Heroes.Enemies;
     int j2 = 0;
     for (int j = 0; j < enemies.Count(); j++)
     {
         if (sender.NetworkId == enemies[j].NetworkId)
         {
             j2 = j;
             break;
         }
     }
     int i = 0;
     switch (slot)
     {
         case SpellSlot.Q:
             i = 0;
             break;
         case SpellSlot.W:
             i = 1;
             break;
         case SpellSlot.E:
             i = 2;
             break;
         case SpellSlot.R:
             i = 3;
             break;
     }
     if (Settings._skills[j2 * 4 + i].CurrentValue)
         return true;
     return false;
 }
开发者ID:kzashy,项目名称:eBuddy,代码行数:33,代码来源:SaveMe.cs

示例2: dangerousSpell

        private static bool dangerousSpell(SpellData spellData, AIHeroClient sender)
        {
            var slot = sender.GetSpellSlotFromName(spellData.Name);
            if (Settings.onAhriE && sender.ChampionName == "Ahri" && slot == SpellSlot.E)
            {
                return true;
            }
            if (Settings.onAliKnockup && sender.ChampionName == "Alistar" && slot == SpellSlot.Q)
            {
                return true;
            } 
            if (Settings.onAnnieUlt && sender.ChampionName == "Annie" && slot == SpellSlot.R)
            {
                return true;
            } 
            if (Settings.onAsheUlt && sender.ChampionName == "Ashe" && slot == SpellSlot.R)
            {
                return true;
            }
            if (Settings.onBlitzGrab && sender.ChampionName == "Blitzcrank" && slot == SpellSlot.Q)
            {
                return true;
            }
            if (Settings.onBraumUlt && sender.ChampionName == "Braum" && slot == SpellSlot.R)
            {
                return true;
            }
            if (Settings.onMumuUlt && sender.ChampionName == "Amumu" && slot == SpellSlot.R)
            {
                return true;
            }
            if (Settings.onCaitUlt && sender.ChampionName == "Caitlyn" && slot == SpellSlot.R)
            {
                return true;
            }
            if (Settings.onCassioUlt && sender.ChampionName == "Cassiopeia" && slot == SpellSlot.R)
            {
                return true;
            }
            if (Settings.onChoQ && sender.ChampionName == "Chogath" && slot == SpellSlot.Q)
            {
                return true;
            }
            if (Settings.onChoUlt && sender.ChampionName == "Chogath" && slot == SpellSlot.R)
            {
                return true;
            }
            if (Settings.onDariusUlt && sender.ChampionName == "Darius" && slot == SpellSlot.R)
            {
                return true;
            }
            if (Settings.onDianaUlt && sender.ChampionName == "Diana" && slot == SpellSlot.R)
            {
                return true;
            }
            if (Settings.onDravenUlt && sender.ChampionName == "Draven" && slot == SpellSlot.R)
            {
                return true;
            }
            if (Settings.onEkkoUlt && sender.ChampionName == "Ekko" && slot == SpellSlot.R)
            {
                return true;
            }
            if (Settings.onEliseE && sender.ChampionName == "Elise" && slot == SpellSlot.E && spellData.Name == "EliseHumanE")
            {
                return true;
            }
            if (Settings.onEzUlt && sender.ChampionName == "Ezreal" && slot == SpellSlot.R)
            {
                return true;
            }
            if (Settings.onFioraUlt && sender.ChampionName == "Fiora" && slot == SpellSlot.R)
            {
                return true;
            } 
            if (Settings.onFizzUlt && sender.ChampionName == "Fizz" && slot == SpellSlot.R)
            {
                return true;
            }
            if (Settings.onGalioUlt && sender.ChampionName == "Galio" && slot == SpellSlot.R)
            {
                return true;
            }
            if (Settings.onGnarUlt && sender.ChampionName == "Gnar" && slot == SpellSlot.R)
            {
                return true;
            }
            if (Settings.onGragasUlt && sender.ChampionName == "Gragas" && slot == SpellSlot.R)
            {
                return true;
            }
            if (Settings.onGravesUlt && sender.ChampionName == "Graves" && slot == SpellSlot.R)
            {
                return true;
            }
            if (Settings.onHecarimUlt && sender.ChampionName == "Hecarim" && slot == SpellSlot.R)
            {
                return true;
            }
            if (Settings.onJinxUlt && sender.ChampionName == "Jinx" && slot == SpellSlot.R)
//.........这里部分代码省略.........
开发者ID:denizereer3,项目名称:EloBuddy,代码行数:101,代码来源:SaveMePls.cs

示例3: Execute

        public static void Execute()
        {
            Player = ObjectManager.Player;
            if (Player.ChampionName != ChampionName)
            {
                return;
            }

            Q = new Spell.Skillshot(SpellSlot.Q, 925, SkillShotType.Linear, 250, 1450, 60);
            Q2 = new Spell.Skillshot(SpellSlot.Q, 1800, SkillShotType.Linear, 250, 1450, 60);
            Q.AllowedCollisionCount = int.MaxValue;
            W = new Spell.Targeted(SpellSlot.W, 650);
            E = new Spell.Targeted(SpellSlot.E, 650);
            R = new Spell.Targeted(SpellSlot.R, 900);

            IgniteSlot = Player.GetSpellSlotFromName("SummonerDot");

            PixManager.DrawPix = true;

            menuIni = MainMenu.AddMenu(ChampionName, ChampionName);
            menuIni.AddGroupLabel("Welcome to the Worst Lulu addon!");
            menuIni.AddGroupLabel("Global Settings");
            menuIni.Add("Combo", new CheckBox("Use Combo?"));
            menuIni.Add("Harass", new CheckBox("Use Harass?"));
            menuIni.Add("LaneClear", new CheckBox("Use LaneClear?"));
            menuIni.Add("Flee", new CheckBox("Use Flee?"));
            menuIni.Add("Saver", new CheckBox("Use Saver?"));
            menuIni.Add("Drawings", new CheckBox("Use Drawings?"));

            ComboMenu = menuIni.AddSubMenu("Combo");
            ComboMenu.AddGroupLabel("Combo Settings");
            ComboMenu.Add("Q", new CheckBox("Use Q"));
            ComboMenu.Add("W", new CheckBox("Use W"));
            ComboMenu.Add("E", new CheckBox("Use E"));
            ComboMenu.Add("Wkite", new CheckBox("Use W to Kite"));
            ComboMenu.Add("WkiteD", new Slider("W Kite distance", 300, 0, 500));

            HarassMenu = menuIni.AddSubMenu("Harass");
            HarassMenu.AddGroupLabel("Harass Settings");
            HarassMenu.Add("Q", new CheckBox("Use Q"));
            HarassMenu.Add("E", new CheckBox("Use E"));
            HarassMenu.Add("harassmana", new Slider("Harass Mana Manager", 60, 0, 100));

            LaneMenu = menuIni.AddSubMenu("Farm");
            LaneMenu.AddGroupLabel("LaneCelar Settings");
            LaneMenu.Add("Q", new CheckBox("Use Q"));
            LaneMenu.Add("E", new CheckBox("Use E"));
            LaneMenu.Add("lanemana", new Slider("Farm Mana Manager", 80, 0, 100));
            LaneMenu.AddGroupLabel("JungleClear Settings");
            LaneMenu.Add("QJ", new CheckBox("Use Q"));
            LaneMenu.Add("EJ", new CheckBox("Use E"));

            FleeMenu = menuIni.AddSubMenu("Flee");
            FleeMenu.AddGroupLabel("Flee Settings");
            FleeMenu.Add("Q", new CheckBox("Use Q"));
            FleeMenu.Add("exQ", new CheckBox("Use Extended Q", false));
            FleeMenu.Add("Wkite", new CheckBox("Use W to Kite"));
            FleeMenu.Add("WkiteD", new Slider("W Kite distance", 300, 0, 500));
            FleeMenu.Add("fleemana", new Slider("Flee Mana Manager", 60, 0, 100));

            MiscMenu = menuIni.AddSubMenu("Misc");
            MiscMenu.AddGroupLabel("Misc Settings");
            MiscMenu.Add("AutoE", new CheckBox("KS Enemy with E"));
            MiscMenu.Add("Support", new CheckBox("Support Mode", false));

            Saver = menuIni.AddSubMenu("Saver");
            Saver.AddGroupLabel("Saver Settings");
            Saver.AddGroupLabel("Anti GapCloser");
            Saver.Add("allywgapclose", new CheckBox("Use W On GapClosing Ally"));
            Saver.Add("enemywgapclose", new CheckBox("Use W On GapClosing Enemy"));
            Saver.Add("gapcloserR", new CheckBox("Use R On GapClosing Enemy"));
            Saver.AddGroupLabel("Interrupter");
            Saver.Add("InterruptSpellsW", new CheckBox("Use W Interrupt Spells"));
            Saver.Add("InterruptSpellsR", new CheckBox("Use R Interrupt Spells"));
            Saver.AddGroupLabel("Auto Shields");
            Saver.Add("AutoES", new CheckBox("Auto E Shields Allies"));
            Saver.Add("AutoR", new CheckBox("Auto R AoE || Saver"));
            Saver.AddSeparator();
            Saver.AddGroupLabel("Don't Use Saver On:");
            foreach (var ally in ObjectManager.Get<AIHeroClient>())
            {
                CheckBox cb = new CheckBox(ally.BaseSkinName);
                cb.CurrentValue = false;
                if (ObjectManager.Player.Team == ally.Team)
                {
                    Saver.Add("DontUlt" + ally.BaseSkinName, cb);
                }
            }

            DrawMenu = menuIni.AddSubMenu("Drawings");
            DrawMenu.AddGroupLabel("Drawing Settings");
            DrawMenu.Add("Q", new CheckBox("Draw Q"));
            DrawMenu.Add("PixQ", new CheckBox("Draw Pix Q Range"));
            DrawMenu.Add("W", new CheckBox("Draw W"));
            DrawMenu.Add("E", new CheckBox("Draw E"));
            DrawMenu.Add("R", new CheckBox("Draw R"));
            DrawMenu.Add("PixP", new CheckBox("Draw Pix Position"));

            Drawing.OnDraw += OnDraw;
            Game.OnUpdate += Game_OnUpdate;
//.........这里部分代码省略.........
开发者ID:FireBuddy,项目名称:karthus,代码行数:101,代码来源:Program.cs

示例4: Execute

        public static void Execute()
        {
            Player = ObjectManager.Player;
            if (Player.ChampionName != ChampionName)
            {
                return;
            }

            Q = new Spell.Skillshot(SpellSlot.Q, 925, SkillShotType.Linear, 250, 1450, 60);
            Q2 = new Spell.Skillshot(SpellSlot.Q, 1800, SkillShotType.Linear, 250, 1450, 60);
            Q.AllowedCollisionCount = int.MaxValue;
            W = new Spell.Targeted(SpellSlot.W, 650);
            E = new Spell.Targeted(SpellSlot.E, 650);
            R = new Spell.Targeted(SpellSlot.R, 900);

            IgniteSlot = Player.GetSpellSlotFromName("SummonerDot");

            PixManager.DrawPix = true;

            menuIni = MainMenu.AddMenu(ChampionName, ChampionName);
            menuIni.AddGroupLabel("Welcome to the Worst Lulu addon!");
            menuIni.AddGroupLabel("Genel Ayarlar");
            menuIni.Add("Combo", new CheckBox("Kullan Combo?"));
            menuIni.Add("Harass", new CheckBox("Kullan Dürtme?"));
            menuIni.Add("LaneClear", new CheckBox("Kullan Lanetemizleme?"));
            menuIni.Add("Flee", new CheckBox("Kullan Kaçma?"));
            menuIni.Add("Saver", new CheckBox("Kullan Koruyucu?"));
            menuIni.Add("Drawings", new CheckBox("Kullan Göstergeler?"));

            ComboMenu = menuIni.AddSubMenu("Combo");
            ComboMenu.AddGroupLabel("Kombo Ayarları");
            ComboMenu.Add("Q", new CheckBox("Kullan Q"));
            ComboMenu.Add("W", new CheckBox("Kullan W"));
            ComboMenu.Add("E", new CheckBox("Kullan E"));
            ComboMenu.Add("Wkite", new CheckBox("W kite ile kullan"));
            ComboMenu.Add("WkiteD", new Slider("W Kite Mesafesi", 300, 0, 500));

            HarassMenu = menuIni.AddSubMenu("Harass");
            HarassMenu.AddGroupLabel("Dürtme Ayarları");
            HarassMenu.Add("Q", new CheckBox("Kullan Q"));
            HarassMenu.Add("E", new CheckBox("Kullan E"));
            HarassMenu.Add("harassmana", new Slider("Dürtme Mana Yardımcısı", 60, 0, 100));

            LaneMenu = menuIni.AddSubMenu("Farm");
            LaneMenu.AddGroupLabel("Lanetemizleme Ayarları");
            LaneMenu.Add("Q", new CheckBox("Kullan Q"));
            LaneMenu.Add("E", new CheckBox("Kullan E"));
            LaneMenu.Add("lanemana", new Slider("Farm Mana Yardımcısı", 80, 0, 100));
            LaneMenu.AddGroupLabel("Ormantemizleme Ayarları");
            LaneMenu.Add("QJ", new CheckBox("Kullan Q"));
            LaneMenu.Add("EJ", new CheckBox("Kullan E"));

            FleeMenu = menuIni.AddSubMenu("Flee");
            FleeMenu.AddGroupLabel("Kaçma Ayarları");
            FleeMenu.Add("Q", new CheckBox("Kullan Q"));
            FleeMenu.Add("exQ", new CheckBox("Q ile zorla", false));
            FleeMenu.Add("Wkite", new CheckBox("Kite için W kullan"));
            FleeMenu.Add("WkiteD", new Slider("W kite mesafesi", 300, 0, 500));
            FleeMenu.Add("fleemana", new Slider("Kaçma mana yardımcısı", 60, 0, 100));

            MiscMenu = menuIni.AddSubMenu("Misc");
            MiscMenu.AddGroupLabel("EK Ayarlar");
            MiscMenu.Add("AutoE", new CheckBox("KS E ile"));
            MiscMenu.Add("Support", new CheckBox("Destek Modu", false));

            Saver = menuIni.AddSubMenu("Saver");
            Saver.AddGroupLabel("Koruyucu Ayarları");
            Saver.AddGroupLabel("Anti GapCloser");
            Saver.Add("allywgapclose", new CheckBox("Dostlara W KUllan"));
            Saver.Add("enemywgapclose", new CheckBox("Düşmana W kullan"));
            Saver.Add("gapcloserR", new CheckBox("DÜşmandan kurutlmak için R Kullan"));
            Saver.AddGroupLabel("Interrupter");
            Saver.Add("InterruptSpellsW", new CheckBox("İnterrup W"));
            Saver.Add("InterruptSpellsR", new CheckBox("İnterrupt R"));
            Saver.AddGroupLabel("Otomatik Kalkan");
            Saver.Add("AutoES", new CheckBox("Otomatik E Dostlara"));
            Saver.Add("AutoR", new CheckBox("Otomatik R Koruyucu"));
            Saver.AddSeparator();
            Saver.AddGroupLabel("R yi KUllan:");
            foreach (var ally in ObjectManager.Get<AIHeroClient>())
            {
                CheckBox cb = new CheckBox(ally.BaseSkinName);
                cb.CurrentValue = false;
                if (ObjectManager.Player.Team == ally.Team)
                {
                    Saver.Add("DontUlt" + ally.BaseSkinName, cb);
                }
            }

            DrawMenu = menuIni.AddSubMenu("Drawings");
            DrawMenu.AddGroupLabel("Gösterge Ayarları");
            DrawMenu.Add("Q", new CheckBox("Göster Q"));
            DrawMenu.Add("PixQ", new CheckBox("Göster Pix Q Menzili"));
            DrawMenu.Add("W", new CheckBox("Göster W"));
            DrawMenu.Add("E", new CheckBox("Göster E"));
            DrawMenu.Add("R", new CheckBox("Göster R"));
            DrawMenu.Add("PixP", new CheckBox("Göster Pix Pozisyonu"));

            Drawing.OnDraw += OnDraw;
            Game.OnUpdate += Game_OnUpdate;
//.........这里部分代码省略.........
开发者ID:,项目名称:,代码行数:101,代码来源:

示例5: Game_OnGameLoad

        private static void Game_OnGameLoad(EventArgs args)
        {
            Player = ObjectManager.Player;

            if (Player.BaseSkinName != ChampionName) return;

            //Create the spells

            QDummy = new Spell.Skillshot(SpellSlot.Q, 1100, SkillShotType.Linear, 250, int.MaxValue, 50)
            {
                AllowedCollisionCount = 0
            };
            QSplit = new Spell.Skillshot(SpellSlot.Q, 1100, SkillShotType.Linear, 250, 2100, 50)
            {
                MinimumHitChance = HitChance.High,
                AllowedCollisionCount = 0
            };
            Q = new Spell.Skillshot(SpellSlot.Q, 1100, SkillShotType.Linear, 250, 1300, 50)
            {
                MinimumHitChance = HitChance.High,
                AllowedCollisionCount = 0
            };
            W = new Spell.Skillshot(SpellSlot.W, 1050, SkillShotType.Linear, 250, 1700, 80)
            {
                MinimumHitChance = HitChance.High,
                AllowedCollisionCount = int.MaxValue
            };
            E = new Spell.Skillshot(SpellSlot.E, 850, SkillShotType.Circular, 500, 1500, 120)
            {
                MinimumHitChance = HitChance.High,
                AllowedCollisionCount = int.MaxValue
            };
            R = new Spell.Skillshot(SpellSlot.R, 1550, SkillShotType.Linear)
            {
                AllowedCollisionCount = int.MaxValue
            };

            IgniteSlot = Player.GetSpellSlotFromName("SummonerDot");

            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(E);
            SpellList.Add(R);

            menuIni = MainMenu.AddMenu(ChampionName, ChampionName);
            menuIni.AddGroupLabel("Welcome to the Worst VelKoz addon!");
            menuIni.AddGroupLabel("Global Settings");
            menuIni.Add("Combo", new CheckBox("Use Combo?"));
            menuIni.Add("Harass", new CheckBox("Use Harass?"));
            menuIni.Add("Clear", new CheckBox("Use Lane Clear?"));
            menuIni.Add("Drawings", new CheckBox("Use Drawings?"));

            ComboMenu = menuIni.AddSubMenu("Combo");
            ComboMenu.AddGroupLabel("Combo Settings");
            ComboMenu.Add("Q", new CheckBox("Use Q"));
            ComboMenu.Add("W", new CheckBox("Use W"));
            ComboMenu.Add("E", new CheckBox("Use E"));
            ComboMenu.Add("R", new CheckBox("Use R"));
            ComboMenu.Add("Ignite", new CheckBox("Ignite"));
            ComboMenu.Add("Rhit", new Slider("Use R Hit", 2, 1, 5));

            HarassMenu = menuIni.AddSubMenu("Harass");
            HarassMenu.AddGroupLabel("Harass Settings");
            HarassMenu.Add("Q", new CheckBox("Use Q"));
            HarassMenu.Add("W", new CheckBox("Use W"));
            HarassMenu.Add("E", new CheckBox("Use E"));
            HarassMenu.Add("Mana", new Slider("Save Mana %", 30, 0, 100));

            LaneMenu = menuIni.AddSubMenu("Farm");
            LaneMenu.AddGroupLabel("LaneClear Settings");
            LaneMenu.Add("Q", new CheckBox("Use Q"));
            LaneMenu.Add("W", new CheckBox("Use W"));
            LaneMenu.Add("E", new CheckBox("Use E"));
            LaneMenu.Add("Mana", new Slider("Save Mana %", 30, 0, 100));

            MiscMenu = menuIni.AddSubMenu("Misc");
            MiscMenu.AddGroupLabel("Misc Settings");
            MiscMenu.Add("gapcloser", new CheckBox("Anti-GapCloser"));
            MiscMenu.Add("Interrupt", new CheckBox("Interrupt"));
            MiscMenu.Add("gapclosermana", new Slider("Anti-GapCloser Mana", 25, 0, 100));

            DrawMenu = menuIni.AddSubMenu("Drawings");
            DrawMenu.AddGroupLabel("Drawing Settings");
            DrawMenu.Add("Q", new CheckBox("Draw Q"));
            DrawMenu.Add("W", new CheckBox("Draw W"));
            DrawMenu.Add("E", new CheckBox("Draw E"));
            DrawMenu.Add("R", new CheckBox("Draw R"));

            Game.OnUpdate += Game_OnGameUpdate;
            Interrupter.OnInterruptableSpell += Interrupter2_OnInterruptableTarget;
            GameObject.OnCreate += Obj_SpellMissile_OnCreate;
            Spellbook.OnUpdateChargeableSpell += Spellbook_OnUpdateChargedSpell;
        }
开发者ID:FireBuddy,项目名称:karthus,代码行数:93,代码来源:Program.cs

示例6: Game_OnGameLoad

        private static void Game_OnGameLoad(EventArgs args)
        {
            Player = ObjectManager.Player;
            if (Player.ChampionName != championName) return;

            Q = new Spell.Skillshot(SpellSlot.Q, 880, SkillShotType.Linear, 250, 1700, 50) { AllowedCollisionCount = int.MaxValue };
            W = new Spell.Skillshot(SpellSlot.W, 750, SkillShotType.Circular, 700, 1400, 300);
            E = new Spell.Skillshot(SpellSlot.E, 975, SkillShotType.Linear, 250, 1600, 60) { AllowedCollisionCount = 0 };
            EFlash = new Spell.Skillshot(SpellSlot.E, 1350, SkillShotType.Linear, 250, 1600, 60) { AllowedCollisionCount = 0 };
            R = new Spell.Skillshot(SpellSlot.R, 475, SkillShotType.Circular, 250, 1400, 300);

            var ignite_slot = Player.GetSpellSlotFromName("summonerdot");
            if (ignite_slot != SpellSlot.Unknown)
                Ignite = new Spell.Targeted(ignite_slot, 600);

            var flash_slot = Player.GetSpellSlotFromName("summonerflash");
            if (flash_slot != SpellSlot.Unknown)
                Flash = new Spell.Targeted(flash_slot, 425);

            MenuLoad();
            Game.OnUpdate += Game_OnGameUpdate;
            Game.OnTick += Game_OnTick;
            Drawing.OnDraw += Drawing_OnDraw;
            Drawing.OnEndScene += Drawing_OnEndScene;
            Interrupter.OnInterruptableSpell += new Interrupter.InterruptableSpellHandler(Interrupter_OnInterruptableSpell);
        }
开发者ID:FireBuddy,项目名称:elobuddy-4,代码行数:26,代码来源:Program.cs

示例7: Game_OnGameLoad

        private static void Game_OnGameLoad(EventArgs args)
        {
            try
            {
                _player = ObjectManager.Player;
                if (ObjectManager.Player.BaseSkinName != ChampionName) return;
                _q = new Spell.Skillshot(SpellSlot.Q, 900, SkillShotType.Linear, 250, 1700, 50);
                _w = new Spell.Skillshot(SpellSlot.W, (int)550f, SkillShotType.Linear);
                _e = new Spell.Skillshot(SpellSlot.E, (int)270f, SkillShotType.Circular);
                _r = new Spell.Targeted(SpellSlot.R, (int)650f);

                //_q.SetSkillshot(0.25f, 50f, 1700f, false, SkillshotType.SkillshotLine);

                _bilge = new Item(3144, 475f);
                _blade = new Item(3153, 425f);
                _hydra = new Item(3074, 250f);
                _tiamat = new Item(3077, 250f);
                _rand = new Item(3143, 490f);
                _lotis = new Item(3190, 590f);
                _youmuu = new Item(3142, 10);
                _igniteSlot = _player.GetSpellSlotFromName("SummonerDot");

                var enemy = from hero in ObjectManager.Get<AIHeroClient>()
                            where hero.IsEnemy == true
                            select hero;
                // Just menu things test
                //_config = new Menu("Zed Is Back", "Zed Is Back", true);
                _config = MainMenu.AddMenu("Zed Is Back", "Zed Is Back");

               /* TargetSelectorMenu = new Menu("Target Selector", "Target Selector");
                TargetSelector.AddToMenu(TargetSelectorMenu);
                _config.AddSubMenu(TargetSelectorMenu);*/

                /*_config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
                _orbwalker = new Orbwalking.Orbwalker(_config.SubMenu("Orbwalking"));*/

                //Combo
                /*_config.AddSubMenu(new Menu("Combo", "Combo"));
                _config.SubMenu("Combo").AddItem(new MenuItem("UseWC", "Use W (also gap close)")).SetValue(true);
                _config.SubMenu("Combo").AddItem(new MenuItem("UseIgnitecombo", "Use Ignite(rush for it)")).SetValue(true);
                _config.SubMenu("Combo").AddItem(new MenuItem("UseUlt", "Use Ultimate")).SetValue(true);
                _config.SubMenu("Combo").AddItem(new MenuItem("ActiveCombo", "Combo!").SetValue(new KeyBind(32, KeyBindType.Press)));
                _config.SubMenu("Combo")
                    .AddItem(new MenuItem("TheLine", "The Line Combo").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));*/
                Combomenu = _config.AddSubMenu("Combo");
                Combomenu.Add("UseWC", new CheckBox("Use W (also gap close)"));
                Combomenu.Add("UseIgnitecombo", new CheckBox("Use Ignite(rush for it)"));
                Combomenu.Add("UseUlt", new CheckBox("Use Ultimate"));
                Combomenu.Add("ActiveCombo", new KeyBind("Combo!", false, KeyBind.BindTypes.HoldActive, "ESPACE".ToCharArray()[0]));
                Combomenu.Add("TheLine", new KeyBind("The Line Combo", false, KeyBind.BindTypes.HoldActive, "T".ToCharArray()[0]));

                //Harass
              /*  _config.AddSubMenu(new Menu("Harass", "Harass"));
                _config.SubMenu("Harass").AddItem(new MenuItem("longhar", "Long Poke (toggle)").SetValue(new KeyBind("U".ToCharArray()[0], KeyBindType.Toggle)));
                _config.SubMenu("Harass").AddItem(new MenuItem("UseItemsharass", "Use Tiamat/Hydra")).SetValue(true);
                _config.SubMenu("Harass").AddItem(new MenuItem("UseWH", "Use W")).SetValue(true);
                _config.SubMenu("Harass")
                    .AddItem(
                        new MenuItem("ActiveHarass", "Harass!").SetValue(new KeyBind("C".ToCharArray()[0], KeyBindType.Press)));*/

                //items
              /*  _config.AddSubMenu(new Menu("items", "items"));
                _config.SubMenu("items").AddSubMenu(new Menu("Offensive", "Offensive"));
                _config.SubMenu("items").SubMenu("Offensive").AddItem(new MenuItem("Youmuu", "Use Youmuu's")).SetValue(true);
                _config.SubMenu("items").SubMenu("Offensive").AddItem(new MenuItem("Tiamat", "Use Tiamat")).SetValue(true);
                _config.SubMenu("items").SubMenu("Offensive").AddItem(new MenuItem("Hydra", "Use Hydra")).SetValue(true);
                _config.SubMenu("items").SubMenu("Offensive").AddItem(new MenuItem("Bilge", "Use Bilge")).SetValue(true);
                _config.SubMenu("items")
                    .SubMenu("Offensive")
                    .AddItem(new MenuItem("BilgeEnemyhp", "If Enemy Hp <").SetValue(new Slider(85, 1, 100)));
                _config.SubMenu("items")
                    .SubMenu("Offensive")
                    .AddItem(new MenuItem("Bilgemyhp", "Or your Hp < ").SetValue(new Slider(85, 1, 100)));
                _config.SubMenu("items").SubMenu("Offensive").AddItem(new MenuItem("Blade", "Use Blade")).SetValue(true);
                _config.SubMenu("items")
                    .SubMenu("Offensive")
                    .AddItem(new MenuItem("BladeEnemyhp", "If Enemy Hp <").SetValue(new Slider(85, 1, 100)));
                _config.SubMenu("items")
                    .SubMenu("Offensive")
                    .AddItem(new MenuItem("Blademyhp", "Or Your  Hp <").SetValue(new Slider(85, 1, 100)));
                _config.SubMenu("items").AddSubMenu(new Menu("Deffensive", "Deffensive"));
                _config.SubMenu("items")
                    .SubMenu("Deffensive")
                    .AddItem(new MenuItem("Omen", "Use Randuin Omen"))
                    .SetValue(true);
                _config.SubMenu("items")
                    .SubMenu("Deffensive")
                    .AddItem(new MenuItem("Omenenemys", "Randuin if enemys>").SetValue(new Slider(2, 1, 5)));
                _config.SubMenu("items")
                    .SubMenu("Deffensive")
                    .AddItem(new MenuItem("lotis", "Use Iron Solari"))
                    .SetValue(true);
                _config.SubMenu("items")
                    .SubMenu("Deffensive")
                    .AddItem(new MenuItem("lotisminhp", "Solari if Ally Hp<").SetValue(new Slider(35, 1, 100)));*/

                //Farm
              /*  _config.AddSubMenu(new Menu("Farm", "Farm"));
                _config.SubMenu("Farm").AddSubMenu(new Menu("LaneFarm", "LaneFarm"));
                _config.SubMenu("Farm")
//.........这里部分代码省略.........
开发者ID:lolscripts,项目名称:fizz,代码行数:101,代码来源:Program.cs


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