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


C# Spell.SetTargetted方法代码示例

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


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

示例1: OnLoad

        protected override void OnLoad(object sender, FeatureBaseEventArgs eventArgs)
        {
            base.OnLoad(sender, eventArgs);

            Spell = new Spell(SpellSlot.R, 3000);
            Spell.SetTargetted(0.7f, 200f);
        }
开发者ID:Nechrito,项目名称:Leaguesharp,代码行数:7,代码来源:RSpell.cs

示例2: Game_OnGameLoad

        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();
                }
            }
        }
开发者ID:StopMotionCuber,项目名称:LeagueSharp-1,代码行数:33,代码来源:SpellManager.cs

示例3: Game_OnGameLoad

        private static void Game_OnGameLoad(EventArgs args)
        {
            Menu = new Menu("AutoKill", "AutoKill", true);
            Menu.AddBool("Ignite", "Cast Ignite");
            Menu.AddBool("Smite", "Cast Smite");
            Menu.AddBool("AA", "Use AutoAttack");

            Menu.AddToMainMenu();

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

            if (igniteSlot.IsValid())
            {
                Ignite = new Spell(igniteSlot, 600);
                Ignite.SetTargetted(.172f, 20);
            }

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

            if (smite != null && smite.Slot.IsValid())
            {
                Smite = new Spell(smite.Slot, 760);
                Smite.SetTargetted(.333f, 20);
            }

            Game.OnUpdate += Game_OnGameUpdate;
        }
开发者ID:StopMotionCuber,项目名称:LeagueSharp-1,代码行数:27,代码来源:Program.cs

示例4: SkillSet

 private void SkillSet()
 {
     try
     {
         _Q = new Spell(SpellSlot.Q, 720);
         _Q.SetTargetted(0.5f, 1500f);
         _W = new Spell(SpellSlot.W, 700);
         _W.SetSkillshot(0.6f, 220f, 1450f, false, SkillshotType.SkillshotCircle);
         _E = new Spell(SpellSlot.E, 900);
         _E.SetSkillshot(0.3f, 55f, 1650f, true, SkillshotType.SkillshotLine);
         _R = new Spell(SpellSlot.R, 720);
         {
             SpellList.Add(_Q);
             SpellList.Add(_W);
             SpellList.Add(_E);
             SpellList.Add(_R);
         }
     }
     catch (Exception)
     {
         if (NowTime() > ErrorTime)
         {
             Chat.Print(ChampName + " in FreshBooster isn't Load. Error Code 01");
             ErrorTime = TickCount(10000);
         }
     }
 }
开发者ID:yashine59fr,项目名称:PortAIO-1,代码行数:27,代码来源:Program.cs

示例5: Game_OnGameLoad

        private static void Game_OnGameLoad(EventArgs args)
        {
            // Validate champ, detuks should do this everywhere :D
            if (player.ChampionName != CHAMP_NAME)
                return;

            // Initialize spells
            Q = new Spell(SpellSlot.Q, 1050);
            W = new Spell(SpellSlot.W, 900);
            E = new Spell(SpellSlot.E, 625);
            R = new Spell(SpellSlot.R, 750);

            // Add to spell list
            spellList.AddRange(new[] { Q, W, E, R });

            // Finetune spells
            Q.SetSkillshot(0.25f, 80, 1200, true, SkillshotType.SkillshotLine);
            W.SetSkillshot(1, 200, float.MaxValue, false, SkillshotType.SkillshotCircle);
            E.SetTargetted(0.25f, float.MaxValue);
            R.SetTargetted(0.25f, 1000);

            // Setup menu
            SetuptMenu();

            // Initialize DamageIndicator
            CustomDamageIndicator.Initialize(GetHPBarComboDamage);
            CustomDamageIndicator.Color = Color.Black;

            // Register event handlers
            Game.OnGameUpdate += Game_OnGameUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
        }
开发者ID:qktlfflzk,项目名称:Backup5.4,代码行数:32,代码来源:Program.cs

