//----------------------------------------------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; }
//-------------------------------------------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(); } } }