public static void Execute() { var target = TargetSelector.GetTarget(Lib.E.Range, DamageType.Magical); if (target != null) { if (CastCheckbox(LBMenu.FLM, "E")) { var epred = Lib.E.GetPrediction(target); if (epred.HitChance >= HitChance.Medium) { Lib.E.Cast(epred.CastPosition); } } } if (CastCheckbox(LBMenu.FLM, "W")) { var wpos = myHero.Position.Extend(Game.CursorPos, Lib.W.Range).To3D(); if (Lib.W.IsReady()) { Lib.CastW(wpos); } } if (CastCheckbox(LBMenu.FLM, "R")) { if (Lib.R.IsReady()) { var wpos = myHero.Position.Extend(Game.CursorPos, Lib.W.Range).To3D(); if (Lib.R.Name == "LeblancSlideM") { Lib.CastR(wpos); } } } }
public static void Execute() { var _Q = CastCheckbox(LBMenu.LCM, "Q") && Lib.Q.IsReady() && CastSlider(LBMenu.LCM, "QMana") < myHero.ManaPercent; var _W = CastCheckbox(LBMenu.LCM, "W") && Lib.W.IsReady() && CastSlider(LBMenu.LCM, "WMana") < myHero.ManaPercent; var _R = CastCheckbox(LBMenu.LCM, "R") && Lib.R.IsReady() && Lib.R.Name == "LeblancSlideM"; if (_W) { var minions = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, myHero.ServerPosition, Lib.W.Range); if (minions != null) { var Wminions = EntityManager.MinionsAndMonsters.GetCircularFarmLocation(minions, Lib.W.Width, (int)Lib.W.Range); if (CastSlider(LBMenu.LCM, "WMin") <= Wminions.HitNumber) { Lib.CastW(Wminions.CastPosition); } } } if (_R) { var minions = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, myHero.ServerPosition, Lib.W.Range); if (minions != null) { var Rminions = EntityManager.MinionsAndMonsters.GetCircularFarmLocation(minions, Lib.W.Width, (int)Lib.W.Range); if (CastSlider(LBMenu.LCM, "RMin") <= Rminions.HitNumber) { Lib.CastR(Rminions.CastPosition); } } } if (_Q) { var Qminion = EntityManager.MinionsAndMonsters.EnemyMinions.FirstOrDefault(minion => minion.Health < myHero.GetSpellDamage(minion, SpellSlot.Q) && myHero.Distance(minion) <= Lib.Q.Range && minion.IsEnemy); if (Qminion != null) { Lib.Q.Cast(Qminion); } } if (CastCheckbox(LBMenu.LCM, "W2")) { if (Lib.W.Name == "leblancslidereturn") { myHero.Spellbook.CastSpell(SpellSlot.W); } } }
public static void Execute() { var target = TargetSelector.GetTarget(Lib.W.Range * 2, DamageType.Magical); if (target == null) { return; } var _Q = CastCheckbox(LBMenu.HSM, "Q") && Lib.Q.IsReady() && CastSlider(LBMenu.HSM, "QMana") < myHero.ManaPercent; var _W = CastCheckbox(LBMenu.HSM, "W") && Lib.W.Name != "leblancslidereturn" && Lib.W.IsReady() && CastSlider(LBMenu.HSM, "WMana") < myHero.ManaPercent; var _E = CastCheckbox(LBMenu.HSM, "E") && Lib.E.IsReady() && CastSlider(LBMenu.HSM, "EMana") < myHero.ManaPercent; var extW = CastCheckbox(LBMenu.HSM, "extW"); var wpos = myHero.Position.Extend(target, Lib.W.Range).To3D(); if (CastCheckbox(LBMenu.HSM, "AutoW")) { if (Lib.W.Name == "leblancslidereturn" && !_Q && !_E) { myHero.Spellbook.CastSpell(SpellSlot.W); } } if (_Q) { if (Lib.Q.IsInRange(target)) { Lib.Q.Cast(target); } else if (extW && myHero.IsInRange(target, Lib.Q.Range + Lib.W.Range)) { Lib.CastW(wpos); } } else if (_W) { var wpred = Lib.W.GetPrediction(target); Lib.W.Cast(wpred.CastPosition); } else if (_E) { var epred = Lib.E.GetPrediction(target); if (epred.HitChance >= HitChance.High) { Lib.E.Cast(epred.CastPosition); } } }
public static void Execute() { if (CastSlider(LBMenu.Misc, "AutoW") > myHero.HealthPercent) { if (Lib.W.Name == "leblancslidereturn") { myHero.Spellbook.CastSpell(SpellSlot.W); } } var target = TargetSelector.GetTarget(Lib.W.Range * 2 + Lib.Q.Range, DamageType.Magical); if (target == null || !target.IsValidTarget()) { return; } var RReady = Lib.R.Name.Equals("LeblancChaosOrbM") || Lib.R.Name.Equals("LeblancSoulShackleM") || Lib.R.Name.Equals("LeblancSlideM"); var WReady = Lib.W.Name != "leblancslidereturn" && Lib.W.IsReady(); var ksm = LBMenu.KSM; var wpos = myHero.Position.Extend(target, Lib.W.Range).To3D(); var QDmg = Lib.Q.GetDamage(target); var WDmg = Lib.W.GetDamage(target); var EDmg = Lib.E.GetDamage(target); var RDmg = Lib.R.GetDamage(target); if (Lib.R.IsReady() && CastCheckbox(ksm, "R") && Lib.R.IsInRange(target)) { if (QDmg < target.Health || !Lib.Q.IsReady()) { if (RDmg > target.Health) { Lib.CastR(target); } } } if (QDmg + WDmg + EDmg > target.Health) { var epred = Lib.E.GetPrediction(target); if (epred.HitChance >= HitChance.Medium) { if (Lib.Q.IsInRange(target) && CastCheckbox(ksm, "Q")) { Lib.Q.Cast(target); } if (Lib.W.IsInRange(target) && CastCheckbox(ksm, "W")) { Lib.CastW(target); } if (Lib.E.IsInRange(target) && CastCheckbox(ksm, "E")) { Lib.E.Cast(epred.CastPosition); } } } if (Lib.Q.IsReady() && CastCheckbox(ksm, "Q") && QDmg > target.Health) { if (myHero.IsInRange(target, Lib.Q.Range + Lib.W.Range)) { if (Lib.Q.IsInRange(target)) { Lib.Q.Cast(target); } else if (WReady) { if (Lib.W.Range + Lib.Q.Range > myHero.Distance(target) && CastCheckbox(ksm, "W") && CastCheckbox(ksm, "extW")) { Lib.CastW(wpos); } } else if (RReady) { if (Lib.W.Range + Lib.Q.Range > myHero.Distance(target) && CastCheckbox(ksm, "R") && CastCheckbox(ksm, "extW")) { Lib.CastR(wpos); } } } else if (myHero.IsInRange(target, Lib.Q.Range + Lib.W.Range * 2) && Lib.Q.IsReady() && WReady && RReady) { if (Lib.Q.IsInRange(target)) { Lib.Q.Cast(target); } else if (CastCheckbox(ksm, "W") && CastCheckbox(ksm, "wr")) { Lib.CastW(wpos); Core.DelayAction(() => Lib.CastR(wpos), (int)myHero.Distance(wpos) / Lib.W.Speed + Game.Ping / 2); } } } else if (Lib.E.IsReady() && CastCheckbox(ksm, "E") && EDmg > target.Health) { var epred = Lib.E.GetPrediction(target); if (myHero.IsInRange(target, Lib.E.Range + Lib.W.Range)) { if (Lib.E.IsInRange(target) && epred.HitChance >= HitChance.High) { Lib.E.Cast(epred.CastPosition); } else if (WReady) { if (Lib.W.Range + Lib.E.Range > myHero.Distance(target) && CastCheckbox(ksm, "W") && CastCheckbox(ksm, "extW")) { Lib.CastW(wpos); } } else if (RReady) { if (Lib.W.Range + Lib.E.Range > myHero.Distance(target) && CastCheckbox(ksm, "R") && CastCheckbox(ksm, "extW")) { Lib.CastR(wpos); } } } else if (myHero.IsInRange(target, Lib.E.Range + Lib.W.Range * 2) && Lib.E.IsReady() && WReady && RReady) { if (Lib.E.IsInRange(target) && epred.HitChance >= HitChance.High) { Lib.E.Cast(epred.CastPosition); } else if (CastCheckbox(ksm, "W") && CastCheckbox(ksm, "wr")) { Lib.CastW(wpos); Core.DelayAction(() => Lib.CastR(wpos), (int)myHero.Distance(wpos) / Lib.W.Speed + Game.Ping / 2); } } } else if (WReady && CastCheckbox(ksm, "W") && WDmg > target.Health) { if (Lib.W.IsInRange(target)) { Lib.CastW(target); } else if (CastCheckbox(ksm, "wr")) { if (myHero.IsInRange(target, Lib.W.Range * 2)) { Lib.CastR(wpos); } } } }
public static void Execute() { var target = TargetSelector.GetTarget(Lib.W.Range * 2, DamageType.Magical); if (target != null) { var ComboM = LBMenu.ComboM; var WReady = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Name != "leblancslidereturn" && Lib.W.IsReady(); if (CastCheckbox(ComboM, "Q")) { if (Lib.Q.IsReady()) { if (WReady || Lib.E.IsReady() || Lib.R.IsReady() || target.HasBuff("LeblancSoulShackle") || Lib.QlasTick > Environment.TickCount || myHero.Level == 1 || target.HasBuff("LeblancChaosOrbM") || (Lib.W.GetCooldown() > 0 && Lib.W.GetCooldown() < 4) || (Lib.E.GetCooldown() > 0 && Lib.E.GetCooldown() < 4)) { if (target.IsValidTarget(Lib.Q.Range)) { Lib.Q.Cast(target); } } } } if (CastCheckbox(ComboM, "W")) { if (CastCheckbox(ComboM, "extW") && myHero.Distance(target) > Lib.Q.Range) { if (WReady) { var wpos = myHero.Position.Extend(target, Lib.W.Range).To3D(); if (Lib.Q.IsReady() && CastCheckbox(ComboM, "Q")) { if (Lib.Q.Range + Lib.W.Range > myHero.Distance(target)) { Lib.CastW(wpos); } } else if (Lib.E.IsReady() && CastCheckbox(ComboM, "E")) { if (Lib.E.Range + Lib.W.Range > myHero.Distance(target)) { Lib.CastW(wpos); } } } } else { if (WReady) { if (Lib.W.IsInRange(target)) { if (target.HasBuff("LeblancChaosOrb") || target.HasBuff("LeblancSoulShackle") || myHero.Level == 1 || target.HasBuff("LeblancChaosOrbM") || target.HasBuff("LeblancSoulShackleM") || Lib.QlasTick > Environment.TickCount) { Lib.CastW(target); } } } } } if (CastCheckbox(ComboM, "E")) { if (Lib.E.IsReady() && (!WReady || myHero.Level == 1)) { var epred = Lib.E.GetPrediction(target); if (epred.HitChance >= HitChance.Medium) { Lib.E.Cast(epred.CastPosition); } } } if (CastCheckbox(ComboM, "R")) { if (Lib.R.IsReady()) { if (CastCheckbox(ComboM, "RQ")) { if (Lib.R.Name == "LeblancChaosOrbM") // Q { if (WReady || Lib.E.IsReady() || Lib.Q.IsReady() || target.HasBuff("LeblancSoulShackle") || Lib.QlasTick > Environment.TickCount || target.HasBuff("LeblancChaosOrb") || (Lib.W.GetCooldown() > 0 && Lib.W.GetCooldown() <= 4) || (Lib.E.GetCooldown() > 0 && Lib.E.GetCooldown() <= 4) ) { Lib.CastR(target); } } } if (CastCheckbox(ComboM, "RW")) { if (Lib.R.Name == "LeblancSlideM") // W { if (target.CountEnemiesInRange(Lib.W.Width) > 1) { Lib.CastR(target); } else if (!Lib.Q.IsReady() && !Lib.E.IsReady()) { Lib.CastR(target); } } } if (CastCheckbox(ComboM, "RE")) { if (Lib.R.Name == "LeblancSoulShackleM") // E { if (Lib.Q.IsReady() || Lib.E.IsReady()) { Lib.CastR(target); } } } } } } }