示例6: LoadOKTW

        public void LoadOKTW()
        {
            Q = new Spell(SpellSlot.Q, 1000);
            E = new Spell(SpellSlot.E, 700);
            W = new Spell(SpellSlot.W, 2100);
            R = new Spell(SpellSlot.R, 550);

            Q.SetSkillshot(0.25f, 90f, 1550, true, SkillshotType.SkillshotLine);
            E.SetTargetted(0.25f, 2000f);

            Config.SubMenu(Player.ChampionName).SubMenu("Draw").AddItem(new MenuItem("onlyRdy", "Draw only ready spells", true).SetValue(true));
            Config.SubMenu(Player.ChampionName).SubMenu("Draw").AddItem(new MenuItem("qRange", "Q range", true).SetValue(false));
            Config.SubMenu(Player.ChampionName).SubMenu("Draw").AddItem(new MenuItem("wRange", "W range", true).SetValue(false));
            Config.SubMenu(Player.ChampionName).SubMenu("Draw").AddItem(new MenuItem("eRange", "E range", true).SetValue(false));

            Config.SubMenu(Player.ChampionName).SubMenu("Q config").AddItem(new MenuItem("autoQ", "Auto Q", true).SetValue(true));
            Config.SubMenu(Player.ChampionName).SubMenu("Q config").AddItem(new MenuItem("harrasQ", "Harass Q", true).SetValue(true));

            Config.SubMenu(Player.ChampionName).SubMenu("E config").AddItem(new MenuItem("autoE", "Auto E", true).SetValue(true));
            Config.SubMenu(Player.ChampionName).SubMenu("E config").AddItem(new MenuItem("harrasE", "Harass E", true).SetValue(true));
            Config.SubMenu(Player.ChampionName).SubMenu("E config").AddItem(new MenuItem("AGC", "AntiGapcloser E", true).SetValue(true));
            Config.SubMenu(Player.ChampionName).SubMenu("E config").AddItem(new MenuItem("Int", "Interrupter E", true).SetValue(true));

            Config.SubMenu(Player.ChampionName).AddItem(new MenuItem("autoW", "Auto W", true).SetValue(true));
            Config.SubMenu(Player.ChampionName).AddItem(new MenuItem("autoR", "Auto R in shop", true).SetValue(true));

            Game.OnUpdate += Game_OnGameUpdate;
            AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
            Drawing.OnDraw += Drawing_OnDraw;
            Orbwalking.AfterAttack += afterAttack;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
        }
开发者ID:34088748,项目名称:LeagueRepo,代码行数:32,代码来源:Quinn.cs

示例7: OnLoad

        private static void OnLoad()
        {
            AssemblyMenu = new Menu("ExoCondemn - Flash E","dz191.exocondemn", true);

            AssemblyMenu.AddItem(
                new MenuItem("dz191.exocondemn.pushdistance", "Push Distance").SetValue(
                    new Slider(400, 370, 465)));

            AssemblyMenu.AddItem(
                new MenuItem("dz191.exocondemn.execute", "Do Flash Condemn!").SetValue(
                    new KeyBind("Z".ToCharArray()[0], KeyBindType.Press)));

            AssemblyMenu.AddItem(
                new MenuItem("dz191.exocondemn.onlyone", "Only for 1v1").SetValue(true));

            AssemblyMenu.AddToMainMenu();
            

            Condemn = new Spell(SpellSlot.E, 590f);
            LoadFlash();
            Condemn.SetTargetted(0.25f, 2000f);

            Game.OnUpdate += Game_OnUpdate;
            Drawing.OnDraw += OnDraw;
        }
开发者ID:ShineSharp,项目名称:LeagueSharp-5,代码行数:25,代码来源:Program.cs

示例8: Game_OnGameLoad

        public static void Game_OnGameLoad()
        {
            // Champ validation
            if (player.ChampionName != CHAMP_NAME)
                return;

            // Define spells
            Q = new LeagueSharp.Common.Spell(SpellSlot.Q, 600);
            W = new LeagueSharp.Common.Spell(SpellSlot.W, 700);
            E = new LeagueSharp.Common.Spell(SpellSlot.E, rangeE);
            R = new LeagueSharp.Common.Spell(SpellSlot.R, 700);

            // Finetune spells
            Q.SetTargetted(0.25f, 2000);
            W.SetSkillshot(0.5f, 300, float.MaxValue, false, SkillshotType.SkillshotCircle);
            E.SetSkillshot(0, 80, speedE, false, SkillshotType.SkillshotLine);
            R.SetSkillshot(0.25f, 450f, float.MaxValue, false, SkillshotType.SkillshotCircle);

            EELO = new EloBuddy.SDK.Spell.Skillshot(SpellSlot.E, 525, SkillShotType.Linear, 250, int.MaxValue, 100);
            EELO.AllowedCollisionCount = int.MaxValue;

            // Create menu
            SetupMenu();

            // Register events
            Game.OnUpdate += Game_OnGameUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
            Orbwalker.OnUnkillableMinion += Orbwalker_OnUnkillableMinion;
            Orbwalker.OnPreAttack += OrbwalkingOnBeforeAttack;

            EloBuddy.SDK.Events.Gapcloser.OnGapcloser += Gapcloser_OnGapcloser;
            EloBuddy.SDK.Events.Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
        }
