本文整理汇总了C#中AIHeroClient.GetSpellSlot方法的典型用法代码示例。如果您正苦于以下问题:C# AIHeroClient.GetSpellSlot方法的具体用法?C# AIHeroClient.GetSpellSlot怎么用?C# AIHeroClient.GetSpellSlot使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AIHeroClient
的用法示例。
在下文中一共展示了AIHeroClient.GetSpellSlot方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SummonerItems
public SummonerItems(AIHeroClient myHero)
{
player = myHero;
sumBook = player.Spellbook;
ignite = player.GetSpellSlot("summonerdot");
smite = player.GetSpellSlot("SummonerSmite");
}
示例2: OnLoad
// OnLoad
public static void OnLoad()
{
Player = ObjectManager.Player;
SkillSet();
FlashSlot = Player.GetSpellSlot("SummonerFlash");
Menu();
Game.OnUpdate += OnGameUpdate;
Drawing.OnDraw += Drawing_OnDraw;
Gapcloser.OnGapcloser += AntiGapcloser_OnEnemyGapcloser;
Obj_AI_Base.OnProcessSpellCast += OnProcessSpell;
Interrupter.OnInterruptableSpell += Interrupter2_OnInterruptableTarget;
Orbwalker.OnPreAttack += Orbwalking_BeforeAttack;
EloBuddy.Player.OnIssueOrder += Obj_AI_Base_OnIssueOrder;
Chat.Print("Flash Q is pretty bad, keep that in mind when using it.");
}
示例3: Contains
public static bool Contains(AIHeroClient unit, GameObjectProcessSpellCastEventArgs args)
{
var name = unit.ChampionName;
var slot = unit.GetSpellSlot(args.SData.Name);
foreach (var spell in
BlockedSpells.Where(o => o.Name.Equals(name))
.Where(spell => !spell.HasModelCondition || unit.CharData.BaseSkinName.Equals(spell.ModelName))
.Where(spell => !spell.HasBuffCondition || unit.HasBuff(spell.AutoAttackBuff)))
{
if (spell.IsAutoAttack)
{
if (!args.SData.IsAutoAttack())
{
continue;
}
var condition = spell.AutoAttackName.Equals(args.SData.Name);
if (unit.ChampionName.Equals("Rengar"))
{
condition = condition && unit.Mana.Equals(5);
}
condition = condition && _menu[_menu.DisplayName + "." + name + "AA"] != null && _menu[_menu.DisplayName + "." + name + "AA"].Cast<CheckBox>().CurrentValue;
if (condition)
{
return true;
}
continue;
}
if (_menu[_menu.DisplayName + "." + name] == null || !_menu[_menu.DisplayName + "." + name].Cast<CheckBox>().CurrentValue ||
!spell.Slot.Equals(slot))
{
continue;
}
if (name.Equals("Riven"))
{
var buff = unit.Buffs.FirstOrDefault(b => b.Name.Equals("RivenTriCleave"));
if (buff != null && buff.Count == 3)
{
return true;
}
}
return true;
}
return false;
}
示例4: Game_OnGameLoad
public static void Game_OnGameLoad()
{
try
{
Player = ObjectManager.Player;
MapId = (int)LeagueSharp.Common.Utility.Map.GetMap().Type;
Rand = new Random();
GetSpellsInGame();
GetSmiteSlot();
GetGameTroysInGame();
GetAurasInGame();
GetHeroesInGame();
GetComboDamage();
Origin = MainMenu.AddMenu("Activator", "activator");
cmenu = Origin.AddSubMenu("Cleansers", "cmenu");
SubMenu(cmenu, false);
GetItemGroup("Items.Cleansers").ForEach(t => NewItem((CoreItem) NewInstance(t), cmenu));
dmenu = Origin.AddSubMenu("Defensives", "dmenu");
SubMenu(dmenu, false);
GetItemGroup("Items.Defensives").ForEach(t => NewItem((CoreItem) NewInstance(t), dmenu));
smenu = Origin.AddSubMenu("Summoners", "smenu");
GetItemGroup("Summoners").ForEach(t => NewSumm((CoreSum) NewInstance(t), smenu));
SubMenu(smenu, true, true);
omenu = Origin.AddSubMenu("Offensives", "omenu");
SubMenu(omenu, true);
GetItemGroup("Items.Offensives").ForEach(t => NewItem((CoreItem) NewInstance(t), omenu));
imenu = Origin.AddSubMenu("Consumables", "imenu");
GetItemGroup("Items.Consumables").ForEach(t => NewItem((CoreItem) NewInstance(t), imenu));
amenu = Origin.AddSubMenu("Auto Spells", "amenu");
SubMenu(amenu, false);
GetItemGroup("Spells.Evaders").ForEach(t => NewSpell((CoreSpell) NewInstance(t), amenu));
GetItemGroup("Spells.Shields").ForEach(t => NewSpell((CoreSpell) NewInstance(t), amenu));
GetItemGroup("Spells.Health").ForEach(t => NewSpell((CoreSpell) NewInstance(t), amenu));
GetItemGroup("Spells.Slows").ForEach(t => NewSpell((CoreSpell) NewInstance(t), amenu));
GetItemGroup("Spells.Heals").ForEach(t => NewSpell((CoreSpell) NewInstance(t), amenu));
zmenu = Origin.AddSubMenu("Misc/Settings", "settings");
if (SmiteInGame)
{
zmenu.AddGroupLabel("Drawings");
zmenu.Add("drawsmitet", new CheckBox("Draw Smite Text"));
zmenu.Add("drawfill", new CheckBox("Draw Smite Fill"));
zmenu.Add("drawsmite", new CheckBox("Draw Smite Range"));
}
zmenu.Add("acdebug", new CheckBox("Debug", false));
zmenu.Add("autolevelup", new CheckBox("Auto Level Ultimate"));
zmenu.Add("autotrinket", new CheckBox("Auto Upgrade Trinket", false));
zmenu.Add("healthp", new ComboBox("Ally Priority:", 1, "Low HP", "Most AD/AP", "Most HP"));
zmenu.Add("weightdmg", new Slider("Weight Income Damage (%)", 115, 100, 150));
zmenu.Add("usecombo", new KeyBind("Combo (active)", false, KeyBind.BindTypes.HoldActive, 32));
zmenu.AddGroupLabel("Spell Database");
LoadSpellMenu(zmenu);
// drawings
Drawings.Init();
// handlers
Projections.Init();
Trinkets.Init();
// tracks dangerous or lethal buffs/auras
Buffs.StartOnUpdate();
// tracks gameobjects
Gametroys.StartOnUpdate();
// on bought item
Shop.OnBuyItem += Obj_AI_Base_OnPlaceItemInSlot;
// on level up
Obj_AI_Base.OnLevelUp += Obj_AI_Base_OnLevelUp;
Chat.Print("<b>Activator#</b> - Loaded!");
// init valid auto spells
foreach (var autospell in Lists.Spells)
if (Player.GetSpellSlot(autospell.Name) != SpellSlot.Unknown)
Game.OnUpdate += autospell.OnTick;
// init valid summoners
foreach (var summoner in Lists.Summoners)
if (summoner.Slot != SpellSlot.Unknown ||
summoner.ExtraNames.Any(x => Player.GetSpellSlot(x) != SpellSlot.Unknown))
Game.OnUpdate += summoner.OnTick;
// find items (if F5)
foreach (var item in Lists.Items)
{
if (!LeagueSharp.Common.Items.HasItem(item.Id))
{
continue;
}
//.........这里部分代码省略.........
示例5: Game_OnGameLoad
public static void Game_OnGameLoad()
{
_player = ObjectManager.Player;
if (_player.ChampionName != ChampionName) return;
_humanQ = new Spell(SpellSlot.Q, 625f);
_humanW = new Spell(SpellSlot.W, 950f);
_humanE = new Spell(SpellSlot.E, 1075f);
_spiderQ = new Spell(SpellSlot.Q, 475f);
_spiderW = new Spell(SpellSlot.W, 0);
_spiderE = new Spell(SpellSlot.E, 750f);
_r = new Spell(SpellSlot.R, 0);
_humanW.SetSkillshot(0.75f, 100f, 5000, true, SkillshotType.SkillshotLine);
_humanE.SetSkillshot(0.5f, 55f, 1450, true, SkillshotType.SkillshotLine);
_bilge = new Items.Item(3144, 475f);
_blade = new Items.Item(3153, 425f);
_hydra = new Items.Item(3074, 250f);
_tiamat = new Items.Item(3077, 250f);
_rand = new Items.Item(3143, 490f);
_lotis = new Items.Item(3190, 590f);
_zhonya = new Items.Item(3157, 10);
if (_player.GetSpell(SpellSlot.Summoner1).Name.ToLower().Contains("smite"))
{
_smite = new Spell(SpellSlot.Summoner1, 570f);
_smiteSlot = SpellSlot.Summoner1;
}
else if (_player.GetSpell(SpellSlot.Summoner2).Name.ToLower().Contains("smite"))
{
_smite = new Spell(SpellSlot.Summoner2, 570f);
_smiteSlot = SpellSlot.Summoner2;
}
_igniteSlot = _player.GetSpellSlot("SummonerDot");
Menu = MainMenu.AddMenu("D-Elise", "D-Elise");
comboMenu = Menu.AddSubMenu("Combo", "Combo");
comboMenu.Add("UseHumanQ", new CheckBox("Human Q"));
comboMenu.Add("UseHumanW", new CheckBox("Human W"));
comboMenu.Add("UseHumanE", new CheckBox("Human E"));
comboMenu.Add("UseRCombo", new CheckBox("Auto use R"));
comboMenu.Add("UseSpiderQ", new CheckBox("Spider Q"));
comboMenu.Add("UseSpiderW", new CheckBox("Spider W"));
comboMenu.Add("UseSpiderE", new CheckBox("Spider E"));
harassMenu = Menu.AddSubMenu("Harass", "Harass");
harassMenu.Add("UseQHarass", new CheckBox("Human Q"));
harassMenu.Add("UseWHarass", new CheckBox("Human W"));
harassMenu.Add("Harrasmana", new Slider("Minimum Mana", 60, 1, 100));
itemMenu = Menu.AddSubMenu("Items", "items");
itemMenu.Add("Youmuu", new CheckBox("Use Youmuu's"));
itemMenu.AddSeparator();
itemMenu.Add("Bilge", new CheckBox("Use Bilge"));
itemMenu.Add("BilgeEnemyhp", new Slider("If Enemy Hp <", 85, 1, 100));
itemMenu.Add("Bilgemyhp", new Slider("Or Your Hp <", 85, 1, 100));
itemMenu.Add("Blade", new CheckBox("Use Bork"));
itemMenu.Add("BladeEnemyhp", new Slider("If Enemy Hp <", 85, 1, 100));
itemMenu.Add("Blademyhp", new Slider("Or Your Hp <", 85, 1, 100));
itemMenu.Add("Hextech", new CheckBox("Hextech Gunblade"));
itemMenu.Add("HextechEnemyhp", new Slider("If Enemy Hp <", 85, 1, 100));
itemMenu.Add("Hextechmyhp", new Slider("Or Your Hp <", 85, 1, 100));
itemMenu.AddLabel("Deffensive Items");
itemMenu.AddSeparator();
itemMenu.Add("Omen", new CheckBox("Use Randuin Omen"));
itemMenu.Add("Omenenemys", new Slider("Randuin if enemys>", 2, 1, 5));
itemMenu.Add("Zhonyas", new CheckBox("Use Zhonya's"));
itemMenu.Add("Zhonyashp", new Slider("Use Zhonya's if HP%<", 20, 1, 100));
itemMenu.Add("useqss", new CheckBox("Use QSS/Mercurial Scimitar/Dervish Blade"));
itemMenu.Add("blind", new CheckBox("Blind"));
itemMenu.Add("charm", new CheckBox("Charm"));
itemMenu.Add("fear", new CheckBox("Fear"));
itemMenu.Add("flee", new CheckBox("Flee"));
itemMenu.Add("taunt", new CheckBox("Taunt"));
itemMenu.Add("snare", new CheckBox("Snare"));
itemMenu.Add("suppression", new CheckBox("Suppression"));
itemMenu.Add("stun", new CheckBox("Stun"));
itemMenu.Add("polymorph", new CheckBox("Polymorph"));
itemMenu.Add("silence", new CheckBox("Silence"));
itemMenu.Add("Cleansemode", new ComboBox("Use Cleanse", 1, "Always", "In Combo"));
itemMenu.AddLabel("Potions");
itemMenu.AddSeparator();
itemMenu.Add("usehppotions", new CheckBox("Use Healt potion/Refillable/Hunters/Corrupting/Biscuit"));
itemMenu.Add("usepotionhp", new Slider("If Health % <", 35, 1, 100));
itemMenu.Add("usemppotions", new CheckBox("Use Hunters/Corrupting/Biscuit"));
itemMenu.Add("usepotionmp", new Slider("If Mana % <", 35, 1, 100));
clearMenu = Menu.AddSubMenu("Farm", "Farm");
clearMenu.Add("HumanQFarm", new CheckBox("Human Q"));
clearMenu.Add("HumanWFarm", new CheckBox("Human W"));
clearMenu.Add("SpiderQFarm", new CheckBox("Spider Q", false));
clearMenu.Add("SpiderWFarm", new CheckBox("Spider W"));
clearMenu.Add("Farm_R", new KeyBind("Auto Switch (toggle)", false, KeyBind.BindTypes.PressToggle, 'L'));
clearMenu.Add("Lanemana", new Slider("Minimum Mana", 60, 1, 100));
jungleMenu = Menu.AddSubMenu("Jungle", "Jungle");
jungleMenu.Add("HumanQFarmJ", new CheckBox("Human Q"));
//.........这里部分代码省略.........
示例6: Game_OnGameLoad
public static void Game_OnGameLoad()
{
Player = ObjectManager.Player;
if (ObjectManager.Player.ChampionName != ChampionName) return;
Q = new Spell(SpellSlot.Q, 1500f);
W = new Spell(SpellSlot.W, 875f);
E = new Spell(SpellSlot.E, 600f);
QC = new Spell(SpellSlot.Q, 400f);
WC = new Spell(SpellSlot.W, 375f);
EC = new Spell(SpellSlot.E, 300f);
R = new Spell(SpellSlot.R, 0);
Q.SetSkillshot(0.25f, 40f, 1300, true, SkillshotType.SkillshotLine);
W.SetSkillshot(0.500f, 90f, float.MaxValue, false, SkillshotType.SkillshotCircle);
WC.SetSkillshot(0.50f, 400f, float.MaxValue, false, SkillshotType.SkillshotCircle);
EC.SetSkillshot(0.50f, (float)(15 * Math.PI / 180), float.MaxValue, false, SkillshotType.SkillshotCone);
SpellList.Add(Q);
SpellList.Add(W);
SpellList.Add(E);
SpellList.Add(R);
SpellList.Add(QC);
SpellList.Add(WC);
SpellList.Add(EC);
_archangel = Utility.Map.GetMap().Type == Utility.Map.MapType.TwistedTreeline
|| Utility.Map.GetMap().Type == Utility.Map.MapType.CrystalScar
? new Items.Item(3048, float.MaxValue)
: new Items.Item(3040, float.MaxValue);
if (Player.GetSpell(SpellSlot.Summoner1).Name.ToLower().Contains("smite"))
{
_smite = new Spell(SpellSlot.Summoner1, 570f);
_smiteSlot = SpellSlot.Summoner1;
}
else if (Player.GetSpell(SpellSlot.Summoner2).Name.ToLower().Contains("smite"))
{
_smite = new Spell(SpellSlot.Summoner2, 570f);
_smiteSlot = SpellSlot.Summoner2;
}
_bilge = new Items.Item(3144, 450f);
_blade = new Items.Item(3153, 450f);
_hydra = new Items.Item(3074, 250f);
_tiamat = new Items.Item(3077, 250f);
_rand = new Items.Item(3143, 490f);
_lotis = new Items.Item(3190, 590f);
_zhonya = new Items.Item(3157, float.MaxValue);
IgniteSlot = Player.GetSpellSlot("SummonerDot");
//D Nidalee;
Config = MainMenu.AddMenu("D-Nidalee", "D-Nidalee");
//Combo
comboMenu = Config.AddSubMenu("Combo", "Combo");
comboMenu.Add("UseItemsignite", new CheckBox("Use Ignite"));
comboMenu.Add("smitecombo", new CheckBox("Use Smite"));
comboMenu.Add("UseQCombo", new CheckBox("Use Q"));
comboMenu.Add("UseWCombo", new CheckBox("Use W"));
comboMenu.Add("UseRCombo", new CheckBox("Use R"));
comboMenu.Add("UseQComboCougar", new CheckBox("Use Q Cougar"));
comboMenu.Add("UseWComboCougar", new CheckBox("Use W Cougar"));
comboMenu.Add("UseEComboCougar", new CheckBox("Use E Cougar"));
comboMenu.Add("QHitCombo", new ComboBox("Q HitChange", 3, "Low", "Medium", "High", "Very High"));
//Extra
Heal = Config.AddSubMenu("Heal", "Heal");
Heal.Add("MPPercent", new Slider("Mana percent", 400, 1, 100));
Heal.Add("AutoSwitchform", new CheckBox("Auto Switch Forms"));
Heal.Add("UseAutoE", new CheckBox("Use Heal(E)"));
Heal.Add("HPercent", new Slider("Health percent", 400, 1, 100));
Heal.Add("AllyUseAutoE", new CheckBox("Ally Use Heal(E)"));
Heal.Add("AllyHPercent", new Slider("Ally Health percent", 400, 1, 100));
items = Config.AddSubMenu("items", "items");
items.AddLabel("Offensive");
items.Add("Tiamat", new CheckBox("Use Tiamat"));
items.Add("Hydra", new CheckBox("Use Hydra"));
items.Add("Bilge", new CheckBox("Use Bilge"));
items.Add("BilgeEnemyhp", new Slider("If Enemy Hp <", 85, 1, 100));
items.Add("Bilgemyhp", new Slider("Or your Hp <", 85, 1, 100));
items.Add("Blade", new CheckBox("Use Blade"));
items.Add("BladeEnemyhp", new Slider("If Enemy Hp <", 85, 1, 100));
items.Add("Blademyhp", new Slider("Or your Hp <", 85, 1, 100));
items.AddLabel("Deffensive");
items.Add("Omen", new CheckBox("Use Randuin Omen"));
items.Add("Omenenemys", new Slider("Randuin if enemys>", 2, 1, 5));
items.Add("lotis", new CheckBox("Use Iron Solari"));
items.Add("lotisminhp", new Slider("Solari if Ally Hp<", 35, 1, 100));
items.Add("Righteous", new CheckBox("Use Righteous Glory"));
items.Add("Righteousenemys", new Slider("Righteous Glory if Enemy >=", 2, 1, 5));
items.Add("Righteousenemysrange", new Slider("Righteous Glory Range Check", 800, 400, 1400));
items.Add("Zhonyas", new CheckBox("Use Zhonyas"));
items.Add("Zhonyashp", new Slider("Use Zhonya's if HP%<", 20, 1, 100));
items.Add("Archangel", new CheckBox("Seraph's Embrace"));
items.Add("Archangelmyhp", new Slider("If My HP% <", 85, 1, 100));
items.AddLabel("Potions");
items.Add("usehppotions", new CheckBox("Use Healt potion/Refillable/Hunters/Corrupting/Biscuit"));
//.........这里部分代码省略.........
示例7: Game_OnGameLoad
public static void Game_OnGameLoad()
{
try
{
_player = ObjectManager.Player;
if (ObjectManager.Player.BaseSkinName != ChampionName) return;
_q = new LeagueSharp.Common.Spell(SpellSlot.Q, 900f);
_w = new LeagueSharp.Common.Spell(SpellSlot.W, 700f);
_e = new LeagueSharp.Common.Spell(SpellSlot.E, 270f);
_r = new LeagueSharp.Common.Spell(SpellSlot.R, 650f);
_q.SetSkillshot(0.25f, 50f, 1700f, false, SkillshotType.SkillshotLine);
_bilge = new Items.Item(3144, 475f);
_blade = new Items.Item(3153, 425f);
_hydra = new Items.Item(3074, 250f);
_tiamat = new Items.Item(3077, 250f);
_rand = new Items.Item(3143, 490f);
_lotis = new Items.Item(3190, 590f);
_youmuu = new Items.Item(3142, 10);
_igniteSlot = _player.GetSpellSlot("SummonerDot");
var enemy = from hero in ObjectManager.Get<AIHeroClient>() where hero.IsEnemy == true select hero;
// Just menu things test
_config = MainMenu.AddMenu("Zed Is Back", "Zed Is Back");
//Combo
comboMenu = _config.AddSubMenu("Combo", "Combo");
comboMenu.Add("UseWC", new CheckBox("Use W (also gap close)"));
comboMenu.Add("UseIgnitecombo", new CheckBox("Use Ignite(rush for it)"));
comboMenu.Add("UseUlt", new CheckBox("Use Ultimate"));
comboMenu.Add("TheLine", new KeyBind("The Line Combo", false, KeyBind.BindTypes.HoldActive, 'T'));
//Harass
harassMenu = _config.AddSubMenu("Harass", "Harass");
harassMenu.Add("longhar", new KeyBind("Long Poke (toggle)", false, KeyBind.BindTypes.PressToggle, 'U'));
harassMenu.Add("UseItemsharass", new CheckBox("Use Tiamat/Hydra"));
harassMenu.Add("UseWH", new CheckBox("Use W"));
//Farm
farmMenu = _config.AddSubMenu("Farm", "Farm");
farmMenu.AddGroupLabel("LaneFarm");
farmMenu.Add("UseItemslane", new CheckBox("Use Hydra/Tiamat"));
farmMenu.Add("UseQL", new CheckBox("Q LaneClear"));
farmMenu.Add("UseEL", new CheckBox("E LaneClear"));
farmMenu.Add("Energylane", new Slider("Energy Lane% >", 45, 1, 100));
farmMenu.AddGroupLabel("LastHit");
farmMenu.Add("UseQLH", new CheckBox("Q LastHit"));
farmMenu.Add("UseELH", new CheckBox("E LastHit"));
farmMenu.Add("Energylast", new Slider("Energy lasthit% >", 85, 1, 100));
farmMenu.AddGroupLabel("Jungle");
farmMenu.Add("UseItemsjungle", new CheckBox("Use Hydra/Tiamat"));
farmMenu.Add("UseQJ", new CheckBox("Q Jungle"));
farmMenu.Add("UseWJ", new CheckBox("W Jungle"));
farmMenu.Add("UseEJ", new CheckBox("E Jungle"));
farmMenu.Add("Energyjungle", new Slider("Energy Jungle% >", 85, 1, 100));
//Misc
miscMenu = _config.AddSubMenu("Misc", "Misc");
miscMenu.Add("UseIgnitekill", new CheckBox("Use Ignite KillSteal"));
miscMenu.Add("UseQM", new CheckBox("Use Q KillSteal"));
miscMenu.Add("UseEM", new CheckBox("Use E KillSteal"));
miscMenu.Add("AutoE", new CheckBox("Auto E"));
miscMenu.Add("rdodge", new CheckBox("R Dodge Dangerous"));
foreach (var e in enemy)
{
SpellDataInst rdata = e.Spellbook.GetSpell(SpellSlot.R);
if (DangerDB.DangerousList.Any(spell => spell.Contains(rdata.SData.Name)))
miscMenu.Add("ds" + e.BaseSkinName, new CheckBox(rdata.SData.Name));
}
//Drawings
drawMenu = _config.AddSubMenu("Drawings", "Drawings");
drawMenu.Add("DrawQ", new CheckBox("Draw Q"));
drawMenu.Add("DrawE", new CheckBox("Draw E"));
drawMenu.Add("DrawQW", new CheckBox("Draw long harras"));
drawMenu.Add("DrawR", new CheckBox("Draw R"));
drawMenu.Add("DrawHP", new CheckBox("Draw HP bar"));
drawMenu.Add("shadowd", new CheckBox("Shadow Position"));
drawMenu.Add("damagetest", new CheckBox("Damage Text"));
drawMenu.Add("CircleLag", new CheckBox("Lag Free Circles"));
drawMenu.Add("CircleQuality", new Slider("Circles Quality", 100, 10, 100));
drawMenu.Add("CircleThickness", new Slider("Circles Thickness", 1, 1, 10));
ObjectManager.Player.LastCastedspell();
Drawing.OnDraw += Drawing_OnDraw;
Game.OnUpdate += Game_OnUpdate;
Obj_AI_Base.OnProcessSpellCast += OnProcessSpell;
}
catch (Exception e)
{
Console.WriteLine(e);
Chat.Print("Error something went wrong");
}
}
示例8: Game_OnGameLoad
public static void Game_OnGameLoad()
{
Player = ObjectManager.Player;
if (Player.CharData.BaseSkinName != ChampionName) return;
//Create the spells
Q = new LeagueSharp.Common.Spell(SpellSlot.Q, 790);
W = new LeagueSharp.Common.Spell(SpellSlot.W, 925);
E = new LeagueSharp.Common.Spell(SpellSlot.E, 700);
R = new LeagueSharp.Common.Spell(SpellSlot.R, 675);
Eq = new LeagueSharp.Common.Spell(SpellSlot.Q, Q.Range + 500);
IgniteSlot = Player.GetSpellSlot("SummonerDot");
Q.SetSkillshot(0.6f, 125f, float.MaxValue, false, SkillshotType.SkillshotCircle);
W.SetSkillshot(0.25f, 140f, 1600f, false, SkillshotType.SkillshotCircle);
E.SetSkillshot(0.25f, (float)(45 * 0.5), 2500f, false, SkillshotType.SkillshotCircle);
Eq.SetSkillshot(float.MaxValue, 55f, 2000f, false, SkillshotType.SkillshotCircle);
SpellList.Add(Q);
SpellList.Add(W);
SpellList.Add(E);
SpellList.Add(R);
//Create the menu
Config = MainMenu.AddMenu(ChampionName, ChampionName);
menuKeys = Config.AddSubMenu("Keys", "Keys");
{
menuKeys.Add("Key.HarassT", new KeyBind("Harass (toggle)!", false, KeyBind.BindTypes.PressToggle, 'Y'));
menuKeys.Add("Key.InstantQE", new KeyBind("Instant Q-E to Enemy", false, KeyBind.BindTypes.HoldActive, 'T'));
}
menuCombo = Config.AddSubMenu("Combo", "Combo");
{
menuCombo.Add("UseQCombo", new CheckBox("Use Q"));
menuCombo.Add("UseWCombo", new CheckBox("Use W"));
menuCombo.Add("UseECombo", new CheckBox("Use E"));
menuCombo.Add("UseQECombo", new CheckBox("Use QE"));
menuCombo.Add("UseRCombo", new CheckBox("Use R"));
menuCombo.Add("UseIgniteCombo", new CheckBox("Use Ignite"));
}
menuHarass = Config.AddSubMenu("Harass", "Harass");
{
menuHarass.Add("UseQHarass", new CheckBox("Use Q"));
menuHarass.Add("UseWHarass", new CheckBox("Use W", false));
menuHarass.Add("UseEHarass", new CheckBox("Use E", false));
menuHarass.Add("UseQEHarass", new CheckBox("Use QE", false));
menuHarass.Add("Harass.Mana", new Slider("Don't harass if mana < %", 0));
}
menuFarm = Config.AddSubMenu("Lane Farm", "Farm");
{
menuFarm.Add("EnabledFarm", new CheckBox("Enable! (On/Off: Mouse Scroll)"));
menuFarm.Add("UseQFarm", new ComboBox("Use Q", 2, "Last Hit", "LaneClear", "Both", "No"));
menuFarm.Add("UseWFarm", new ComboBox("Use W", 1, "Last Hit", "LaneClear", "Both", "No"));
menuFarm.Add("Lane.Mana", new Slider("Don't harass if mana < %", 0));
}
menuJungle = Config.AddSubMenu("Jungle Farm", "JungleFarm");
{
menuJungle.Add("UseQJFarm", new CheckBox("Use Q"));
menuJungle.Add("UseWJFarm", new CheckBox("Use W"));
menuJungle.Add("UseEJFarm", new CheckBox("Use E"));
}
menuMisc = Config.AddSubMenu("Misc", "Misc");
{
menuMisc.Add("InterruptSpells", new CheckBox("Interrupt spells"));
menuMisc.Add("CastQE", new KeyBind("QE closest to cursor", false, KeyBind.BindTypes.HoldActive, 'T'));
foreach (var enemy in ObjectManager.Get<AIHeroClient>().Where(enemy => enemy.Team != Player.Team))
menuMisc.Add("DontUlt" + enemy.CharData.BaseSkinName, new CheckBox("Don't Ult : " + enemy.CharData.BaseSkinName, false));
}
DrawMenu = Config.AddSubMenu("Drawings", "Drawings");
{
DrawMenu.Add("QRange", new CheckBox("Q range", false));//.SetValue(new Circle(false, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
DrawMenu.Add("WRange", new CheckBox("W range"));//.SetValue(new Circle(true, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
DrawMenu.Add("ERange", new CheckBox("E range", false));//.SetValue(new Circle(false, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
DrawMenu.Add("RRange", new CheckBox("R range", false));//.SetValue(new Circle(false, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
DrawMenu.Add("QERange", new CheckBox("QE range"));//.SetValue(new Circle(true, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
ManaBarIndicator.Initialize();
}
//Add the events we are going to use:
Game.OnUpdate += Game_OnGameUpdate;
Game.OnWndProc += Game_OnWndProc;
Orbwalker.OnPreAttack += Orbwalking_BeforeAttack;
Obj_AI_Base.OnProcessSpellCast += AIHeroClient_OnProcessSpellCast;
Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
Drawing.OnDraw += Drawing_OnDraw;
}
示例9: WreckingBallLoad
public static void WreckingBallLoad()
{
leeHero = ObjectManager.Player;
if (leeHero.ChampionName != ChampName)
{
return;
}
ChampInfo.InitSpells();
LoadMenu();
SPrediction.Prediction.Initialize(wbMenu, "SPred Settings");
bubbaPriorityMode = (PriorityMode)getBoxItem(mainMenu, "modePrio");
spellQ = new LeagueSharp.Common.Spell(SpellSlot.Q, ChampInfo.Q.Range);
spellQ2 = new LeagueSharp.Common.Spell(SpellSlot.Q, ChampInfo.Q2.Range);
spellW = new LeagueSharp.Common.Spell(SpellSlot.W, ChampInfo.W.Range);
spellW2 = new LeagueSharp.Common.Spell(SpellSlot.W, ChampInfo.W2.Range);
spellE = new LeagueSharp.Common.Spell(SpellSlot.E, ChampInfo.E.Range);
spellE2 = new LeagueSharp.Common.Spell(SpellSlot.E, ChampInfo.E2.Range);
spellR = new LeagueSharp.Common.Spell(SpellSlot.R, ChampInfo.R.Range);
spellQ.SetSkillshot(
ChampInfo.Q.Delay,
ChampInfo.Q.Width,
ChampInfo.Q.Speed,
true,
SkillshotType.SkillshotLine);
spellE.SetSkillshot(
ChampInfo.E.Delay,
ChampInfo.E.Width,
ChampInfo.E.Speed,
false,
SkillshotType.SkillshotCircle);
igniteSlot = leeHero.GetSpellSlot("summonerdot");
flashSlot = leeHero.GetSpellSlot("summonerflash");
Game.OnUpdate += WreckingBallOnUpdate;
Drawing.OnDraw += WreckingBallOnDraw;
GameObject.OnCreate += WreckingBallOnCreate;
}
示例10: CheckSpells
private static bool CheckSpells(AIHeroClient sender, GameObjectProcessSpellCastEventArgs args)
{
return EscapeSpells.Contains(args.SData.Name) || EscapeSpells.Contains(sender.ChampionName + sender.GetSpellSlot(args.SData.Name));
}
示例11: GameOnOnGameLoad
public static void GameOnOnGameLoad()
{
Player = ObjectManager.Player;
if (Player.ChampionName != "Ekko")
{
return;
}
Q = new Spell(SpellSlot.Q, 850);
Q.SetSkillshot(0.25f, 60f, 1650, false, SkillshotType.SkillshotLine);
W = new Spell(SpellSlot.W, 1650);
W.SetSkillshot(3f, 500f, int.MaxValue, false, SkillshotType.SkillshotCircle);
E = new Spell(SpellSlot.E, 450);
R = new Spell(SpellSlot.R, 375);
R.SetSkillshot(.3f, 375, int.MaxValue, false, SkillshotType.SkillshotCircle);
ignite = Player.GetSpellSlot("summonerdot");
Menu = MainMenu.AddMenu("Ekko God", "EkkoGod");
comboMenu = Menu.AddSubMenu("Combo", "Combo");
comboMenu.Add("QMode", new ComboBox("QMode :", 0, "QE", "EQ", "EQ Hyper Speed (test)"));
comboMenu.AddSeparator();
comboMenu.Add("UseQCombo", new CheckBox("Use Q in combo", true));
comboMenu.Add("UseWCombo", new CheckBox("Cast W before R in AoE", true));
comboMenu.Add("UseWCombo2", new CheckBox("Cast W before R in combo killable", true));
comboMenu.Add("UseECombo", new CheckBox("Use E in combo", true));
rMenu = Menu.AddSubMenu("R Options", "RMenu");
rMenu.Add("UseRKillable", new CheckBox("Use R if combo killable", true));
rMenu.Add("UseRatHP", new CheckBox("Use R at % HP", true));
rMenu.Add("HP", new Slider("HP", 30, 0, 100));
rMenu.Add("UseRAoE", new CheckBox("Use R AoE", true));
rMenu.Add("AoECount", new Slider("Minimum targets to R", 3, 1, 5));
rMenu.Add("UseRifDie", new CheckBox("Use R if ability will kill me", true));
rMenu.Add("UseRDangerous", new CheckBox("Use R on ZedR, ViR, etc", true));
harassMenu = Menu.AddSubMenu("Harass", "Harass");
harassMenu.Add("UseQHarass", new CheckBox("Use Q in harass", true));
harassMenu.Add("UseEHarass", new CheckBox("Use E in harass", true));
harassMenu.Add("HarassMana", new Slider("Mana manager (%)", 40, 1, 100));
drawMenu = Menu.AddSubMenu("Drawings", "Drawings");
drawMenu.Add("drawQ", new CheckBox("Q range (also is dash+leap range)", false));
drawMenu.Add("drawW", new CheckBox("W range", false));
drawMenu.Add("drawE", new CheckBox("E (leap) range", false));
drawMenu.Add("drawGhost", new CheckBox("R range (around ghost)", true));
drawMenu.Add("drawPassiveStacks", new CheckBox("Passive stacks", true));
drawMenu.Add("DamageAfterCombo", new CheckBox("Draw damage after combo", true));
LeagueSharp.Common.Utility.HpBarDamageIndicator.Enabled = true;
LeagueSharp.Common.Utility.HpBarDamageIndicator.DamageToUnit = ComboDamage;
fleeMenu = Menu.AddSubMenu("Flee", "Flee");
fleeMenu.Add("QFlee", new CheckBox("Q enemy while fleeing)", true));
fleeMenu.Add("EFlee", new CheckBox("Jump to furthest minion w/ E", true));
miscMenu = Menu.AddSubMenu("Misc", "Misc");
miscMenu.Add("Killsteal", new CheckBox("KS with Q", true));
miscMenu.Add("WSelf", new CheckBox("W Self on Gapclose", true));
miscMenu.Add("WCC", new CheckBox("Cast W on Immobile", true));
miscMenu.Add("UseIgnite", new CheckBox("Ignite if Combo Killable", true));
//Config.AddItem(new MenuItem("eToMinion", "E Minion After Manual E if Target Far").SetValue(true));
Game.OnUpdate += OnUpdate;
Drawing.OnDraw += OnDraw;
Obj_AI_Base.OnProcessSpellCast += Obj_AI_Hero_OnProcessSpellCast;
AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
}
示例12: Game_OnGameLoad
public static void Game_OnGameLoad()
{
_player = ObjectManager.Player;
if (ObjectManager.Player.ChampionName != ChampionName)
{
Chat.Print("Please use Kayle~");
return;
}
_q = new Spell(SpellSlot.Q, 650f);
_w = new Spell(SpellSlot.W, 900f);
_e = new Spell(SpellSlot.E, 675f);
_r = new Spell(SpellSlot.R, 900f);
if (_player.GetSpell(SpellSlot.Summoner1).Name.ToLower().Contains("smite"))
{
_smite = new Spell(SpellSlot.Summoner1, 570f);
_smiteSlot = SpellSlot.Summoner1;
}
else if (_player.GetSpell(SpellSlot.Summoner2).Name.ToLower().Contains("smite"))
{
_smite = new Spell(SpellSlot.Summoner2, 570f);
_smiteSlot = SpellSlot.Summoner2;
}
SpellList.Add(_q);
SpellList.Add(_w);
SpellList.Add(_e);
SpellList.Add(_r);
_rand = new Items.Item(3143, 490f);
_lotis = new Items.Item(3190, 590f);
_frostqueen = new Items.Item(3092, 800f);
_mikael = new Items.Item(3222, 600f);
_igniteSlot = _player.GetSpellSlot("SummonerDot");
_config = MainMenu.AddMenu("D-Kayle", "D-Kayle");
comboMenu = _config.AddSubMenu("Combo", "Combo");
comboMenu.Add("UseIgnitecombo", new CheckBox("Use Ignite", true));
comboMenu.Add("smitecombo", new CheckBox("Use Smite in target", true));
comboMenu.Add("UseQCombo", new CheckBox("Use Q", true));
comboMenu.Add("UseWCombo", new CheckBox("Use W", true));
comboMenu.Add("UseECombo", new CheckBox("Use E", true));
itemMenu = _config.AddSubMenu("Items", "items");
itemMenu.Add("frostQ", new CheckBox("Use Frost Queen's"));
itemMenu.AddSeparator();
itemMenu.Add("Omen", new CheckBox("Use Randuin Omen"));
itemMenu.Add("Omenenemys", new Slider("Randuin if enemys >", 2, 1, 5));
itemMenu.Add("lotis", new CheckBox("Use Iron Solari"));
itemMenu.Add("lotisminhp", new Slider("Solari if Ally Hp <", 35, 1, 100));
itemMenu.AddLabel("Cleanse");
itemMenu.AddSeparator();
itemMenu.Add("usemikael", new CheckBox("Use Mikael's to remove Debuffs"));
itemMenu.Add("mikaelusehp", new Slider("Mikael's if Ally Hp <", 35, 1, 100));
foreach (var hero in ObjectManager.Get<AIHeroClient>().Where(hero => hero.IsAlly))
{
itemMenu.Add("mikaeluse" + hero.BaseSkinName, new CheckBox(hero.BaseSkinName));
}
itemMenu.Add("useqss", new CheckBox("Use QSS/Mercurial Scimitar/Dervish Blade"));
itemMenu.Add("blind", new CheckBox("Blind"));
itemMenu.Add("charm", new CheckBox("Charm"));
itemMenu.Add("fear", new CheckBox("Fear"));
itemMenu.Add("flee", new CheckBox("Flee"));
itemMenu.Add("taunt", new CheckBox("Taunt"));
itemMenu.Add("snare", new CheckBox("Snare"));
itemMenu.Add("suppression", new CheckBox("Suppression"));
itemMenu.Add("stun", new CheckBox("Stun"));
itemMenu.Add("polymorph", new CheckBox("Polymorph"));
itemMenu.Add("silence", new CheckBox("Silence"));
itemMenu.Add("Cleansemode", new ComboBox("Use Cleanse", 1, "Always", "In Combo"));
itemMenu.AddLabel("Potions");
itemMenu.AddSeparator();
itemMenu.Add("usehppotions", new CheckBox("Use Healt potion/Refillable/Hunters/Corrupting/Biscuit"));
itemMenu.Add("usepotionhp", new Slider("If Health % <", 35, 1, 100));
itemMenu.Add("usemppotions", new CheckBox("Use Hunters/Corrupting/Biscuit"));
itemMenu.Add("usepotionmp", new Slider("If Mana % <", 35, 1, 100));
utilityMenu = _config.AddSubMenu("Utilities", "utilities");
utilityMenu.Add("onmeW", new CheckBox("W Self"));
utilityMenu.Add("healper", new Slider("Self Health %", 40, 1, 100));
utilityMenu.Add("onmeR", new CheckBox("R Self Use"));
utilityMenu.Add("healper", new Slider("Self Health %", 40, 1, 100));
utilityMenu.AddLabel("Use W Ally");
utilityMenu.Add("allyW", new CheckBox("W Ally"));
utilityMenu.Add("allyhealper", new Slider("Ally Health %", 40, 1, 100));
foreach (var hero in ObjectManager.Get<AIHeroClient>().Where(hero => hero.IsAlly && !hero.IsMe))
{
utilityMenu.Add("usewally" + hero.BaseSkinName, new CheckBox(hero.BaseSkinName));
}
utilityMenu.AddLabel("Use R Ally");
utilityMenu.Add("allyR", new CheckBox("R Ally"));
utilityMenu.Add("ultiallyHP", new Slider("Ally Health %", 40, 1, 100));
foreach (var hero in ObjectManager.Get<AIHeroClient>().Where(hero => hero.IsAlly && !hero.IsMe))
{
utilityMenu.Add("userally" + hero.BaseSkinName, new CheckBox(hero.BaseSkinName));
//.........这里部分代码省略.........
示例13: Load
static void Load(EventArgs args)
{
_player = ObjectManager.Player;
_q = new LeagueSharp.Common.Spell(SpellSlot.Q, 676f);
_w = new LeagueSharp.Common.Spell(SpellSlot.W, Orbwalking.GetRealAutoAttackRange(_player));
_e = new LeagueSharp.Common.Spell(SpellSlot.E, 980f);
_r = new LeagueSharp.Common.Spell(SpellSlot.R, 550f);
_q.SetSkillshot(_q.Instance.SData.SpellCastTime, 280f, _q.Instance.SData.MissileSpeed, false, SkillshotType.SkillshotCircle);
_e.SetSkillshot(_e.Instance.SData.SpellCastTime, _e.Instance.SData.LineWidth, _e.Instance.SData.MissileSpeed, false, SkillshotType.SkillshotLine);
SpellList.Add(_q);
SpellList.Add(_w);
SpellList.Add(_e);
SpellList.Add(_r);
IgniteSlot = _player.GetSpellSlot("SummonerDot");
SmiteSlot = _player.GetSpellSlot("summonersmite");
_cfg = MainMenu.AddMenu("Aatrox", "Aatrox");
comboMenu = _cfg.AddSubMenu("Combo", "Combo");
comboMenu.Add("UseQCombo", new CheckBox("Use Q"));
comboMenu.Add("UseWCombo", new CheckBox("Use W"));
comboMenu.Add("UseECombo", new CheckBox("Use E"));
comboMenu.Add("UseRCombo", new CheckBox("Use R"));
comboMenu.Add("minW", new Slider("min HP % W", 50, 0, 100));
comboMenu.Add("maxW", new Slider("Max HP % W", 80, 0, 100));
comboMenu.Add("minR", new Slider("Min Enemies to R", 2, 0, 5));
comboMenu.Add("DontQ", new CheckBox("Don't Q at enemy tower"));
comboMenu.Add("Dive", new CheckBox("Dive Tower when target HP is lower then %"));
comboMenu.Add("DiveMHP", new Slider("My HP % to Towerdive", 60));
comboMenu.Add("DiveTHP", new Slider("Target HP % to Towerdive", 10));
comboMenu.Add("UseItems", new CheckBox("Use Items"));
harassMenu = _cfg.AddSubMenu("Harass", "Harass");
harassMenu.Add("HarQ", new CheckBox("Use Q In Harass", false));
harassMenu.Add("HarE", new CheckBox("Use E In Harass"));
laneClearMenu = _cfg.AddSubMenu("LaneClear", "LaneClear");
laneClearMenu.Add("UseQLane", new CheckBox("Use Q", false));
laneClearMenu.Add("UseWLane", new CheckBox("Use W"));
laneClearMenu.Add("UseELane", new CheckBox("Use E"));
jungleClearMenu = _cfg.AddSubMenu("JungleClear", "JungleClear");
jungleClearMenu.Add("UseQJungle", new CheckBox("Use Q"));
jungleClearMenu.Add("UseWJungle", new CheckBox("Use W"));
jungleClearMenu.Add("UseEJungle", new CheckBox("Use E"));
ksMenu = _cfg.AddSubMenu("KillSteal", "KillSteal");
ksMenu.Add("SmartKS", new CheckBox("Smart KillSteal"));
ksMenu.Add("RKS", new CheckBox("Use R in KS", false));
drawMenu = _cfg.AddSubMenu("Drawings", "Drawings");
drawMenu.Add("Qdraw", new CheckBox("Draw Q Range"));
drawMenu.Add("Edraw", new CheckBox("Draw E Range"));
drawMenu.Add("LagFree", new CheckBox("Lag Free Cirlces"));
drawMenu.Add("CircleThickness", new Slider("Circles Thickness", 1, 1, 10));
miscMenu = _cfg.AddSubMenu("Misc", "Misc");
miscMenu.Add("TowerQ", new CheckBox("Auto Q Under Turret", false));
miscMenu.Add("IntQ", new CheckBox("Auto Interrupt with Q", false));
miscMenu.Add("IntMed", new CheckBox("Interrupt Medium Danger Spells", false));
miscMenu.Add("SmartW", new CheckBox("Smart W Logic"));
Game.OnUpdate += OnUpdate;
Drawing.OnDraw += OnDraw;
Interrupter2.OnInterruptableTarget += OnPossibleToInterrupt;
Orbwalker.OnPostAttack += OrbwalkingAfterAttack;
}
示例14: OnLoad
public static void OnLoad(EventArgs args)
{
try
{
deaths = new[]
{
"/all XD", "kek", "sorry lag", "/all gg", "help pls", "nooob wtf", "team???", "/all gg my team sucks",
"/all matchmaking sucks", "i can't carry dis", "wtf how?", "wow rito nerf pls",
"/all report enemys for drophacks", "tilidin y u do dis", "kappa", "amk", "/all einfach mal leben genießen amk"
};
player = ObjectManager.Player;
ghostSlot = player.GetSpellSlot("SummonerHaste");
healSlot = player.GetSpellSlot("SummonerHeal");
if (player.Gold >= 0)
{
realTime = Game.Time;
}
InitializeMenu.Load();
SRShopAI.Main.Init(); //Credits to Insensitivity for his amazing "ARAMShopAI" assembly
Game.OnUpdate += OnUpdate;
Game.OnEnd += OnEnd;
EloBuddy.Player.OnIssueOrder += OnIssueOrder;
}
catch (Exception e)
{
Console.WriteLine("An error occurred: '{0}'", e);
}
}