本文整理汇总了C#中LeagueSharp.Common.Items.Item类的典型用法代码示例。如果您正苦于以下问题:C# Items.Item类的具体用法?C# Items.Item怎么用?C# Items.Item使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Items.Item类属于LeagueSharp.Common命名空间,在下文中一共展示了Items.Item类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnLoad
public static void OnLoad()
{
if (Player.ChampionName != "Rengar")
{
return;
}
try
{
Youmuu = new Items.Item(3142, 0f);
Ignite = Player.GetSpellSlot("summonerdot");
Chat.Print(
"[00:01] <font color='#CC0000'>HEEEEEEY!</font> Use ElUtilitySuite for optimal results! xo jQuery!!");
spells[Spells.E].SetSkillshot(0.25f, 70f, 1500f, true, SkillshotType.SkillshotLine);
MenuInit.Initialize();
Game.OnUpdate += OnUpdate;
Drawing.OnDraw += OnDraw;
CustomEvents.Unit.OnDash += OnDash;
Drawing.OnEndScene += OnDrawEndScene;
Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast;
LSEvents.AfterAttack += AfterAttack;
LSEvents.BeforeAttack += BeforeAttack;
}
catch (Exception e)
{
Console.WriteLine(e);
}
}
示例2: OnLoad
public static void OnLoad(EventArgs args)
{
if (Player.ChampionName != "Rengar")
{
return;
}
try
{
Youmuu = new Items.Item(3142, 0f);
Ignite = Player.GetSpellSlot("summonerdot");
Notifications.AddNotification(string.Format("ElRengarRevamped by jQuery v{0}", ScriptVersion), 6000);
Game.PrintChat(
"[00:00] <font color='#f9eb0b'>HEEEEEEY!</font> Use ElUtilitySuite for optimal results! xo jQuery");
spells[Spells.E].SetSkillshot(0.25f, 70f, 1500f, true, SkillshotType.SkillshotLine);
MenuInit.Initialize();
Game.OnUpdate += OnUpdate;
Drawing.OnDraw += OnDraw;
CustomEvents.Unit.OnDash += OnDash;
Drawing.OnEndScene += OnDrawEndScene;
Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast;
Orbwalking.BeforeAttack += OrbwalkingBeforeAttack;
Orbwalking.AfterAttack += AfterAttack;
}
catch (Exception e)
{
Console.WriteLine(e);
}
}
示例3: OnLoad
public static void OnLoad()
{
if (Player.ChampionName != "Rengar")
{
return;
}
try
{
Youmuu = new Items.Item(3142);
Ignite = Player.GetSpellSlot("summonerdot");
spells[Spells.E].SetSkillshot(0.25f, 70f, 1500f, true, SkillshotType.SkillshotLine);
MenuInit.Initialize();
Game.OnUpdate += OnUpdate;
Drawing.OnDraw += OnDraw;
CustomEvents.Unit.OnDash += OnDash;
Drawing.OnEndScene += OnDrawEndScene;
Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast;
Orbwalker.OnPostAttack += AfterAttack;
Orbwalker.OnPreAttack += BeforeAttack;
Game.OnWndProc += OnClick;
}
catch (Exception e)
{
Console.WriteLine(e);
}
}
示例4: Game_OnGameLoad
public static void Game_OnGameLoad(EventArgs args)
{
if (ObjectManager.Player.CharData.BaseSkinName != "Talon")
{
return;
}
#region Spell Data
// set spells
Q = new Spell(SpellSlot.Q, Orbwalking.GetRealAutoAttackRange(Player) + 100);
W = new Spell(SpellSlot.W, 650);
E = new Spell(SpellSlot.E, 700);
R = new Spell(SpellSlot.R, 650);
W.SetSkillshot(0.25f, 75, 2300, false, SkillshotType.SkillshotLine);
SpellList = new List<Spell> { Q, E, W, R };
ignite = Player.GetSpellSlot("summonerdot");
Tiamat = new Items.Item(3077, 400f);
Youmuu = new Items.Item(3142, 0f);
Hydra = new Items.Item(3074, 400f);
InitializeMenu();
#endregion
Game.OnUpdate += OnGameUpdate;
Drawing.OnDraw += Drawing_OnDraw;
Orbwalking.AfterAttack += AfterAttack;
AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
new AssassinManager();
}
示例5: Ahri
public Ahri()
{
if (ObjectManager.Player.ChampionName != "Ahri")
return;
(_menu = new Menu("AhriSharp", "AhriSharp", true)).AddToMainMenu();
var targetSelectorMenu = new Menu("Target Selector", "TargetSelector");
TargetSelector.AddToMenu(targetSelectorMenu);
_menu.AddSubMenu(targetSelectorMenu);
_orbwalker = new Orbwalking.Orbwalker(_menu.AddSubMenu(new Menu("Orbwalking", "Orbwalking")));
var comboMenu = _menu.AddSubMenu(new Menu("Combo", "Combo"));
comboMenu.AddItem(new MenuItem("comboQ", "Use Q").SetValue(true));
comboMenu.AddItem(new MenuItem("comboW", "Use W").SetValue(true));
comboMenu.AddItem(new MenuItem("comboE", "Use E").SetValue(true));
comboMenu.AddItem(new MenuItem("comboR", "Use R").SetValue(true));
comboMenu.AddItem(new MenuItem("comboROnlyUserInitiate", "Use R only if user initiated").SetValue(false));
var harassMenu = _menu.AddSubMenu(new Menu("Harass", "Harass"));
harassMenu.AddItem(new MenuItem("harassQ", "Use Q").SetValue(true));
harassMenu.AddItem(new MenuItem("harassE", "Use E").SetValue(true));
harassMenu.AddItem(new MenuItem("harassPercent", "Skills until Mana %").SetValue(new Slider(20)));
var farmMenu = _menu.AddSubMenu(new Menu("Lane Clear", "LaneClear"));
farmMenu.AddItem(new MenuItem("farmQ", "Use Q").SetValue(true));
farmMenu.AddItem(new MenuItem("farmW", "Use W").SetValue(false));
farmMenu.AddItem(new MenuItem("farmPercent", "Skills until Mana %").SetValue(new Slider(20)));
farmMenu.AddItem(new MenuItem("farmStartAtLevel", "Only AA until Level").SetValue(new Slider(8, 1, 18)));
var drawMenu = _menu.AddSubMenu(new Menu("Drawing", "Drawing"));
drawMenu.AddItem(new MenuItem("drawQE", "Draw Q, E range").SetValue(new Circle(true, System.Drawing.Color.FromArgb(125, 0, 255, 0))));
drawMenu.AddItem(new MenuItem("drawW", "Draw W range").SetValue(new Circle(false, System.Drawing.Color.FromArgb(125, 0, 0, 255))));
var dmgAfterComboItem = new MenuItem("DamageAfterCombo", "Draw Combo Damage").SetValue(true); //copied from esk0r Syndra
drawMenu.AddItem(dmgAfterComboItem);
var miscMenu = _menu.AddSubMenu(new Menu("Misc", "Misc"));
miscMenu.AddItem(new MenuItem("packetCast", "Packet Cast").SetValue(true));
_itemDFG = Utility.Map.GetMap().Type == Utility.Map.MapType.TwistedTreeline ? new Items.Item(3188, 750) : new Items.Item(3128, 750);
_spellQ = new Spell(SpellSlot.Q, 990);
_spellW = new Spell(SpellSlot.W, 795 - 95);
_spellE = new Spell(SpellSlot.E, 1000 - 10);
_spellR = new Spell(SpellSlot.R, 1000 - 100);
_spellQ.SetSkillshot(.215f, 100, 1600f, false, SkillshotType.SkillshotLine);
_spellW.SetSkillshot(.71f, _spellW.Range, float.MaxValue, false, SkillshotType.SkillshotLine);
_spellE.SetSkillshot(.23f, 60, 1500f, true, SkillshotType.SkillshotLine);
Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage;
Utility.HpBarDamageIndicator.Enabled = dmgAfterComboItem.GetValue<bool>();
dmgAfterComboItem.ValueChanged += delegate(object sender, OnValueChangeEventArgs eventArgs) { Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue<bool>(); };
Drawing.OnDraw += Drawing_OnDraw;
Game.OnUpdate += Game_OnUpdate;
Game.PrintChat("<font color=\"#1eff00\">AhriSharp by Beaving</font> - <font color=\"#00BFFF\">Loaded</font>");
}
示例6: OnGameLoad
public static void OnGameLoad(EventArgs args)
{
if (ObjectManager.Player.BaseSkinName != "Shaco")
{
return;
}
Q = new Spell(SpellSlot.Q, 400);
W = new Spell(SpellSlot.W, 425);
E = new Spell(SpellSlot.E, 625);
SpellList = new List<Spell> { Q, E, W };
CreateMenu();
Illuminati.Init();
Tiamat = ItemData.Tiamat_Melee_Only.GetItem();
Hydra = ItemData.Ravenous_Hydra_Melee_Only.GetItem();
Game.OnUpdate += GameOnOnGameUpdate;
Drawing.OnDraw += Drawing_OnDraw;
Orbwalking.AfterAttack += OrbwalkingOnAfterAttack;
Game.PrintChat(
"<font color=\"#6699ff\"><b>ChewyMoon's Shaco:</b></font> <font color=\"#FFFFFF\">" + "loaded!" +
"</font>");
}
示例7: OnLoad
public static void OnLoad(EventArgs args)
{
if (Player.ChampionName != "Rengar")
{
return;
}
try
{
Youmuu = new Items.Item(3142, 0f);
Ignite = Player.GetSpellSlot("summonerdot");
Notifications.AddNotification(string.Format("ElRengarRevamped by jQuery v{0}", ScriptVersion), 6000);
Game.PrintChat(
"<font color='#CC0000'>Stutter?</font> Please try to put your windup, holdzone, farmdelay and so on higher than what it is now!");
spells[Spells.E].SetSkillshot(0.25f, 70f, 1500f, true, SkillshotType.SkillshotLine);
MenuInit.Initialize();
Game.OnUpdate += OnUpdate;
Drawing.OnDraw += OnDraw;
CustomEvents.Unit.OnDash += OnDash;
Drawing.OnEndScene += OnDrawEndScene;
Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast;
}
catch (Exception e)
{
Console.WriteLine(e);
}
}
示例8: Game_OnLoad
public static void Game_OnLoad()
{
#region main
{
Player = ObjectManager.Player;
if (Player.ChampionName != ChampionName)
{
return;
}
_q = new Spell(SpellSlot.Q, 600, DamageType.Physical);
_w = new Spell(SpellSlot.W, 405, DamageType.Physical);
_e = new Spell(SpellSlot.E, 400, DamageType.Magical);
_r = new Spell(SpellSlot.R, 125, DamageType.Magical);
_botrk = new Items.Item(3153, 450f);
_cutlass = new Items.Item(3144, 450f);
}
#endregion
#region content menu
Menu = MainMenu.AddMenu("Teddy Bear - ThunderBuddy", "teddy.bear");
comboMenu = Menu.AddSubMenu("Combo", "teddy.bear.combo");
comboMenu.Add("teddy.bear.combo.useq", new CheckBox("Use Q", true));
comboMenu.Add("teddy.bear.combo.usew", new CheckBox("Use W", true));
comboMenu.Add("teddy.bear.combo.usee", new CheckBox("Use E", true));
comboMenu.Add("teddy.bear.combo.user", new CheckBox("Use R", true));
laneclearing = Menu.AddSubMenu("Lane clear", "teddy.bear.laneclearing");
laneclearing.Add("teddy.bear.laneclearing.useQ", new CheckBox("Use Q", true));
laneclearing.Add("teddy.bear.laneclearing.useW", new CheckBox("Use W", true));
laneclearing.Add("teddy.bear.laneclearing.useE", new CheckBox("Use E", true));
fleeMenu = Menu.AddSubMenu("Flee", "teddy.bear.flee");
fleeMenu.Add("teddy.bear.flee.useQ", new CheckBox("Use Q", true));
fleeMenu.Add("teddy.bear.flee.useE", new CheckBox("Use E", true));
misc = Menu.AddSubMenu("Misc", "teddy.bear.misc");
misc.Add("teddy.bear.misc.skW", new CheckBox("safe kill with W", true));
drawingMenu = Menu.AddSubMenu("Drawing", "teddy.bear.drawing");
drawingMenu.Add("DrawQ", new CheckBox("Draw Q range", true));
drawingMenu.Add("DrawW", new CheckBox("Draw W range", true));
drawingMenu.Add("DrawE", new CheckBox("Draw E range", true));
drawingMenu.Add("DrawR", new CheckBox("Draw R range", true));
drawingMenu.Add("DrawHP", new CheckBox("Draw HP Indicator", true));
#endregion
Interrupter2.OnInterruptableTarget += Interrupter_OnPossibleToInterrupt;
Game.OnUpdate += Game_OnUpdate;
Drawing.OnDraw += Drawing_OnDraw;
Drawing.OnEndScene += OnEndScene;
Chat.Print("<font color='#881df2'>TeddyBear - Loaded.");
}
示例9: ItemHandlerLoad
public static void ItemHandlerLoad()
{
Dfg = Utility.Map.GetMap().Type == Utility.Map.MapType.TwistedTreeline ? new Items.Item(3188, 750) : new Items.Item(3128, 750);
// DFG = new Items.Item(3128, 750);
Cutlass = new Items.Item(3144, 450);
Hextech = new Items.Item(3146, 700);
Frostclaim = new Items.Item(3092, 850);
Botrk = new Items.Item(3153, 450);
Youmuus = new Items.Item(3142, 650);
}
示例10: Buy
public static void Buy()
{
for(int i=0; i < ItemsToBuy.Count; i++)
{
if (!ItemsToBuy[i].Bought &&
Player.Gold > ItemsToBuy[i].Gold &&
!Items.HasItem(ItemsToBuy[i].ID))
{
Items.Item Item = new Items.Item(ItemsToBuy[i].ID);
Item.Buy();
ItemsToBuy[i].Bought = true;
}
}
}
示例11: BuyFighterItems
public static void BuyFighterItems()
{
for (int i = 0; i < FighterItems.Count; i++)
{
if (!Items.HasItem(FighterItems[i].ID, Player) &&
Player.Gold >= FighterItems[i].Gold &&
!FighterItems[i].Bought)
{
Items.Item itm = new Items.Item(FighterItems[i].ID);
itm.Buy();
FighterItems[i].Bought = true;
}
}
}
示例12: Akali
/// <summary>
/// Initializes a new instance of the <see cref="Akali" /> class.
/// </summary>
public Akali()
{
this.spellList = new List<Spell>
{
new Spell(SpellSlot.R, 800), new Spell(SpellSlot.Q, 600), new Spell(SpellSlot.E, 325)
};
this.gunblade = ItemData.Hextech_Gunblade.GetItem();
this.cutlass = ItemData.Bilgewater_Cutlass.GetItem();
Game.OnUpdate += this.GameOnOnGameUpdate;
Drawing.OnDraw += this.DrawingOnOnDraw;
PrintChat("Akali loaded!");
}
示例13: Ahri
public Ahri()
{
_menu = Program.Menu;
var comboMenu = _menu.AddSubMenu(new Menu("TeamFight", "TeamFight"));
comboMenu.AddItem(new MenuItem("comboQ", "Use Q").SetValue(true));
comboMenu.AddItem(new MenuItem("comboW", "Use W").SetValue(true));
comboMenu.AddItem(new MenuItem("comboE", "Use E").SetValue(true));
comboMenu.AddItem(new MenuItem("comboR", "Use R").SetValue(true));
comboMenu.AddItem(new MenuItem("comboROnlyUserInitiate", "Use R only if user initiated").SetValue(false));
var harassMenu = _menu.AddSubMenu(new Menu("Harass", "Harass"));
harassMenu.AddItem(new MenuItem("harassQ", "Use Q").SetValue(true));
harassMenu.AddItem(new MenuItem("harassE", "Use E").SetValue(true));
harassMenu.AddItem(new MenuItem("harassPercent", "Skills until Mana %").SetValue(new Slider(20)));
var farmMenu = _menu.AddSubMenu(new Menu("Lane Clear", "LaneClear"));
farmMenu.AddItem(new MenuItem("farmQ", "Use Q").SetValue(true));
farmMenu.AddItem(new MenuItem("farmW", "Use W").SetValue(false));
farmMenu.AddItem(new MenuItem("farmPercent", "Skills until Mana %").SetValue(new Slider(20)));
farmMenu.AddItem(new MenuItem("farmStartAtLevel", "Only AA until Level").SetValue(new Slider(8, 1, 18)));
var drawMenu = _menu.AddSubMenu(new Menu("Drawing", "Drawing"));
drawMenu.AddItem(new MenuItem("drawQE", "Draw Q, E range").SetValue(new Circle(true, System.Drawing.Color.FromArgb(125, 0, 255, 0))));
drawMenu.AddItem(new MenuItem("drawW", "Draw W range").SetValue(new Circle(false, System.Drawing.Color.FromArgb(125, 0, 0, 255))));
var dmgAfterComboItem = new MenuItem("DamageAfterCombo", "Draw Combo Damage").SetValue(true); //copied from esk0r Syndra
drawMenu.AddItem(dmgAfterComboItem);
_itemDFG = Utility.Map.GetMap() == Utility.Map.MapType.TwistedTreeline ? new Items.Item(3188, 750) : new Items.Item(3128, 750);
_spellQ = new Spell(SpellSlot.Q, 990);
_spellW = new Spell(SpellSlot.W, 795 - 95);
_spellE = new Spell(SpellSlot.E, 1000 - 10);
_spellR = new Spell(SpellSlot.R, 1000 - 100);
_spellQ.SetSkillshot(.215f, 100, 1600f, false, SkillshotType.SkillshotLine);
_spellW.SetSkillshot(.71f, _spellW.Range, float.MaxValue, false, SkillshotType.SkillshotLine);
_spellE.SetSkillshot(.23f, 60, 1500f, true, SkillshotType.SkillshotLine);
Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage;
Utility.HpBarDamageIndicator.Enabled = dmgAfterComboItem.GetValue<bool>();
dmgAfterComboItem.ValueChanged += delegate(object sender, OnValueChangeEventArgs eventArgs) { Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue<bool>(); };
Drawing.OnDraw += Drawing_OnDraw;
Game.OnGameUpdate += Game_OnGameUpdate;
PluginLoaded();
}
示例14: Initialize
public static void Initialize()
{
Q = new Spell(SpellSlot.Q, 650);
W = new Spell(SpellSlot.W);
E = new Spell(SpellSlot.E, 350);
R = new Spell(SpellSlot.R, 1000);
Q.SetTargetted(0f, 2200);
R.SetSkillshot(0.5f, 120, 1600, false, SkillshotType.SkillshotLine);
Ignite = ObjectManager.Player.GetSpellSlot("summonerdot");
Youmuu = new Items.Item(3142);
Cutlass = new Items.Item(3144, 450f);
Blade = new Items.Item(3153, 450f);
Tiamat = new Items.Item(3077, 400f);
Hydra = new Items.Item(3074, 400f);
}
示例15: Game_OnGameLoad
static void Game_OnGameLoad(EventArgs args)
{
if (Player.ChampionName != "Renekton")
return;
Q = new Spell(SpellSlot.Q, 225);
W = new Spell(SpellSlot.W);
E = new Spell(SpellSlot.E, 450);
R = new Spell(SpellSlot.R);
Tiamat = new Items.Item((int)ItemId.Tiamat_Melee_Only, 420);
Hydra = new Items.Item((int)ItemId.Ravenous_Hydra_Melee_Only, 420);
Menu = new Menu("【红叶推介】Dat 挖掘机", Player.ChampionName, true);
Menu orbwalkerMenu = Menu.AddSubMenu(new Menu("Orbwalker", "Orbwalker"));
Orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);
Menu tsMenu = Menu.AddSubMenu(new Menu("Target Selector", "TS"));
TargetSelector.AddToMenu(tsMenu);
Menu spellsMenu = Menu.AddSubMenu(new Menu("Spells", "spellsMenu"));
Menu comboMenu = spellsMenu.AddSubMenu(new Menu("Combo Spells", "comboSpells"));
comboMenu.AddItem(new MenuItem("comboUseQ", "Use Q").SetValue(true));
comboMenu.AddItem(new MenuItem("comboUseW", "Use W").SetValue(true));
comboMenu.AddItem(new MenuItem("comboUseE", "Use E").SetValue(true));
comboMenu.AddItem(new MenuItem("comboUseR", "Use R").SetValue(true));
comboMenu.AddItem(new MenuItem("comboSliderR", "Use R at Health (%)").SetValue(new Slider(30, 1, 100)));
Menu laneClearMenu = spellsMenu.AddSubMenu(new Menu("Lane Clear Spells", "laneClearSpells"));
laneClearMenu.AddItem(new MenuItem("laneClearUseQ", "Use Q").SetValue(true));
Menu mixedMenu = spellsMenu.AddSubMenu(new Menu("Mixed Mode Spells", "mixedSpells"));
mixedMenu.AddItem(new MenuItem("mixedUseQ", "Use Q").SetValue(true));
mixedMenu.AddItem(new MenuItem("mixedUseW", "Use W").SetValue(true));
Menu drawMenu = Menu.AddSubMenu(new Menu("Drawing", "drawing"));
drawMenu.AddItem(new MenuItem("drawQ", "Draw Q Range").SetValue(true));
drawMenu.AddItem(new MenuItem("drawIt", "Draw Balls (Risky Click of the Day)").SetValue(false));
Menu.AddToMainMenu();
Drawing.OnDraw += Drawing_OnDraw;
Orbwalking.AfterAttack += Orbwalking_AfterAttack;
Game.OnUpdate += Game_OnGameUpdate;
Game.PrintChat("<font color ='#33FFFF'>Dat Renekton</font> by GoldenGates loaded, enjoy! Best used with an activator and evader!");
}