本文整理汇总了C#中Spell.SetTargetted方法的典型用法代码示例。如果您正苦于以下问题:C# Spell.SetTargetted方法的具体用法?C# Spell.SetTargetted怎么用?C# Spell.SetTargetted使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Spell
的用法示例。
在下文中一共展示了Spell.SetTargetted方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Game_OnGameLoad
//.........这里部分代码省略.........
MiscCSubMenu.AddItem(new MenuItem("AutoEKS", "Smart E Ks").SetValue(true));
MiscCSubMenu.AddItem(new MenuItem("NoEEnT", "No E Under enemy turret").SetValue(true));
}
var MiscGSubMenu = new Menu("Misc - General", "MiscG");
{
MiscGSubMenu.AddItem(new MenuItem("Packets", "Packet Casting").SetValue(true));
MiscGSubMenu.AddItem(new MenuItem("AntiGP", "Anti Gapcloser")).SetValue(true);
MiscGSubMenu.AddItem(new MenuItem("Interrupt", "Interrupter").SetValue(true));
MiscGSubMenu
.AddItem(new MenuItem("SpecialFocus", "Focus targets with 2 W marks").SetValue(false));
MiscGSubMenu
.AddItem(
new MenuItem("ThreshLantern", "Grab Thresh Lantern").SetValue(new KeyBind("S".ToCharArray()[0],
KeyBindType.Press)));
MiscGSubMenu.AddItem(new MenuItem("UseIgn", "Use Ignite")).SetValue(true);
}
MiscSubMenu.AddSubMenu(MiscTSubMenu);
MiscSubMenu.AddSubMenu(MiscCSubMenu);
MiscSubMenu.AddSubMenu(MiscGSubMenu);
Menu.AddSubMenu(MiscSubMenu);
Menu.AddSubMenu(new Menu("[VH] BushRevealer", "BushReveal"));
//Menu.SubMenu("BushReveal").AddItem(new MenuItem("BushReveal", "Bush Revealer").SetValue(new KeyBind("Z".ToCharArray()[0], KeyBindType.Toggle)));
Menu.SubMenu("BushReveal").AddItem(new MenuItem("BushRevealer", "Trinket bush on condemn").SetValue(true));
Menu.AddSubMenu(new Menu("[VH] Items", "Items"));
Menu.SubMenu("Items").AddItem(new MenuItem("BotrkC", "Botrk Combo").SetValue(true));
Menu.SubMenu("Items").AddItem(new MenuItem("BotrkH", "Botrk Harrass").SetValue(false));
Menu.SubMenu("Items").AddItem(new MenuItem("YoumuuC", "Youmuu Combo").SetValue(true));
Menu.SubMenu("Items").AddItem(new MenuItem("YoumuuH", "Youmuu Harrass").SetValue(false));
Menu.SubMenu("Items").AddItem(new MenuItem("BilgeC", "Cutlass Combo").SetValue(true));
Menu.SubMenu("Items").AddItem(new MenuItem("BilgeH", "Cutlass Harrass").SetValue(false));
Menu.SubMenu("Items").AddItem(new MenuItem("OwnHPercBotrk", "Min Own H. % Botrk").SetValue(new Slider(50, 1, 100)));
Menu.SubMenu("Items").AddItem(new MenuItem("EnHPercBotrk", "Min Enemy H. % Botrk").SetValue(new Slider(20, 1, 100)));
Menu.AddSubMenu(new Menu("[VH] QSS", "QSSMenu"));
Menu.SubMenu("QSSMenu").AddItem(new MenuItem("UseQSS", "Use QSS").SetValue(true));
Menu.SubMenu("QSSMenu").AddItem(new MenuItem("QSSMinBuffs", "Min Buffs to QSS").SetValue(new Slider(2,1,5)));
Menu.AddSubMenu(new Menu("[VH] QSS Buff Types", "QSST"));
Cleanser.CreateTypeQSSMenu();
Menu.AddSubMenu(new Menu("[VH] QSS Spells", "QSSSpell"));
Cleanser.CreateQSSSpellMenu();
Menu.AddSubMenu(new Menu("[VH] Don't Condemn", "NoCondemn"));
CreateNoCondemnMenu();
Menu.AddSubMenu(new Menu("[VH] AutoPot", "AutoPot"));
Menu.SubMenu("AutoPot").AddItem(new MenuItem("APH", "Health Pot").SetValue(true));
Menu.SubMenu("AutoPot").AddItem(new MenuItem("APM", "Mana Pot").SetValue(true));
Menu.SubMenu("AutoPot").AddItem(new MenuItem("APH_Slider", "Health Pot %").SetValue(new Slider(35,1)));
Menu.SubMenu("AutoPot").AddItem(new MenuItem("APM_Slider", "Mana Pot %").SetValue(new Slider(35, 1)));
Menu.SubMenu("AutoPot").AddItem(new MenuItem("APHeal", "Use Heal").SetValue(true));
Menu.SubMenu("AutoPot").AddItem(new MenuItem("APHeal_Slider", "Heal %").SetValue(new Slider(35, 1)));
Menu.AddSubMenu(new Menu("[VH] AutoLeveler", "AutoLevel"));
Menu.SubMenu("AutoLevel").AddItem(new MenuItem("ALSeq", "AutoLevel Seq").SetValue(Orders));
Menu.SubMenu("AutoLevel").AddItem(new MenuItem("ALAct", "AutoLevel Active").SetValue(false));
Menu.AddSubMenu(new Menu("[VH] Drawings", "Draw"));
Menu.SubMenu("Draw").AddItem(new MenuItem("DrawE", "Draw E").SetValue(new Circle(true,Color.MediumPurple)));
Menu.SubMenu("Draw").AddItem(new MenuItem("DrawCond", "Draw Pos. Aft. E if Stun").SetValue(new Circle(true, Color.Red)));
Menu.SubMenu("Draw").AddItem(new MenuItem("DrawDrake", "Draw Drake Spot").SetValue(new Circle(true, Color.WhiteSmoke)));
Menu.SubMenu("Draw").AddItem(new MenuItem("DrawMid", "Draw Mid Spot").SetValue(new Circle(true, Color.WhiteSmoke)));
Menu.AddToMainMenu();
#endregion
Game.PrintChat("<font color='#FF0000'>VayneHunter</font> <font color='#FFFFFF'>Rework loaded!</font>");
Game.PrintChat("By <font color='#FF0000'>DZ</font><font color='#FFFFFF'>191</font>. Special Thanks to: Kurisuu & KonoeChan");
Game.PrintChat("If you like my assemblies feel free to donate me (link on the forum :) )");
//Cleanser.cleanUselessSpells();
Q = new Spell(SpellSlot.Q);
E = new Spell(SpellSlot.E,550f);
R = new Spell(SpellSlot.R);
E.SetTargetted(0.25f,1600f);
Orbwalking.AfterAttack += Orbwalker_AfterAttack;
Game.OnGameUpdate += Game_OnGameUpdate;
// Game.OnGameProcessPacket += GameOnOnGameProcessPacket;
Interrupter.OnPossibleToInterrupt += Interrupter_OnPossibleToInterrupt;
AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
Drawing.OnDraw += Drawing_OnDraw;
GameObject.OnCreate += Cleanser.OnCreateObj;
GameObject.OnDelete += Cleanser.OnDeleteObj;
Menu.Item("ALAct").ValueChanged += AutoLevel_ValueChanged;
#region AutoLeveler
if (isMenuEnabled("ALAct") && !aLInit)
{
var AutoLevel_I =
new AutoLevel(
getSequence(
Menu.Item("ALSeq").GetValue<StringList>().SList[
Menu.Item("ALSeq").GetValue<StringList>().SelectedIndex]));
aLInit = true;
}
}
示例2: LSOrbwalker
/// <summary>
/// Initializes static members of the <see cref="Orbwalker" /> class.
/// </summary>
public LSOrbwalker()
{
Player = ObjectManager.Player;
_championName = Player.ChampionName;
OrbwalkerInit();
AutoAttack = new Spell(SpellSlot.Unknown, GetRealAutoAttackRange(null));
AutoAttack.SetTargetted(Player.BasicAttack.SpellCastTime, Player.BasicAttack.MissileSpeed);
Obj_AI_Base.OnProcessSpellCast += OnProcessSpell;
Obj_AI_Base.OnSpellCast += Obj_AI_Base_OnDoCast;
Spellbook.OnStopCast += SpellbookOnStopCast;
EloBuddy.Player.OnIssueOrder += OnIssueOrder;
}