开发者ID:yashine59fr,项目名称:PortAIO,代码行数:33,代码来源:Viktor.cs

示例9: LoadOKTW

        public void LoadOKTW()
        {
            Q = new Spell(SpellSlot.Q, 1050);
            Qext = new Spell(SpellSlot.Q, 1650);
            QextCol = new Spell(SpellSlot.Q, 1650);
            Q2 = new Spell(SpellSlot.Q, 600);
            W = new Spell(SpellSlot.W);
            W2 = new Spell(SpellSlot.W, 350);
            E = new Spell(SpellSlot.E, 650);
            E2 = new Spell(SpellSlot.E, 240);
            R = new Spell(SpellSlot.R);

            Q.SetSkillshot(0.25f, 80, 1200, true, SkillshotType.SkillshotLine);
            Qext.SetSkillshot(0.25f, 80, 1600, false, SkillshotType.SkillshotLine);
            QextCol.SetSkillshot(0.25f, 80, 1600, true, SkillshotType.SkillshotLine);
            Q2.SetTargetted(0.25f, float.MaxValue);
            E.SetSkillshot(0.1f, 120, float.MaxValue, false, SkillshotType.SkillshotCircle);
            E2.SetTargetted(0.25f, float.MaxValue);

            Config.SubMenu(Player.ChampionName).SubMenu("Draw").AddItem(new MenuItem("noti", "Show notification", true).SetValue(false));
            foreach (var enemy in ObjectManager.Get<Obj_AI_Hero>().Where(enemy => enemy.Team != Player.Team))
                Config.SubMenu(Player.ChampionName).SubMenu("Harras").AddItem(new MenuItem("haras" + enemy.ChampionName, enemy.ChampionName).SetValue(true));
            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnUpdate += OnUpdate;
            Orbwalking.BeforeAttack += BeforeAttack;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            Spellbook.OnCastSpell += Spellbook_OnCastSpell;
        }
开发者ID:gresn0,项目名称:LeagueRepo,代码行数:28,代码来源:Jayce.cs

示例10: OnLoad

        public static void OnLoad(EventArgs args)
        {
            if (Player.ChampionName != "Jayce") return;
            MenuConfig.OnLoad();
            //ranged
            Q = new Spell(SpellSlot.Q, 1500);
            W = new Spell(SpellSlot.W, int.MaxValue);
            E = new Spell(SpellSlot.E, 600);

            //   melee
            Qm = new Spell(SpellSlot.Q, 600);
            Wm = new Spell(SpellSlot.W, int.MaxValue);
            Em = new Spell(SpellSlot.E, 240);
            R = new Spell(SpellSlot.R, int.MaxValue);

            Q.SetSkillshot(0.3f, 80f, 1500, true, SkillshotType.SkillshotLine);
            Qm.SetTargetted(0.25f, float.MaxValue);
            Em.SetTargetted(0.25f, float.MaxValue);
            Game.OnUpdate += OnUpdate;
            Spellbook.OnCastSpell += OnCastSpell;
            Drawing.OnDraw += OnDraw;
            Game.OnUpdate += GeneralOnUpdate;
            Obj_AI_Base.OnDoCast += OnDoCastRange;
            Obj_AI_Base.OnDoCast += OnDoCastMelee;
            Obj_AI_Base.OnDoCast += LaneClear;
            CustomEvents.Unit.OnDash += OnDash;
            AntiGapcloser.OnEnemyGapcloser += OnGapClose;
            Interrupter2.OnInterruptableTarget += OnInterrupt;
        }
开发者ID:omerolmaz,项目名称:LeagueSharp,代码行数:29,代码来源:Jayce.cs

