//----------------------------------------------SaveAlly----------------------------------------------- public static void SaveAlly() { var Ally = EntityManager.Heroes.Allies.FirstOrDefault(ally => EntityManager.Heroes.Enemies.Any(enemy => ally.IsFacing(enemy)) && ally.HealthPercent <= 30 && Player.Distance(ally) <= 750); if (Ally != null) { if (FOTMountain.IsReady()) { FOTMountain.Cast(Ally); } if (Mikael.IsReady() && (Ally.HasBuffOfType(BuffType.Charm) || Ally.HasBuffOfType(BuffType.Fear) || Ally.HasBuffOfType(BuffType.Poison) || Ally.HasBuffOfType(BuffType.Polymorph) || Ally.HasBuffOfType(BuffType.Silence) || Ally.HasBuffOfType(BuffType.Sleep) || Ally.HasBuffOfType(BuffType.Slow) || Ally.HasBuffOfType(BuffType.Snare) || Ally.HasBuffOfType(BuffType.Stun) || Ally.HasBuffOfType(BuffType.Taunt))) { Mikael.Cast(Ally); } } if (Heal != null && Menu["UseHeal?"].Cast <CheckBox>().CurrentValue) { var healtarget = EntityManager.Heroes.Allies.FirstOrDefault(it => it.IsValidTarget(Heal.Range) && it.HealthPercent <= Menu["HealHealth"].Cast <Slider>().CurrentValue); if (healtarget != null) { if (EntityManager.Heroes.Enemies.Any(it => it.IsValidTarget() && it.Distance(healtarget) <= it.GetAutoAttackRange())) { Heal.Cast(); } } } return; }
//----------------------------------------------SaveAlly------------------------------------------------ public static void SaveAlly() { var Ally = EntityManager.Heroes.Allies.FirstOrDefault(ally => EntityManager.Heroes.Enemies.Any(enemy => ally.IsFacing(enemy)) && ally.HealthPercent <= 30 && Player.Distance(ally) <= 750); if (Ally != null) { if (FOTMountain.IsReady()) { FOTMountain.Cast(Ally); } if (Mikael.IsReady() && (Ally.HasBuffOfType(BuffType.Charm) || Ally.HasBuffOfType(BuffType.Fear) || Ally.HasBuffOfType(BuffType.Poison) || Ally.HasBuffOfType(BuffType.Polymorph) || Ally.HasBuffOfType(BuffType.Silence) || Ally.HasBuffOfType(BuffType.Sleep) || Ally.HasBuffOfType(BuffType.Slow) || Ally.HasBuffOfType(BuffType.Snare) || Ally.HasBuffOfType(BuffType.Stun) || Ally.HasBuffOfType(BuffType.Taunt))) { Mikael.Cast(Ally); } } return; }
static void Game_OnTick(EventArgs args) { var UseFOT = (Auto["AutoFOT"].Cast <CheckBox>().CurrentValue); var UseMikael = (Auto["AutoMikael"].Cast <CheckBox>().CurrentValue); if (Player.IsDead) { return; } if (Player.CountEnemiesInRange(1000) > 0) { foreach (AIHeroClient enemy in EntityManager.Heroes.Enemies) { foreach (AIHeroClient ally in EntityManager.Heroes.Allies) { if (ally.IsFacing(enemy) && ally.HealthPercent <= 30 && Player.Distance(ally) <= 750) { if (UseFOT && FOTMountain.IsReady()) { FOTMountain.Cast(ally); } if (UseMikael && (ally.HasBuffOfType(BuffType.Charm) || ally.HasBuffOfType(BuffType.Fear) || ally.HasBuffOfType(BuffType.Polymorph) || ally.HasBuffOfType(BuffType.Silence) || ally.HasBuffOfType(BuffType.Sleep) || ally.HasBuffOfType(BuffType.Snare) || ally.HasBuffOfType(BuffType.Stun) || ally.HasBuffOfType(BuffType.Taunt) || ally.HasBuffOfType(BuffType.Polymorph)) && Mikael.IsReady()) { Mikael.Cast(ally); } } } } } Target = TargetSelector.GetTarget(700, DamageType.Magical); var useGlory = (Auto["AutoGlory"].Cast <CheckBox>().CurrentValue); var useRanduin = (Auto["AutoRanduin"].Cast <CheckBox>().CurrentValue); var rCount = Combo["rCount"].Cast <Slider>().CurrentValue; if (Target != null) { if (Target.IsValidTarget()) { if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) { var useQ = Combo["ComboUseQ"].Cast <CheckBox>().CurrentValue; var useW = Combo["ComboUseW"].Cast <CheckBox>().CurrentValue; var useE = Combo["ComboUseE"].Cast <CheckBox>().CurrentValue; var useR = Combo["ComboUseR"].Cast <CheckBox>().CurrentValue; var level = 15 * Player.Level; if (QSS.IsReady() && (Player.HasBuffOfType(BuffType.Charm) || Player.HasBuffOfType(BuffType.Blind) || Player.HasBuffOfType(BuffType.Fear) || Player.HasBuffOfType(BuffType.Polymorph) || Player.HasBuffOfType(BuffType.Silence) || Player.HasBuffOfType(BuffType.Sleep) || Player.HasBuffOfType(BuffType.Snare) || Player.HasBuffOfType(BuffType.Stun) || Player.HasBuffOfType(BuffType.Suppression) || Player.HasBuffOfType(BuffType.Taunt))) { QSS.Cast(); } foreach (AIHeroClient ally in EntityManager.Heroes.Allies) { if (EntityManager.Heroes.Enemies.Where(enemy => enemy != Player && enemy.Distance(Player) <= 1000).Count() > 0 && ally.Distance(Player) <= 600 && Solari.IsReady()) { if (ally.HealthPercent < 50) { Solari.Cast(); } } } if (Q.IsReady() && Target.IsValidTarget(Q.Range) && !Player.IsDashing() && useQ) { Q.Cast(Target); } foreach (AIHeroClient enemy in EntityManager.Heroes.Enemies) { foreach (AIHeroClient ally in EntityManager.Heroes.Allies) { if (W.IsReady() && Target.CanCast && useW) { W.Cast(ally); if (E.IsReady() && useE) { E.Cast(Target); } } } } if (EntityManager.Heroes.Allies.Where(ally => ally != Player && ally.Distance(Player) <= 700).Count() > 0 && Glory.IsReady() && useGlory) { Glory.Cast(); if (Q.IsReady() && useQ) { Q.Cast(Target); } } foreach (AIHeroClient enemie in EntityManager.Heroes.Enemies) { if (Combo["rCount"].Cast <Slider>().CurrentValue > 0 && R.IsReady() && EntityManager.Heroes.Enemies.Where(enemy => enemy != Player && enemy.Distance(Player) <= 1200).Count() >= rCount && R.IsReady() && !enemie.IsDead && !enemie.IsZombie && useR) { R.Cast(enemie); } } if (Target.IsValidTarget(Bilgewater.Range) && Bilgewater.IsReady()) { Bilgewater.Cast(Target); } if (useRanduin && Target.IsValidTarget(Randuin.Range) && Randuin.IsReady()) { Randuin.Cast(); } } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass)) { if (Q.IsReady() && Target.IsValidTarget(Q.Range)) { Q.Cast(Target); } } foreach (AIHeroClient allie in EntityManager.Heroes.Allies) { if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Flee)) { if (EntityManager.Heroes.Allies.Where(ally => ally != Player && ally.Distance(Player) <= 700).Count() > 0) { W.Cast(allie); } } } } } return; }
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 }
//-------------------------------------------Game_OnTick---------------------------------------------- static void Game_OnTick(EventArgs args) { if (_Player.IsDead) { return; } var useItems = AutoMenu["useItems"].Cast <CheckBox>().CurrentValue; if (_Player.CountEnemiesInRange(1000) > 0) { foreach (AIHeroClient enemy in EntityManager.Heroes.Enemies) { foreach (AIHeroClient ally in EntityManager.Heroes.Allies) { if (ally.IsFacing(enemy) && ally.HealthPercent <= 30 && _Player.Distance(ally) <= 750) { if (useItems && FOTMountain.IsReady()) { FOTMountain.Cast(ally); } if ((useItems && ally.HasBuffOfType(BuffType.Charm) || ally.HasBuffOfType(BuffType.Fear) || ally.HasBuffOfType(BuffType.Poison) || ally.HasBuffOfType(BuffType.Polymorph) || ally.HasBuffOfType(BuffType.Silence) || ally.HasBuffOfType(BuffType.Sleep) || ally.HasBuffOfType(BuffType.Slow) || ally.HasBuffOfType(BuffType.Snare) || ally.HasBuffOfType(BuffType.Stun) || ally.HasBuffOfType(BuffType.Taunt)) && Mikael.IsReady()) { Mikael.Cast(ally); } } if (ally.HasBuffOfType(BuffType.Slow)) { E.Cast(ally); } if (ally.IsFacing(enemy) && ally.HealthPercent <= 30 && _Player.Distance(ally) <= 600) { if (useItems && IronSolari.IsReady()) { IronSolari.Cast(); } } } } } if (!_Player.HasBuff("recall")) { foreach (AIHeroClient allys in EntityManager.Heroes.Allies) { if (W.IsReady() && allys != _Player && EntityManager.Heroes.Allies.Where(ally => ally.HealthPercent <= AutoMenu["AutoWV"].Cast <Slider>().CurrentValue&& W.IsInRange(ally)).Any() && _Player.ManaPercent >= AutoMenu["ManaToW"].Cast <Slider>().CurrentValue) { W.Cast(allys); } } } //-------------------------------------------------Harass------------------------------------------- if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass)) { Target = TargetSelector.GetTarget(875, DamageType.Magical); var HarassUseQ = HarassMenu["HarassUseQ"].Cast <CheckBox>().CurrentValue; var HarassUseW = HarassMenu["HarassUseW"].Cast <CheckBox>().CurrentValue; var HarassUseE = HarassMenu["HarassUseE"].Cast <CheckBox>().CurrentValue; if (HarassUseQ && Q.IsReady() && Target.IsValidTarget(Q.Range - 35)) { Q.Cast(Target); } if (HarassUseW && W.IsReady() && Target.IsValidTarget(W.Range)) { W.Cast(Target); } foreach (AIHeroClient enemy in EntityManager.Heroes.Enemies) { foreach (AIHeroClient ally in EntityManager.Heroes.Allies) { if (HarassUseE && E.IsReady() && _Player.Distance(enemy) <= 1000 && _Player.Distance(ally) <= 725) { E.Cast(ally); } } } } //---------------------------------------------------Combo-------------------------------------------- if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) { var ComboUseQ = ComboMenu["ComboUseQ"].Cast <CheckBox>().CurrentValue; var ComboUseW = ComboMenu["ComboUseW"].Cast <CheckBox>().CurrentValue; var ComboUseE = ComboMenu["ComboUseE"].Cast <CheckBox>().CurrentValue; var ComboUseR = ComboMenu["ComboUseR"].Cast <CheckBox>().CurrentValue; Target = TargetSelector.GetTarget(875, DamageType.Magical); foreach (AIHeroClient enemy in EntityManager.Heroes.Enemies) { foreach (AIHeroClient ally in EntityManager.Heroes.Allies) { if (ComboUseE && E.IsReady() && ally != _Player && _Player.Distance(enemy) <= 1000 && _Player.Distance(ally) <= 725) { E.Cast(ally); } var AutoRCount = AutoMenu["AutoRCount"].Cast <Slider>().CurrentValue; if (ComboUseR && enemy.IsFacing(ally) && _Player.CountEnemiesInRange(2000) > AutoRCount) { R.Cast(enemy); } } } if (useItems && QSS.IsReady() && (_Player.HasBuffOfType(BuffType.Charm) || _Player.HasBuffOfType(BuffType.Blind) || _Player.HasBuffOfType(BuffType.Fear) || _Player.HasBuffOfType(BuffType.Polymorph) || _Player.HasBuffOfType(BuffType.Silence) || _Player.HasBuffOfType(BuffType.Sleep) || _Player.HasBuffOfType(BuffType.Snare) || _Player.HasBuffOfType(BuffType.Stun) || _Player.HasBuffOfType(BuffType.Suppression) || _Player.HasBuffOfType(BuffType.Taunt))) { QSS.Cast(); } if (ComboUseQ && Q.IsReady() && Target.IsValidTarget(Q.Range)) { Q.Cast(Target); } if (ComboUseW && W.IsReady() && Target.IsValidTarget(W.Range)) { W.Cast(Target); } if (useItems && Target.IsValidTarget(Bilgewater.Range) && Bilgewater.IsReady()) { Bilgewater.Cast(Target); } if (useItems && Target.IsValidTarget(Randuin.Range) && Randuin.IsReady()) { Randuin.Cast(); } } }
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 }