本文整理汇总了C#中LeagueSharp.Common.Spell类的典型用法代码示例。如果您正苦于以下问题:C# Spell类的具体用法?C# Spell怎么用?C# Spell使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Spell类属于LeagueSharp.Common命名空间,在下文中一共展示了Spell类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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");
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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);
}