public static bool IsActive(this Spell spell, bool ks = false) { var mode = Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo); var name = string.Format("{0}{1}{2}", ks ? "KS" : string.Empty, spell.Slot.ToString().ToUpper(), ks ? string.Empty : (mode ? "Combo" : "Harass")); var item = false; if ((spell.Slot == SpellSlot.Q || spell.Slot == SpellSlot.Q || spell.Slot == SpellSlot.Q || spell.Slot == SpellSlot.Q) && ks) { item = Katarina.getCheckBoxItem(Katarina.ksMenu, name); } if (!ks) { if (spell.Slot == SpellSlot.Q) { item = Katarina.getCheckBoxItem(Katarina.qMenu, name); } if (spell.Slot == SpellSlot.W) { item = Katarina.getCheckBoxItem(Katarina.wMenu, name); } if (spell.Slot == SpellSlot.E) { item = Katarina.getCheckBoxItem(Katarina.eMenu, name); } if (spell.Slot == SpellSlot.R) { item = Katarina.getCheckBoxItem(Katarina.rMenu, name); } } return(item); }
static SpellManager() { Q = new Spell(SpellSlot.Q, 675); W = new Spell(SpellSlot.W, 375); E = new Spell(SpellSlot.E, 700); R = new Spell(SpellSlot.R, 550); }
public Kalista() { Q = new LeagueSharp.SDK.Spell(SpellSlot.Q, 1150f); W = new LeagueSharp.SDK.Spell(SpellSlot.W, 5000); E = new LeagueSharp.SDK.Spell(SpellSlot.E, 1000f); R = new LeagueSharp.SDK.Spell(SpellSlot.R, 1400f); ELS = new LeagueSharp.Common.Spell(SpellSlot.E, 950); Q.SetSkillshot(0.25f, 40f, 1200f, true, SkillshotType.SkillshotLine); InitMenu(); DelayedOnUpdate += OnUpdate; Drawing.OnDraw += HpBarDamageIndicator.Drawing_OnDraw; Drawing.OnDraw += OnDraw; Orbwalker.OnPostAttack += Orbwalker_OnPostAttack; Orbwalker.OnPreAttack += Orbwalker_OnPreAttack; Obj_AI_Base.OnProcessSpellCast += UltLogic_OnSpellcast; Game.OnUpdate += UltLogic_OnUpdate; }
public Soraka() { Q = new LeagueSharp.Common.Spell(SpellSlot.Q, 750); W = new LeagueSharp.Common.Spell(SpellSlot.W, 550); E = new LeagueSharp.Common.Spell(SpellSlot.E, 900); R = new LeagueSharp.Common.Spell(SpellSlot.R); Q.SetSkillshot(0.5f, 125, 1750, false, LeagueSharp.Common.SkillshotType.SkillshotCircle); E.SetSkillshot(0.5f, 70f, 1750, false, LeagueSharp.Common.SkillshotType.SkillshotCircle); InitializeMenu(); Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast; DelayedOnUpdate += OnUpdate; Drawing.OnDraw += OnDraw; GameObject.OnCreate += OnCreateObj; //Events.OnGapCloser += OnGapCloser; Events.OnInterruptableTarget += this.OnInterruptableTarget; Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast; this._rand = new Random(); }
public LeeSin() { Q = new LeagueSharp.SDK.Spell(SpellSlot.Q, 1100).SetSkillshot(0.25f, 60, 1800, true, SkillshotType.SkillshotLine); QS = new LeagueSharp.Common.Spell(SpellSlot.Q, 1100); QS.SetSkillshot(0.275f, 60f, 1850f, true, LeagueSharp.Common.SkillshotType.SkillshotLine); Q2 = new LeagueSharp.SDK.Spell(Q.Slot, 1300); W = new LeagueSharp.SDK.Spell(SpellSlot.W, 700); E = new LeagueSharp.SDK.Spell(SpellSlot.E, 425).SetTargetted(0.25f, float.MaxValue); E2 = new LeagueSharp.SDK.Spell(E.Slot, 570); R = new LeagueSharp.SDK.Spell(SpellSlot.R, 375).SetTargetted(0.25f, float.MaxValue); R2 = new LeagueSharp.SDK.Spell(R.Slot, RKickRange).SetSkillshot(R.Delay, 0, 900, false, SkillshotType.SkillshotLine); Q.DamageType = Q2.DamageType = W.DamageType = R.DamageType = DamageType.Physical; E.DamageType = DamageType.Magical; Q.MinHitChance = R2.MinHitChance = LeagueSharp.SDK.Enumerations.HitChance.VeryHigh; WardManager.Init(); Insec.Init(); kuMenu = config.AddSubMenu("Auto Knock Up"); kuMenu.Add("R", new KeyBind("Keybind (R-Flash)", false, KeyBind.BindTypes.PressToggle, 'L')); kuMenu.Add("RKill", new CheckBox("Priority To Kill Enemy Behind")); kuMenu.Add("RCountA", new Slider("Or Hit Enemy Behind >=", 1, 1, 4)); bkMenu = config.AddSubMenu("Bubba Kush", "BubbaKush"); bkMenu.Add("R", new KeyBind("Keybind (R-Flash)", false, KeyBind.BindTypes.HoldActive, 'X')); bkMenu.Add("RMode", new ComboBox("Mode", 0, new[] { "Flash", "WardJump", "Both" })); bkMenu.Add("RKill", new CheckBox("Priority To Kill Enemy")); bkMenu.Add("RCountA", new Slider("Or Hit Enemy >=", 1, 1, 4)); comboMenu = config.AddSubMenu("Combo", "Combo"); comboMenu.Add("Ignite", new CheckBox("Use Ignite")); comboMenu.Add("Item", new CheckBox("Use Item")); comboMenu.AddGroupLabel("Q Settings"); comboMenu.Add("Q", new CheckBox("Use Q")); comboMenu.Add("Q2", new CheckBox("Also Q2")); comboMenu.Add("Q2Obj", new CheckBox("Q2 Even Miss", false)); comboMenu.Add("QCol", new CheckBox("Smite Collision")); comboMenu.AddGroupLabel("W Settings"); comboMenu.Add("W", new CheckBox("Use W", false)); comboMenu.Add("W2", new CheckBox("Also W2", false)); comboMenu.AddGroupLabel("E Settings"); comboMenu.Add("E", new CheckBox("Use E")); comboMenu.Add("E2", new CheckBox("Also E2")); comboMenu.AddGroupLabel("Star Combo Settings"); comboMenu.Add("Star", new KeyBind("Star Combo", false, KeyBind.BindTypes.HoldActive, 'X')); comboMenu.Add("StarKill", new CheckBox("Auto Star Combo If Killable", false)); comboMenu.Add("StarKillWJ", new CheckBox("-> Ward Jump In Auto Star Combo", false)); lcMenu = config.AddSubMenu("LaneClear", "Lane Clear"); lcMenu.Add("W", new CheckBox("Use W", false)); lcMenu.Add("E", new CheckBox("Use E")); lcMenu.AddGroupLabel("Q Settings"); lcMenu.Add("Q", new CheckBox("Use Q")); lcMenu.Add("QBig", new CheckBox("Only Q Big Mob In Jungle")); lhMenu = config.AddSubMenu("LastHit", "Last Hit"); lhMenu.Add("Q", new CheckBox("Use Q1")); ksMenu = config.AddSubMenu("KillSteal", "Kill Steal"); ksMenu.Add("E", new CheckBox("Use E")); ksMenu.Add("R", new CheckBox("Use R")); ksMenu.AddGroupLabel("Q Settings"); ksMenu.Add("Q", new CheckBox("Use Q")); ksMenu.Add("Q2", new CheckBox("Also Q2")); ksMenu.AddGroupLabel("Extra R Settings"); foreach (var enemy in ObjectManager.Get<AIHeroClient>().Where(o => o.IsEnemy)) { ksMenu.Add("RCast" + enemy.NetworkId, new CheckBox("Cast On " + enemy.ChampionName, false)); } drawMenu = config.AddSubMenu("Draw", "Draw"); drawMenu.Add("Q", new CheckBox("Q Range", false)); drawMenu.Add("W", new CheckBox("W Range", false)); drawMenu.Add("E", new CheckBox("E Range", false)); drawMenu.Add("R", new CheckBox("R Range", false)); drawMenu.Add("KnockUp", new CheckBox("Auto Knock Up Status")); miscMenu = config.AddSubMenu("Misc", "Misc"); miscMenu.Add("FleeW", new KeyBind("Use W To Flee", false, KeyBind.BindTypes.HoldActive, 'C')); miscMenu.Add("RFlash", new KeyBind("R-Flash To Mouse", false, KeyBind.BindTypes.HoldActive, 'Z')); Game.OnUpdate += OnUpdate; Drawing.OnDraw += OnDraw; Obj_AI_Base.OnBuffGain += (sender, args) => { if (sender.IsMe) { switch (args.Buff.DisplayName) { case "BlindMonkFlurry": cPassive = 2; break; case "BlindMonkQTwoDash": isDashing = true; break; } } else if (sender.IsEnemy) { if (args.Buff.DisplayName == "BlindMonkSonicWave") { objQ = sender; } else if (args.Buff.Name == "blindmonkrroot" && Common.CanFlash) { CastRFlash(sender); } } }; Obj_AI_Base.OnBuffLose += (sender, args) => { if (sender.IsMe) { switch (args.Buff.DisplayName) { case "BlindMonkFlurry": cPassive = 0; break; case "BlindMonkQTwoDash": isDashing = false; break; } } else if (sender.IsEnemy && args.Buff.DisplayName == "BlindMonkSonicWave") { objQ = null; } }; Obj_AI_Base.OnBuffUpdate += (sender, args) => { if (!sender.IsMe || args.Buff.DisplayName != "BlindMonkFlurry") { return; } cPassive = args.Buff.Count; }; Obj_AI_Base.OnProcessSpellCast += (sender, args) => { if (!sender.IsMe) { return; } if (args.Slot == SpellSlot.R) { lastR = Variables.TickCount; } else if (args.SData.Name == "SummonerFlash" && posBubbaKushFlash.IsValid()) { posBubbaKushFlash = new Vector3(); } }; }
public static bool IsReady(this LeagueSharp.Common.Spell spell, int t = 0) { return(IsReady(spell.Instance, t)); }
public Damage(string id, LeagueSharp.Common.Spell spell, System.Drawing.Color color) { this._color = color; this.spell = spell; this._id = id; }
public static bool IsCastable(this Spell spell, Obj_AI_Base target, bool ks = false, bool checkKillable = true) { return(spell.CanCast(target) && spell.IsActive(ks) && (!checkKillable || spell.IsKillable(target))); }