示例11: GnarSpells

        static GnarSpells()
        {
            QMini = new Spell(SpellSlot.Q, 1050);
            QnMini = new Spell(SpellSlot.Q, 1050);
            WMini = new Spell(SpellSlot.W);
            EMini = new Spell(SpellSlot.E, 475);
            RMini = new Spell(SpellSlot.R);

            QMega = new Spell(SpellSlot.Q, 1050);
            QnMega = new Spell(SpellSlot.Q, 1050);
            WMega = new Spell(SpellSlot.W, 500);
            EMega = new Spell(SpellSlot.E, 475);

            RMega = new Spell(SpellSlot.R, 420);

            QMini.SetSkillshot(0.25f, 60, 1200, true, SkillshotType.SkillshotLine);
            QnMini.SetSkillshot(0.25f, 60, 1200, false, SkillshotType.SkillshotLine);
            EMini.SetSkillshot(0.5f, 150, float.MaxValue, false, SkillshotType.SkillshotCircle);

            QMega.SetSkillshot(0.25f, 80, 1200, true, SkillshotType.SkillshotLine);
            QnMega.SetSkillshot(0.25f, 80, 1200, false, SkillshotType.SkillshotLine);
            WMega.SetSkillshot(0.25f, 80, float.MaxValue, false, SkillshotType.SkillshotLine);
            EMega.SetSkillshot(0.5f, 150, float.MaxValue, false, SkillshotType.SkillshotCircle);
            RMega.Delay = 0.25f;

            SummonerDot = new Spell(ObjectManager.Player.GetSpellSlot("SummonerDot"), 550);
            SummonerDot.SetTargetted(0.1f, float.MaxValue);

            Spellbook.OnCastSpell += Spellbook_OnCastSpell;
        }
开发者ID:Xelamats,项目名称:PortAIO,代码行数:30,代码来源:GnarSpells.cs

示例12: SpellManager

        static SpellManager()
        {
            Q = new Spell(SpellSlot.Q, 340 + 500);
            Q.SetSkillshot(.135f, 80, 1600, false, SkillshotType.SkillshotLine);

            W = new Spell(SpellSlot.W, 800);
            W.SetSkillshot(.38f, 0, 0, false, SkillshotType.SkillshotCircle);

            E = new Spell(SpellSlot.E, 500);
            E.SetTargetted(0, 0);

            R = new Spell(SpellSlot.R, 500);
            R.SetTargetted(.672f, 1200);

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

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

            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);
                SmiteManager.Initialize();
            }
        }
开发者ID:StopMotionCuber,项目名称:LeagueSharp-1,代码行数:31,代码来源:SpellManager.cs

示例13: OnLoad

        protected override void OnLoad(object sender, FeatureBaseEventArgs eventArgs)
        {
            base.OnLoad(sender, eventArgs);

            Spell = new Spell(SpellSlot.Q, 625);
            Spell.SetTargetted(.25f, 1400f);
        }
开发者ID:Nechrito,项目名称:Leaguesharp,代码行数:7,代码来源:QSpell.cs

示例14: Game_OnGameLoad

        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();
                }
            }
        }
开发者ID:CONANLXF,项目名称:AIO,代码行数:32,代码来源:SpellManager.cs

示例15: Game_OnGameLoad

        private static void Game_OnGameLoad(EventArgs args)
        {
            if (champName != Player.ChampionName) return;
            #region Spells
            Q = new Spell(SpellSlot.Q, 610);
            Q.SetTargetted(0.25f, 2150f);
            W = new Spell(SpellSlot.W);
            E = new Spell(SpellSlot.E, 980);
            R = new Spell(SpellSlot.R);
            R.SetSkillshot(0.9f, 100, float.MaxValue, false, SkillshotType.SkillshotCircle);
            Rzone = 500;
            RdeathDaughter = 200;
            Ezone = 340;
            Econnection = 680;
            #endregion

            Game.PrintChat("<b><font color='#8A008A'>Le</font><font color='#FF6600'>plank</font></b> " + version + " loaded - By <font color='#6666FF'>Brikovich</font> & <font color='#6666FF'>Baballev</font>");
            Game.PrintChat("Don't forget to <font color='#00CC00'><b>Upvote</b></font> <b><font color='#8A008A'>Le</font><font color='#FF6600'>plank</font></b> in the Assembly DB if you like it ^_^");
            Menus.MenuIni();
            Updater.Update();

            //Events
            GameObject.OnCreate += BarrelsManager._OnCreate;
            Game.OnUpdate += BarrelsManager._OnDelete;
            //Game.OnUpdate += BarrelsManager._DebugZone;
            Game.OnUpdate += Gangplank._Orbwalking;
            Drawing.OnDraw += Drawings._OnDraw;
        }
开发者ID:Backup521,项目名称:BrikoEzEvadePlugin,代码行数:28,代码来源:Program.cs


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