本文整理汇总了C#中LeagueSharp.Common.Spell类的典型用法代码示例。如果您正苦于以下问题:C# Spell类的具体用法?C# Spell怎么用?C# Spell使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Spell类属于LeagueSharp.Common命名空间,在下文中一共展示了Spell类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Game_OnGameLoad
private static void Game_OnGameLoad(EventArgs args)
{
EQDrawList = new List<Vector3>();
Player = ObjectManager.Player;
if (Player.ChampionName != ChampionName) return;
Q = new Spell(SpellSlot.Q, 700f);
Q.SetSkillshot(0.5f, 70f, float.MaxValue, false, SkillshotType.SkillshotLine);
W = new Spell(SpellSlot.W, 300f);
E = new Spell(SpellSlot.E, 830f);
E.SetSkillshot(0.5f, 70f, float.MaxValue, false, SkillshotType.SkillshotCircle);
Config = new Menu("J4Helper", "J4Helper", true);
//Orbwalker
Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));
//Misc
Config.AddSubMenu(new Menu("Keys", "Keys"));
Config.SubMenu("Keys")
.AddItem(
new MenuItem("EQMouse", "EQ to Mouse").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
Config.AddToMainMenu();
Game.OnUpdate += Game_OnUpdate;
Drawing.OnDraw += Drawing_OnDraw;
Game.PrintChat("J4Helper Loaded.");
Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
}
开发者ID:AlrikSharp,项目名称:LeagueSharp,代码行数:28,代码来源:J4.cs
示例2: OnGameLoad
public static void OnGameLoad(EventArgs args)
{
if (Player.ChampionName != "Riven")
{
return; // This guy is missing out..
}
CreateMenu();
Q = new Spell(SpellSlot.Q, 260) { Delay = 0.5f };
W = new Spell(SpellSlot.W, 260);
E = new Spell(SpellSlot.E, 250) { Delay = 0.3f, Speed = 1450 };
R = new Spell(SpellSlot.R, 1100);
Ignite = new Spell(Player.GetSpellSlot("summonerdot"), 600);
Q.SetSkillshot(0.5f, 100, 1400, false, SkillshotType.SkillshotCone);
R.SetSkillshot(0.25f, 150, 2200, false, SkillshotType.SkillshotCone);
Obj_AI_Base.OnPlayAnimation += Obj_AI_Base_OnPlayAnimation;
Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
Game.OnUpdate += RivenCombo.OnGameUpdate;
Drawing.OnDraw += DrawingOnOnDraw;
AntiGapcloser.OnEnemyGapcloser += AntiGapcloserOnOnEnemyGapcloser;
Interrupter2.OnInterruptableTarget += Interrupter2OnOnInterruptableTarget;
Utility.HpBarDamageIndicator.Enabled = true;
Utility.HpBarDamageIndicator.DamageToUnit = RivenCombo.GetDamage;
NotificationHandler.ShowWelcome();
Game.PrintChat("<font color=\"#7CFC00\"><b>EasyPeasyRivenSqueezy:</b></font> Loaded");
}
开发者ID:qktlfflzk,项目名称:Backup5.4,代码行数:34,代码来源:Riven.cs
示例3: Riven
public Riven()
{
E = new Spell(SpellSlot.E, 390f);
Q = new Spell(SpellSlot.Q, 250f);
W = new Spell(SpellSlot.W, 150f);
R = new Spell(SpellSlot.R, 900f);
}
开发者ID:Hyunabstar,项目名称:Experimental,代码行数:7,代码来源:Riven.cs
示例4: Warwick
public Warwick()
{
Q = new Spell(SpellSlot.Q, 400);
W = new Spell(SpellSlot.W, 1000);
E = new Spell(SpellSlot.E, 1500);
R = new Spell(SpellSlot.R, 700);
}
开发者ID:ChewyMoon,项目名称:Experimental,代码行数:7,代码来源:Warwick.cs
示例5: Garen
public Garen()
{
Q = new Spell(SpellSlot.Q);
W = new Spell(SpellSlot.W);
E = new Spell(SpellSlot.E, 165);
R = new Spell(SpellSlot.R, 400);
}
开发者ID:Hyunabstar,项目名称:Experimental,代码行数:7,代码来源:Garen.cs
示例6: Template
public Template()
{
Q = new Spell(SpellSlot.Q, 0);
W = new Spell(SpellSlot.W, 0);
E = new Spell(SpellSlot.E, 0);
R = new Spell(SpellSlot.R, 0);
}
开发者ID:lanyi777,项目名称:CN,代码行数:7,代码来源:Template.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: Taric
public Taric()
{
Q = new Spell(SpellSlot.Q, 750);
W = new Spell(SpellSlot.W, 200);
E = new Spell(SpellSlot.E, 625);
R = new Spell(SpellSlot.R, 200);
}
开发者ID:nongnoobjung,项目名称:Experimental,代码行数:7,代码来源:Taric.cs
示例9: Shaco
public Shaco()
{
Q = new Spell(SpellSlot.Q, 400);
W = new Spell(SpellSlot.W, 425);
E = new Spell(SpellSlot.E, 625);
R = new Spell(SpellSlot.R, 0);
}
开发者ID:Hyunabstar,项目名称:Experimental,代码行数:7,代码来源:Shaco.cs
示例10: Game_OnGameLoad
private static void Game_OnGameLoad(EventArgs args)
{
if (Player.ChampionName != "Heimerdinger")
return;
Q = new Spell(SpellSlot.Q);
W = new Spell(SpellSlot.W, 1100);
E = new Spell(SpellSlot.E, 925);
R = new Spell(SpellSlot.R);
Menu = new Menu(Player.ChampionName, Player.ChampionName, true);
Menu orbwalkerMenu = Menu.AddSubMenu(new Menu("Orbwalker", "Orbwalker"));
Orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);
Menu ts = Menu.AddSubMenu(new Menu("Target Selector", "Target Selector"));
TargetSelector.AddToMenu(ts);
Menu drawMenu = Menu.AddSubMenu(new Menu("Drawings", "Drawings"));
drawMenu.AddItem(new MenuItem("drawQ", "Draw Q").SetValue(true));
drawMenu.AddItem(new MenuItem("drawW", "Draw W").SetValue(true));
drawMenu.AddItem(new MenuItem("drawE", "Draw E").SetValue(true));
Menu.AddToMainMenu();
Drawing.OnDraw += Drawing_OnDraw;
Notifications.AddNotification("Heimerwalker Loaded!", 10000);
}
开发者ID:LeFrosty,项目名称:Old,代码行数:32,代码来源:Program.cs
示例11: LoadOKTW
public void LoadOKTW()
{
Q = new Spell(SpellSlot.Q);
E = new Spell(SpellSlot.E);
W = new Spell(SpellSlot.W);
R = new Spell(SpellSlot.R);
Config.SubMenu("AutoWard OKTW©").AddItem(new MenuItem("AutoWard", "Auto Ward").SetValue(true));
Config.SubMenu("AutoWard OKTW©").AddItem(new MenuItem("autoBuy", "Auto buy blue trinket after lvl 9").SetValue(false));
Config.SubMenu("AutoWard OKTW©").AddItem(new MenuItem("AutoWardBlue", "Auto Blue Trinket").SetValue(true));
Config.SubMenu("AutoWard OKTW©").AddItem(new MenuItem("AutoWardCombo", "Only combo mode").SetValue(true));
Config.SubMenu("AutoWard OKTW©").AddItem(new MenuItem("AutoWardPink", "Auto VisionWard, OracleLens").SetValue(true));
foreach (var hero in ObjectManager.Get<Obj_AI_Hero>())
{
if (hero.IsEnemy)
{
if (hero.ChampionName == "Rengar")
rengar = true;
if (hero.ChampionName == "Vayne")
Vayne = hero;
}
}
Game.OnUpdate += Game_OnUpdate;
Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
GameObject.OnCreate +=GameObject_OnCreate;
GameObject.OnDelete += GameObject_OnDelete;
}
开发者ID:Zzihao,项目名称:LeagueRepo,代码行数:29,代码来源:OKTWward.cs
示例12: Load
public static void Load()
{
Q = new Spell(SpellSlot.Q, 1100f, TargetSelector.DamageType.Magical);
W = new Spell(SpellSlot.W, 600f, TargetSelector.DamageType.Magical);
E = new Spell(SpellSlot.E, 800f);
R = new Spell(SpellSlot.R, 550f);
Q.SetSkillshot(0.25f, 120f, 900f, false, SkillshotType.SkillshotLine);
AIO_Menu.Champion.Combo.addUseQ();
AIO_Menu.Champion.Combo.addUseW();
//AIO_Menu.Champion.Combo.addUseR();
AIO_Menu.Champion.Harass.addUseQ(false);
AIO_Menu.Champion.Harass.addUseW();
AIO_Menu.Champion.Harass.addIfMana();
AIO_Menu.Champion.Misc.addHitchanceSelector();
AIO_Menu.Champion.Misc.addUseAntiGapcloser();
AIO_Menu.Champion.Misc.addUseInterrupter();
AIO_Menu.Champion.Misc.addItem("Auto E", true);
AIO_Menu.Champion.Drawings.addQrange();
AIO_Menu.Champion.Drawings.addWrange();
AIO_Menu.Champion.Drawings.addErange();
AIO_Menu.Champion.Drawings.addRrange();
AIO_Menu.Champion.Drawings.addDamageIndicator(getComboDamage);
Game.OnUpdate += Game_OnUpdate;
Drawing.OnDraw += Drawing_OnDraw;
AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
Obj_AI_Hero.OnProcessSpellCast += Obj_AI_Hero_OnProcessSpellCast;
}
开发者ID:SmokyBot,项目名称:LS,代码行数:35,代码来源:Janna.cs
示例13: Darius
public Darius()
{
Q = new Spell(SpellSlot.Q, 425);
W = new Spell(SpellSlot.W, 145);
E = new Spell(SpellSlot.E, 550);
R = new Spell(SpellSlot.R, 460);
}
开发者ID:alstjr0006,项目名称:Experimental,代码行数:7,代码来源:Darius.cs
示例14: Game_OnGameLoad
private static void Game_OnGameLoad(EventArgs args)
{
if (Player.ChampionName != "Twitch")
return;
_w = new Spell(SpellSlot.W, wRange);
_w.SetSkillshot(0.25f, 120f, 1400f, false, SkillshotType.SkillshotCircle);
_e = new Spell(SpellSlot.E, eRange);
_config = new Menu("Twitch", "Twitch", true);
_orbwalker = new Orbwalking.Orbwalker(_config.SubMenu("Orbwalking"));
var targetSelectorMenu = new Menu("Target Selector", "Target Selector");
TargetSelector.AddToMenu(targetSelectorMenu);
_config.AddSubMenu(targetSelectorMenu);
_config.SubMenu("Combo").AddItem(new MenuItem("UseWCombo", "Use W").SetValue(true));
_config.SubMenu("Combo").AddItem(new MenuItem("ghost", "Use Ghostblade").SetValue(true));
_config.SubMenu("Combo").AddItem(new MenuItem("botrk", "Use Botrk").SetValue(true));
_config.SubMenu("Drawings").AddItem(new MenuItem("ultDraw", "Draw ult range").SetValue(true));
_config.SubMenu("Drawings").AddItem(new MenuItem("EDamage", "E Damage").SetValue(new Circle(true, Color.White)));
_config.SubMenu("Drawings").AddItem(new MenuItem("stealthColor", "Stealth indicator").SetValue(new Circle(true, Color.Purple)));
_config.AddToMainMenu();
CustomDamageIndicator.Initialize(GetEDamage);
Game.OnUpdate += Game_OnUpdate;
Drawing.OnDraw += Drawing_OnDraw;
Obj_AI_Base.OnProcessSpellCast += OnSpellProcess;
Obj_AI_Base.OnDamage += OnDamage;
}
开发者ID:Aferii,项目名称:LeagueSharp,代码行数:33,代码来源:Program.cs
示例15: Evader
public Evader(out Menu _evade, EvadeMethods method = EvadeMethods.None, Spell spl = null)
{
SpecialMethod = method;
EvadeSpell = spl;
evade = new Menu("Evade", "Evade");
foreach (var enemy in HeroManager.Enemies)
{
foreach (var spell in SpellDatabase.EvadeableSpells.Where(p => p.ChampionName == enemy.ChampionName && p.EvadeMethods.HasFlag(method)))
evade.AddItem(new MenuItem(spell.SpellName, String.Format("{0} ({1})", spell.ChampionName, spell.Slot)).SetValue(true));
}
evade.AddItem(new MenuItem("EVADEMETHOD", "Evade Method: ").SetValue(new StringList(new[] { "Near Turret", "Less Enemies", "Auto" }, 2)));
evade.AddItem(new MenuItem("EVADEENABLE", "Enabled").SetValue(false));
if (method.HasFlag(EvadeMethods.MorganaE) || method.HasFlag(EvadeMethods.KayleR))
{
shieldAlly = new Menu("Ally Shielding", "allyshield");
foreach (var ally in HeroManager.Allies)
if(!ally.IsMe)
shieldAlly.AddItem(new MenuItem("shield" + ally.ChampionName, "Shield " + ally.ChampionName).SetValue(true));
shieldAlly.AddItem(new MenuItem("SHIELDENABLED", "Enabled").SetValue(true));
evade.AddSubMenu(shieldAlly);
}
_evade = evade;
m_evade_thread = new Thread(new ThreadStart(EvadeThread));
m_evade_thread.Start();
Game.OnUpdate += Game_OnUpdate;
Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
Game.PrintChat("<font color='#ff3232'>Shine#: </font><font color='#d4d4d4'>Evader loaded for champion {0} !</font>", ObjectManager.Player.ChampionName);
}
开发者ID:47110572,项目名称:LeagueSharp,代码行数:34,代码来源:Evader.cs
示例16: Game_OnLoad
public static void Game_OnLoad(EventArgs args)
{
// Verify champion
if (Player.ChampionName != ChampionName)
return;
Notifications.AddNotification("Twitch by TheOBJop", 2);
// Spells
_q = new Spell(SpellSlot.Q, 1500);
_w = new Spell(SpellSlot.W, 950);
_w.SetSkillshot(0.25f, 120f, 1400f, false, SkillshotType.SkillshotCircle);
_e = new Spell(SpellSlot.E, 1200);
_r = new Spell(SpellSlot.R, 850);
lastKills = Player.ChampionsKilled;
// Menu
TwitchMenu.Init();
CustomDamageIndicator.Initialize(GetDamage);
// Listen to Events
Game.OnUpdate += Game_OnUpdate;
CustomEvents.Unit.OnDash += Unit_OnDash;
Game.OnNotify += Game_OnNotify;
Drawing.OnDraw += Drawing_OnDraw;
}
开发者ID:theobjop,项目名称:Twiitch,代码行数:28,代码来源:Twitch.cs
示例17: LoadOKTW
public void LoadOKTW()
{
Q = new Spell(SpellSlot.Q, 0);
W = new Spell(SpellSlot.W, 950);
E = new Spell(SpellSlot.E, 1200);
R = new Spell(SpellSlot.R, 975);
W.SetSkillshot(0.25f, 100f, 1410f, false, SkillshotType.SkillshotCircle);
Config.SubMenu("Draw").AddItem(new MenuItem("notif", "Notification (timers)").SetValue(true));
Config.SubMenu("Draw").AddItem(new MenuItem("qRange", "Q range").SetValue(false));
Config.SubMenu("Draw").AddItem(new MenuItem("eRange", "E range").SetValue(false));
Config.SubMenu("Draw").AddItem(new MenuItem("rRange", "R range").SetValue(false));
Config.SubMenu("Draw").AddItem(new MenuItem("onlyRdy", "Draw only ready spells").SetValue(true));
Config.SubMenu(Player.ChampionName).SubMenu("Q Config").AddItem(new MenuItem("countQ", "Auto Q if x enemies are going in your direction 0-disable").SetValue(new Slider(3, 5, 0)));
Config.SubMenu(Player.ChampionName).SubMenu("W Config").AddItem(new MenuItem("autoW", "AutoW").SetValue(true));
Config.SubMenu(Player.ChampionName).SubMenu("E Config").AddItem(new MenuItem("Eks", "E ks").SetValue(true));
Config.SubMenu(Player.ChampionName).SubMenu("E Config").AddItem(new MenuItem("countE", "Auto E if x stacks & out range AA").SetValue(new Slider(6, 6, 0)));
Config.SubMenu(Player.ChampionName).SubMenu("E Config").AddItem(new MenuItem("5e", "Always E if 6 stacks").SetValue(true));
Config.SubMenu(Player.ChampionName).SubMenu("E Config").AddItem(new MenuItem("jungleE", "Jungle ks E").SetValue(true));
Config.SubMenu(Player.ChampionName).SubMenu("R Config").AddItem(new MenuItem("Rks", "R KS out range AA").SetValue(true));
Config.SubMenu(Player.ChampionName).SubMenu("R Config").AddItem(new MenuItem("countR", "Auto R if x enemies (combo)").SetValue(new Slider(3, 5, 0)));
Game.OnUpdate += Game_OnUpdate;
Drawing.OnDraw += Drawing_OnDraw;
//AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
// Interrupter.OnPossibleToInterrupt += Interrupter_OnPossibleToInterrupt;
//Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
}
开发者ID:Kraunier,项目名称:LeagueRepo,代码行数:32,代码来源:Twitch.cs
示例18: OnLoad
protected override void OnLoad(object sender, FeatureBaseEventArgs eventArgs)
{
base.OnLoad(sender, eventArgs);
Spell = new Spell(SpellSlot.R, 1200);
Spell.SetSkillshot(.2f, 110f, 2500f, true, SkillshotType.SkillshotLine);
}
开发者ID:Nechrito,项目名称:Leaguesharp,代码行数:7,代码来源:RSpell.cs
示例19: Irelia
public Irelia()
{
Q = new Spell(SpellSlot.Q, 650);
W = new Spell(SpellSlot.W, Orbwalking.GetRealAutoAttackRange(ObjectManager.Player));
E = new Spell(SpellSlot.E, 425);
R = new Spell(SpellSlot.R, 1000);
}
开发者ID:alstjr0006,项目名称:Experimental,代码行数:7,代码来源:Irelia.cs
示例20: Game_OnGameLoad
private static void Game_OnGameLoad(EventArgs args)
{
var spell = ObjectManager.Player.GetSpellSlot("summonersnowball");
if (spell == SpellSlot.Unknown)
{
return;
}
Menu = new Menu("ARAMShooter", "ARAMShooter", true);
Menu.AddItem(new MenuItem("DecreaseRange", "Decrease Range by").SetValue(new Slider(10)));
Menu.AddItem(
new MenuItem("HitChance", "MinHitChance").SetValue(
new StringList(
new[] { HitChance.Low.ToString(), HitChance.Medium.ToString(), HitChance.High.ToString() }, 1)));
Menu.AddItem(new MenuItem("Auto", "AutoDash").SetValue(true));
Menu.AddItem(new MenuItem("AutoThrow", "AutoThrow").SetValue(false));
Menu.AddItem(new MenuItem("Throw", "Throw").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
var dontThrow = new Menu("Don't throw at", "DontThrow");
foreach (var hero in ObjectManager.Get<Obj_AI_Hero>().Where(hero => hero.IsEnemy))
{
dontThrow.AddItem(new MenuItem("DontThrow" + hero.SkinName, hero.SkinName)).SetValue(false);
}
Menu.AddSubMenu(dontThrow);
Menu.Item("HitChance").ValueChanged += Program_ValueChanged;
Menu.Item("DecreaseRange").ValueChanged += Program_ValueChanged1;
Menu.AddToMainMenu();
Throw = new Spell(spell, 2500f);
Throw.SetSkillshot(.33f, 50f, 1600, true, SkillshotType.SkillshotLine);
Throw.MinHitChance = GetHitChance();
Game.OnUpdate += Game_OnUpdate;
}
开发者ID:koolkaracter,项目名称:LeagueSharp,代码行数:35,代码来源:Program.cs
注:本文中的LeagueSharp.Common.Spell类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论