private static void AutoRemove() { if (Game.MapId == GameMapId.SummonersRift) { if (Qss.IsOwned() && Qss.IsReady()) { Qss.Cast(); } else if (Mercurial.IsOwned() && Mercurial.IsReady()) { Mercurial.Cast(); } } else if (Game.MapId == GameMapId.TwistedTreeline) { if (Qss.IsOwned() && Qss.IsReady()) { Qss.Cast(); } else if (DervishBlade.IsOwned() && DervishBlade.IsReady()) { DervishBlade.Cast(); } } }
private void Cleansers() { if (!Quicksilver.IsReady() && !Mikaels.IsReady() && !Mercurial.IsReady() && !Dervish.IsReady()) { return; } if (Player.HealthPercent >= (float)Config.Item("cleanHP").GetValue <Slider>().Value || !Config.Item("Clean").GetValue <bool>()) { return; } if (Player.HasBuff("zedulttargetmark") || Player.HasBuff("FizzMarinerDoom") || Player.HasBuff("MordekaiserChildrenOfTheGrave") || Player.HasBuff("PoppyDiplomaticImmunity") || Player.HasBuff("VladimirHemoplague")) { Clean(); } if (Player.HasBuffOfType(BuffType.Stun) && Config.Item("Stun").GetValue <bool>()) { Clean(); } if (Player.HasBuffOfType(BuffType.Snare) && Config.Item("Snare").GetValue <bool>()) { Clean(); } if (Player.HasBuffOfType(BuffType.Knockup) && Config.Item("Knockup").GetValue <bool>()) { Clean(); } if (Player.HasBuffOfType(BuffType.Charm) && Config.Item("Charm").GetValue <bool>()) { Clean(); } if (Player.HasBuffOfType(BuffType.Fear) && Config.Item("Fear").GetValue <bool>()) { Clean(); } if (Player.HasBuffOfType(BuffType.Stun) && Config.Item("Stun").GetValue <bool>()) { Clean(); } if (Player.HasBuffOfType(BuffType.Knockback) && Config.Item("Knockback").GetValue <bool>()) { Clean(); } if (Player.HasBuffOfType(BuffType.Taunt) && Config.Item("Taunt").GetValue <bool>()) { Clean(); } if (Player.HasBuffOfType(BuffType.Suppression) && Config.Item("Suppression").GetValue <bool>()) { Clean(); } if (Player.HasBuffOfType(BuffType.Blind) && Config.Item("Blind").GetValue <bool>()) { Clean(); } }
private void Clean() { if (Quicksilver.IsReady()) { Utility.DelayAction.Add(Config.Item("CSSdelay").GetValue <Slider>().Value, () => Quicksilver.Cast()); } else if (Mercurial.IsReady()) { Utility.DelayAction.Add(Config.Item("CSSdelay").GetValue <Slider>().Value, () => Mercurial.Cast()); } else if (Dervish.IsReady()) { Utility.DelayAction.Add(Config.Item("CSSdelay").GetValue <Slider>().Value, () => Dervish.Cast()); } }
private void Clean() { if (Quicksilver.IsReady()) { Quicksilver.Cast(); } else if (Mercurial.IsReady()) { Mercurial.Cast(); } else if (Dervish.IsReady()) { Dervish.Cast(); } }
private static void Clean() { if (Quicksilver.IsReady() && CleansersMenu["qss"].Cast <CheckBox>().CurrentValue) { Quicksilver.Cast(); } else if (Mercurial.IsReady() && CleansersMenu["qss3"].Cast <CheckBox>().CurrentValue) { Mercurial.Cast(); } else if (Dervish.IsReady() && CleansersMenu["qss4"].Cast <CheckBox>().CurrentValue) { Dervish.Cast(); } }
private static void UltQSS() { if (!keybind) { return; } if (QSS.IsOwned() && QSS.IsReady()) { Core.DelayAction(() => QSS.Cast(), Ult["UltDelay"].Cast <Slider>().CurrentValue); } if (Mercurial.IsOwned() && Mercurial.IsReady()) { Core.DelayAction(() => Mercurial.Cast(), Ult["UltDelay"].Cast <Slider>().CurrentValue); } }
private static void DoQSS() { if (DebuffCount < MinBuff || !keybind) { return; } if (QSS.IsOwned() && QSS.IsReady() && ObjectManager.Player.CountEnemiesInRange(1800) > 0) { Core.DelayAction(() => QSS.Cast(), CC["CCDelay"].Cast <Slider>().CurrentValue); } if (Mercurial.IsOwned() && Mercurial.IsReady() && ObjectManager.Player.CountEnemiesInRange(1800) > 0) { Core.DelayAction(() => Mercurial.Cast(), CC["CCDelay"].Cast <Slider>().CurrentValue); } }
private void Clean() { if (Quicksilver.IsReady()) { Utility.DelayAction.Add(getSliderItem("CSSdelay"), () => Quicksilver.Cast()); } else if (Mercurial.IsReady()) { Utility.DelayAction.Add(getSliderItem("CSSdelay"), () => Mercurial.Cast()); } else if (Dervish.IsReady()) { Utility.DelayAction.Add(getSliderItem("CSSdelay"), () => Dervish.Cast()); } else if (cleanse != SpellSlot.Unknown && cleanse.IsReady() && getCheckBoxItem("Cleanse")) { Utility.DelayAction.Add(getSliderItem("CSSdelay"), () => Player.Spellbook.CastSpell(cleanse, Player)); } }
private void Clean() { if (Quicksilver.IsReady()) { LeagueSharp.Common.Utility.DelayAction.Add(Config.Item("CSSdelay").GetValue <Slider>().Value, () => Quicksilver.Cast()); } else if (Mercurial.IsReady()) { LeagueSharp.Common.Utility.DelayAction.Add(Config.Item("CSSdelay").GetValue <Slider>().Value, () => Mercurial.Cast()); } else if (Dervish.IsReady()) { LeagueSharp.Common.Utility.DelayAction.Add(Config.Item("CSSdelay").GetValue <Slider>().Value, () => Dervish.Cast()); } else if (cleanse != SpellSlot.Unknown && cleanse.IsReady() && Config.Item("Cleanse").GetValue <bool>()) { LeagueSharp.Common.Utility.DelayAction.Add(Config.Item("CSSdelay").GetValue <Slider>().Value, () => Player.Spellbook.CastSpell(cleanse, Player)); } }
private void Cleansers() { if (!Quicksilver.IsReady() && !Mikaels.IsReady() && !Mercurial.IsReady() && !Dervish.IsReady() && !cleanse.IsReady()) { return; } if (Player.HealthPercent >= getSliderItem("cleanHP") || !getCheckBoxItem("Clean")) { return; } if (Player.HasBuff("zedrdeathmark") || Player.HasBuff("FizzMarinerDoom") || Player.HasBuff("MordekaiserChildrenOfTheGrave") || Player.HasBuff("PoppyDiplomaticImmunity") || Player.HasBuff("VladimirHemoplague")) { Clean(); } if (Mikaels.IsReady()) { foreach (var ally in Program.Allies.Where( ally => ally.IsValid && !ally.IsDead && getCheckBoxItem("MikaelsAlly" + ally.ChampionName) && Player.Distance(ally.Position) < Mikaels.Range && ally.HealthPercent < (float)getSliderItem("cleanHP"))) { if (ally.HasBuff("zedrdeathmark") || ally.HasBuff("FizzMarinerDoom") || ally.HasBuff("MordekaiserChildrenOfTheGrave") || ally.HasBuff("PoppyDiplomaticImmunity") || ally.HasBuff("VladimirHemoplague")) { Mikaels.Cast(ally); } if (ally.HasBuffOfType(BuffType.Stun) && getCheckBoxItem("Stun")) // getCheckBoxItem("Stun") { Mikaels.Cast(ally); } if (ally.HasBuffOfType(BuffType.Snare) && getCheckBoxItem("Snare")) // getCheckBoxItem("Snare") { Mikaels.Cast(ally); } if (ally.HasBuffOfType(BuffType.Charm) && getCheckBoxItem("Charm")) // getCheckBoxItem("Charm") { Mikaels.Cast(ally); } if (ally.HasBuffOfType(BuffType.Fear) && getCheckBoxItem("Fear")) // getCheckBoxItem("Fear") { Mikaels.Cast(ally); } if (ally.HasBuffOfType(BuffType.Stun) && getCheckBoxItem("Stun")) // getCheckBoxItem("Stun") { Mikaels.Cast(ally); } if (ally.HasBuffOfType(BuffType.Taunt) && getCheckBoxItem("Taunt")) // getCheckBoxItem("Taunt") { Mikaels.Cast(ally); } if (ally.HasBuffOfType(BuffType.Suppression) && getCheckBoxItem("Suppression")) { // getCheckBoxItem("Suppression") Mikaels.Cast(ally); } if (ally.HasBuffOfType(BuffType.Blind) && getCheckBoxItem("Blind")) // getCheckBoxItem("Blind") { Mikaels.Cast(ally); } } } if (Player.HasBuffOfType(BuffType.Stun) && getCheckBoxItem("Stun")) { Clean(); } if (Player.HasBuffOfType(BuffType.Snare) && getCheckBoxItem("Snare")) { Clean(); } if (Player.HasBuffOfType(BuffType.Charm) && getCheckBoxItem("Charm")) { Clean(); } if (Player.HasBuffOfType(BuffType.Fear) && getCheckBoxItem("Fear")) { Clean(); } if (Player.HasBuffOfType(BuffType.Stun) && getCheckBoxItem("Stun")) { Clean(); } if (Player.HasBuffOfType(BuffType.Taunt) && getCheckBoxItem("Taunt")) { Clean(); } if (Player.HasBuffOfType(BuffType.Suppression) && getCheckBoxItem("Suppression")) { Clean(); } if (Player.HasBuffOfType(BuffType.Blind) && getCheckBoxItem("Blind")) { Clean(); } }
public static void Execute() { if (Player.Instance.IsInShopRange() || Player.Instance.CountAlliesInRange(Misc.RangeEnemy) < Misc.EnemyCount || Activator.lastUsed >= Environment.TickCount) { return; } #region Self if (Zhonyas.IsReady() && Zhonyas.IsOwned() && Player.Instance.InDanger(Settings.ZhonyasMyHp) && Settings.Zhonyas) { Zhonyas.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } if (Seraph.IsReady() && Seraph.IsOwned() && Player.Instance.InDanger(Settings.MYHPSeraph) && Settings.UseSeraph) { Seraph.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } if (Talisman.IsReady() && Player.Instance.CountAlliesInRange(450) >= 2 && Talisman.IsOwned() && Player.Instance.InDanger(30)) { Talisman.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } if (Randuin.IsReady() && Player.Instance.CountEnemiesInRange(Randuin.Range) >= 2 && Randuin.IsOwned() && Player.Instance.InDanger(30)) { Randuin.Cast(); Activator.lastUsed = Environment.TickCount + 500; } //Allies if (FaceOfTheMountain.IsReady() && FaceOfTheMountain.IsOwned()) { var allyFace = EntityManager.Heroes.Allies.FirstOrDefault(a => a.InDanger(Settings.AllyHPFaceOfTheMountain)); if (allyFace != null) { FaceOfTheMountain.Cast(allyFace); Activator.lastUsed = Environment.TickCount + 500; } } if (Mikael.IsReady() && Player.Instance.HasCCs() && Mikael.IsOwned()) { var allyMikael = EntityManager.Heroes.Allies.FirstOrDefault(a => a.InDanger(Settings.AllyHPMikaelHeal)); if (allyMikael != null) { Mikael.Cast(allyMikael); Activator.lastUsed = Environment.TickCount + 500; } } if (Solari.IsReady() && Solari.IsOwned()) { var allySolari = EntityManager.Heroes.Allies.FirstOrDefault(a => a.InDanger(Settings.AllyHealthSolari)); if (allySolari != null) { Solari.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } } if (Ohm.IsReady() && Ohm.IsOwned()) { var turret = EntityManager.Turrets.Enemies.FirstOrDefault(t => t.IsAttackingPlayer); var allyFace = EntityManager.Heroes.Allies.FirstOrDefault(a => a.InDanger(Settings.OhmHealth)); if (allyFace != null && turret != null) { Ohm.Cast(turret); Activator.lastUsed = Environment.TickCount + 500; } } //CC if (DerbishBlade.IsReady() && DerbishBlade.IsOwned() && Settings.DerbishBlade && Player.Instance.HasCCs()) { Core.DelayAction(() => DerbishBlade.Cast(), Settings.CleanseDelay); Activator.lastUsed = Environment.TickCount + 1500; } if (Mercurial.IsReady() && Mercurial.IsOwned() && Settings.Mercurial && Player.Instance.HasCCs()) { Core.DelayAction(() => Mercurial.Cast(), Settings.CleanseDelay); Activator.lastUsed = Environment.TickCount + 1500; } if (QuickSilver.IsReady() && QuickSilver.IsOwned() && Settings.QuickSilver && Player.Instance.HasCCs()) { Core.DelayAction(() => QuickSilver.Cast(), Settings.CleanseDelay); Activator.lastUsed = Environment.TickCount + 1500; } var ally = EntityManager.Heroes.Allies.FirstOrDefault(a => a.IsValidTarget(Mikael.Range)); if (ally == null) { return; } if (!ally.HasCCs()) { return; } if (Mikael.IsReady() && Mikael.IsOwned() && Settings.MikaelCleanse) { Core.DelayAction(() => Mikael.Cast(ally), Settings.CleanseDelay); Activator.lastUsed = Environment.TickCount + 1500; } #endregion Self }
private void Cleansers() { if (!Quicksilver.IsReady() && !Mikaels.IsReady() && !Mercurial.IsReady() && !Dervish.IsReady()) { return; } if ((Player.HasBuff("zedrdeathmark") || Player.HasBuff("FizzMarinerDoom") || Player.HasBuff("MordekaiserChildrenOfTheGrave") || Player.HasBuff("PoppyDiplomaticImmunity") || Player.HasBuff("VladimirHemoplague")) && CleansersMenu["special"].Cast <CheckBox>().CurrentValue) { Clean(); } if (Mikaels.IsReady() && CleansersMenu["qss2"].Cast <CheckBox>().CurrentValue) { foreach (var ally in EntityManager.Heroes.Allies.Where( ally => ally.IsValid && !ally.IsDead && CleansersMenu["m" + ally.ChampionName].Cast <CheckBox>().CurrentValue&& Player.Distance(ally.Position) < Mikaels.Range)) { if (ally.HasBuff("zedrdeathmark") || ally.HasBuff("FizzMarinerDoom") || ally.HasBuff("MordekaiserChildrenOfTheGrave") || ally.HasBuff("PoppyDiplomaticImmunity") || ally.HasBuff("VladimirHemoplague")) { Mikaels.Cast(ally); } if (ally.HasBuffOfType(BuffType.Stun) && CleansersMenu["stun"].Cast <CheckBox>().CurrentValue) { Mikaels.Cast(ally); } if (ally.HasBuffOfType(BuffType.Snare) && CleansersMenu["snare"].Cast <CheckBox>().CurrentValue) { Mikaels.Cast(ally); } if (ally.HasBuffOfType(BuffType.Charm) && CleansersMenu["charm"].Cast <CheckBox>().CurrentValue) { Mikaels.Cast(ally); } if (ally.HasBuffOfType(BuffType.Fear) && CleansersMenu["fear"].Cast <CheckBox>().CurrentValue) { Mikaels.Cast(ally); } if (ally.HasBuffOfType(BuffType.Taunt) && CleansersMenu["taunt"].Cast <CheckBox>().CurrentValue) { Mikaels.Cast(ally); } if (ally.HasBuffOfType(BuffType.Suppression) && CleansersMenu["suppr"].Cast <CheckBox>().CurrentValue) { Mikaels.Cast(ally); } if (ally.HasBuffOfType(BuffType.Blind) && CleansersMenu["blind"].Cast <CheckBox>().CurrentValue) { Mikaels.Cast(ally); } } } if (Player.HasBuffOfType(BuffType.Stun) && CleansersMenu["stun"].Cast <CheckBox>().CurrentValue) { Clean(); } if (Player.HasBuffOfType(BuffType.Snare) && CleansersMenu["snare"].Cast <CheckBox>().CurrentValue) { Clean(); } if (Player.HasBuffOfType(BuffType.Charm) && CleansersMenu["charm"].Cast <CheckBox>().CurrentValue) { Clean(); } if (Player.HasBuffOfType(BuffType.Fear) && CleansersMenu["fear"].Cast <CheckBox>().CurrentValue) { Clean(); } if (Player.HasBuffOfType(BuffType.Taunt) && CleansersMenu["taunt"].Cast <CheckBox>().CurrentValue) { Clean(); } if (Player.HasBuffOfType(BuffType.Suppression) && CleansersMenu["suppr"].Cast <CheckBox>().CurrentValue) { Clean(); } if (Player.HasBuffOfType(BuffType.Blind) && CleansersMenu["blind"].Cast <CheckBox>().CurrentValue) { Clean(); } }
public static void Execute() { var target = EntityManager.Heroes.Enemies.FirstOrDefault(e => !e.IsDead && e.IsInRange(Player.Instance, 1500)); if (Player.Instance.IsInShopRange() || target == null || DamageHandler.LastItemCast > Environment.TickCount) { return; } #region Self if (Zhonyas.IsReady() && Player.Instance.InDanger() && Zhonyas.IsOwned()) { Zhonyas.Cast(); DamageHandler.LastItemCast = Environment.TickCount + 450; } if (ArchengelStaff.IsReady() && Player.Instance.InDanger() && ArchengelStaff.IsOwned()) { ArchengelStaff.Cast(); DamageHandler.LastItemCast = Environment.TickCount + 450; } if (FaceOfTheMountain.IsReady() && Player.Instance.InDanger() && FaceOfTheMountain.IsOwned()) { FaceOfTheMountain.Cast(Player.Instance); DamageHandler.LastItemCast = Environment.TickCount + 450; } if (Talisman.IsReady() && Player.Instance.CountAlliesInRange(450) >= 2 || Player.Instance.InDanger() && FaceOfTheMountain.IsOwned()) { FaceOfTheMountain.Cast(); DamageHandler.LastItemCast = Environment.TickCount + 450; } if (Mikael.IsReady() && Player.Instance.InDanger() || Player.Instance.HasCC() && Mikael.IsOwned()) { Mikael.Cast(Player.Instance); DamageHandler.LastItemCast = Environment.TickCount + 450; } if (Solari.IsReady() && Player.Instance.InDanger() && Solari.IsOwned()) { Solari.Cast(); DamageHandler.LastItemCast = Environment.TickCount + 450; } if (Ohm.IsReady() && Ohm.IsOwned()) { var turret = EntityManager.Turrets.Enemies.FirstOrDefault(t => t.IsAttackingPlayer); if (turret != null) { Ohm.Cast(turret); DamageHandler.LastItemCast = Environment.TickCount + 450; } } if (Randuin.IsReady() && Player.Instance.CountEnemiesInRange(Randuin.Range) >= 2 && Randuin.IsOwned()) { Randuin.Cast(); DamageHandler.LastItemCast = Environment.TickCount + 450; } //CC if (!Player.Instance.HasCC()) { return; } if (DerbishBlade.IsReady() && DerbishBlade.IsOwned()) { DerbishBlade.Cast(); DamageHandler.LastItemCast = Environment.TickCount + 450; } if (Mercurial.IsReady() && Mercurial.IsOwned()) { Mercurial.Cast(); DamageHandler.LastItemCast = Environment.TickCount + 450; } if (QuickSilver.IsReady() && QuickSilver.IsOwned()) { QuickSilver.Cast(); DamageHandler.LastItemCast = Environment.TickCount + 450; } #endregion Self #region Ally if (DamageHandler.LastItemCast < Environment.TickCount) { if (FaceOfTheMountain.IsReady() && FaceOfTheMountain.IsOwned()) { foreach ( var ally in EntityManager.Heroes.Allies.Where( a => DamageHandler.Damages.ContainsKey(a.NetworkId) && a.InDanger())) { FaceOfTheMountain.Cast(ally); DamageHandler.LastItemCast = Environment.TickCount + 450; } } } if (Talisman.IsReady() && Player.Instance.CountAlliesInRange(450) >= 2 || Player.Instance.InDanger() && FaceOfTheMountain.IsOwned()) { foreach ( var ally in EntityManager.Heroes.Allies.Where( a => DamageHandler.Damages.ContainsKey(a.NetworkId) && a.InDanger())) { FaceOfTheMountain.Cast(ally); DamageHandler.LastItemCast = Environment.TickCount + 450; } } if (Mikael.IsReady() && Player.Instance.InDanger() || Player.Instance.HasCC() && Mikael.IsOwned()) { foreach ( var ally in EntityManager.Heroes.Allies.Where( a => DamageHandler.Damages.ContainsKey(a.NetworkId) && a.InDanger())) { Mikael.Cast(ally); DamageHandler.LastItemCast = Environment.TickCount + 450; } } if (Solari.IsReady() && Player.Instance.InDanger() && Solari.IsOwned()) { foreach ( var ally in EntityManager.Heroes.Allies.Where( a => DamageHandler.Damages.ContainsKey(a.NetworkId) && a.InDanger())) { Solari.Cast(ally); DamageHandler.LastItemCast = Environment.TickCount + 450; } } if (Ohm.IsReady() && Ohm.IsOwned()) { foreach (var objAiTurret in EntityManager.Turrets.AllTurrets) { if (DamageHandler.LastTargetTurrets.ContainsKey(objAiTurret.NetworkId)) { var turrettarget = DamageHandler.LastTargetTurrets[objAiTurret.NetworkId]; if (!turrettarget.IsValidTarget() || !turrettarget.IsAlly) { continue; } Ohm.Cast(); DamageHandler.LastItemCast = Environment.TickCount + 450; } } } }
public static void Execute() { if (Player.Instance.IsInShopRange() || Player.Instance.CountAlliesInRange(Misc.RangeEnemy) < Misc.EnemyCount || Activator.lastUsed >= Environment.TickCount) { return; } #region Self if (Zhonyas.IsReady() && Zhonyas.IsOwned() && Player.Instance.InDanger(Settings.ZhonyasMyHp) && Settings.Zhonyas) { Zhonyas.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } if (ArchengelStaff.IsReady() && ArchengelStaff.IsOwned() && Player.Instance.InDanger(Settings.MYHPArchengelStaff) && Settings.UseArchengelStaff) { ArchengelStaff.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } if (FaceOfTheMountain.IsReady() && FaceOfTheMountain.IsOwned() && Player.Instance.InDanger(30)) { FaceOfTheMountain.Cast(Player.Instance); Activator.lastUsed = Environment.TickCount + 1500; } if (Talisman.IsReady() && Player.Instance.CountAlliesInRange(450) >= 2 && Talisman.IsOwned() && Player.Instance.InDanger(30)) { Talisman.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } if (Mikael.IsReady() && Player.Instance.HasCC() && Mikael.IsOwned() && Player.Instance.InDanger(30)) { Mikael.Cast(Player.Instance); Activator.lastUsed = Environment.TickCount + 1500; } if (Solari.IsReady() && Solari.IsOwned() && Player.Instance.InDanger(30)) { Solari.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } if (Ohm.IsReady() && Ohm.IsOwned() && Player.Instance.InDanger(30)) { var turret = EntityManager.Turrets.Enemies.FirstOrDefault(t => t.IsAttackingPlayer); if (turret != null) { Ohm.Cast(turret); Activator.lastUsed = Environment.TickCount + 1500; } } if (Randuin.IsReady() && Player.Instance.CountEnemiesInRange(Randuin.Range) >= 2 && Randuin.IsOwned() && Player.Instance.InDanger(30)) { Randuin.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } //CC if (!Player.Instance.HasCC()) { return; } if (DerbishBlade.IsReady() && DerbishBlade.IsOwned()) { DerbishBlade.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } if (Mercurial.IsReady() && Mercurial.IsOwned()) { Mercurial.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } if (QuickSilver.IsReady() && QuickSilver.IsOwned()) { QuickSilver.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } #endregion Self }