protected override void Combo() { bool useQ = RootMenu["combo"]["useq"]; bool useW = RootMenu["combo"]["usew"]; var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range); if (!target.IsValidTarget()) { return; } if (target.IsValidTarget(Q.Range) && useQ) { if (target != null) { Q.Cast(target); } } if (target.IsValidTarget(W.Range) && useW) { if (target != null) { W.CastOnUnit(target); } } }
protected override void Killsteal() { if (Q.IsReady() && RootMenu["killsteal"]["useq"]) { var bestTarget = Extensions.GetBestKillableHero(Q, DamageType.Magical, false); if (bestTarget != null && Player.GetSpellDamage(bestTarget, SpellSlot.Q) >= bestTarget.Health && bestTarget.IsValidTarget(Q.Range)) { Q.Cast(); } } if (W.IsReady() && RootMenu["killsteal"]["usew"]) { var bestTarget = Extensions.GetBestKillableHero(W, DamageType.Magical, false); if (bestTarget != null && Player.GetSpellDamage(bestTarget, SpellSlot.W) >= bestTarget.Health && bestTarget.IsValidTarget(W.Range)) { W.CastOnUnit(bestTarget); } } }
protected override void SemiR() { if (RootMenu["combo"]["semir"].GetValue <MenuKeyBind>().Active) { var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range); if (!target.IsValidTarget()) { return; } if (target.IsValidTarget(R.Range) && target != null) { R.Cast(target); } } if (RootMenu["misc"]["autoe"]) { foreach (var target in GameObjects.EnemyHeroes.Where( t => (t.HasBuffOfType(BuffType.Charm) || t.HasBuffOfType(BuffType.Stun) || t.HasBuffOfType(BuffType.Fear) || t.HasBuffOfType(BuffType.Snare) || t.HasBuffOfType(BuffType.Taunt) || t.HasBuffOfType(BuffType.Knockback) || t.HasBuffOfType(BuffType.Suppression)) && t.IsValidTarget(E.Range))) { E.Cast(target); } } }
protected override void Harass() { bool useQ = RootMenu["harass"]["useq"]; bool useW = RootMenu["harass"]["usew"]; bool useE = RootMenu["harass"]["usee"]; var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range); if (!target.IsValidTarget()) { return; } if (target.IsValidTarget(E.Range) && useE) { if (target != null) { var pred = E.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { E.Cast(pred.CastPosition, true); } } } if (target.IsValidTarget(1000) && useQ) { if (target != null) { if (RootMenu["harass"]["eq"]) { if (target.HasBuff("leonazenithbladeroot")) { Q.Cast(); } } if (!RootMenu["harass"]["eq"]) { Q.Cast(); } } } if (target.IsValidTarget(W.Range) && useW) { if (target != null) { W.Cast(); } } }
protected override void Harass() { if (Player.ManaPercent >= RootMenu["harass"]["mana"].GetValue <MenuSlider>().Value) { bool useQ = RootMenu["harass"]["useq"]; bool useW = RootMenu["harass"]["usew"]; bool useE = RootMenu["harass"]["usee"]; var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range); if (!target.IsValidTarget()) { return; } if (target.IsValidTarget(W.Range) && useW && (Q.IsReady() || E.IsReady())) { if (target != null) { W.Cast(target); } } if (target.IsValidTarget(Q.Range) && useQ) { if (target != null) { if (Q.Cast(target)) { if (target.IsValidTarget(W.Range) && useW) { W.Cast(target); } } } } if (target.IsValidTarget(E.Range) && useE) { if (target != null) { if (E.Cast(target)) { if (target.IsValidTarget(W.Range) && useW) { W.Cast(target); } } } } } }
protected override void SemiR() { if (RootMenu["combo"]["semir"].GetValue <MenuKeyBind>().Active) { if (Extensions.GetBestEnemyHeroTargetInRange(R.Range) != null) { if (RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value > 1) { R.CastIfWillHit(Extensions.GetBestEnemyHeroTargetInRange(R.Range), RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value - 1); } if (RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value == 1) { R.Cast(Extensions.GetBestEnemyHeroTargetInRange(R.Range)); } } } if (RootMenu["misc"]["autoq"]) { foreach (var target in GameObjects.EnemyHeroes.Where( t => (t.HasBuffOfType(BuffType.Charm) || t.HasBuffOfType(BuffType.Stun) || t.HasBuffOfType(BuffType.Fear) || t.HasBuffOfType(BuffType.Snare) || t.HasBuffOfType(BuffType.Taunt) || t.HasBuffOfType(BuffType.Knockback) || t.HasBuffOfType(BuffType.Suppression)) && t.IsValidTarget(Q.Range))) { var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } if (RootMenu["white"]["enable"]) { foreach (var ally in GameObjects.AllyHeroes.Where( x => x.Distance(Player) <= W.Range && x.IsAlly && !x.IsRecalling() && RootMenu["white"][x.CharacterName.ToLower() + "priority"].GetValue <MenuSlider>().Value != 0 && x.HealthPercent <= RootMenu["white"][x.CharacterName.ToLower() + "hp"].GetValue <MenuSlider>().Value) .OrderByDescending(x => RootMenu["white"][x.CharacterName.ToLower() + "priority"].GetValue <MenuSlider>().Value) .Where(x => x.Distance(Player) < W.Range).OrderBy(x => x.Health)) { if (ally != null && !ally.IsDead) { W.Cast(ally); } } } }
protected override void Combo() { bool useQ = RootMenu["combo"]["useq"]; bool useW = RootMenu["combo"]["usew"]; bool useR = RootMenu["combo"]["user"]; float enemies = RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value; float hp = RootMenu["combo"]["hp"].GetValue <MenuSlider>().Value; var target = Extensions.GetBestEnemyHeroTargetInRange(W.Range); if (!target.IsValidTarget()) { return; } if (W.IsReady() && Q.IsReady() && useW && target.IsValidTarget(W.Range) && Q.Mana + W.Mana <= Player.Mana) { if (target != null) { W.CastOnUnit(target); } } if (target.IsValidTarget(Q.Range) && useQ) { if (target != null) { Q.Cast(); } } if (target.IsValidTarget(E.Range)) { if (target != null) { E.Cast(); } } if (useR) { if (target != null && enemies <= Player.CountEnemyHeroesInRange(W.Range)) { if (hp >= Player.HealthPercent) { R.Cast(); } } } }
protected override void Combo() { bool useQ = RootMenu["combo"]["useq"]; bool useW = RootMenu["combo"]["usew"]; bool useE = RootMenu["combo"]["usee"]; var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range); if (!target.IsValidTarget()) { return; } if (target.IsValidTarget(E.Range) && useE) { if (target != null) { E.CastOnUnit(target); } } if (target.IsValidTarget(Q.Range) && useQ) { if (target != null) { var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } if (useW && target.IsValidTarget(Q.Range) && !Q.IsReady() && Player.Mana >= Q.Mana + W.Mana) { if (target != null) { W.Cast(); var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } }
protected override void Harass() { if (Player.ManaPercent >= RootMenu["harass"]["mana"].GetValue <MenuSlider>().Value) { bool useQ = RootMenu["harass"]["useq"]; bool useW = RootMenu["harass"]["usew"]; var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range); if (!target.IsValidTarget()) { return; } if (target.IsValidTarget(Q.Range) && useQ) { if (target != null) { var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } if (useW && target.IsValidTarget(Q.Range)) { if (target != null && !Q.IsReady() && Player.Mana >= Q.Mana + W.Mana) { W.Cast(); var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } } }
protected override void Harass() { if (RootMenu["harass"]["toggle"].GetValue <MenuKeyBind>().Active) { bool useQ = RootMenu["harass"]["useq"]; bool useE = RootMenu["harass"]["usee"]; var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range); if (!target.IsValidTarget()) { return; } if (target.IsValidTarget(E.Range) && useE) { if (target != null) { var pred = E.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { E.Cast(pred.CastPosition, true); } } } if (target.IsValidTarget(Q.Range) && useQ) { if (target != null) { var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } } }
protected override void SemiR() { if (RootMenu["flashr"].GetValue <MenuKeyBind>().Active) { if (!Player.HasBuff("malzaharrsound")) { var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range + 410); var Flash = ObjectManager.Player.GetSpellSlot("SummonerFlash"); if (R.IsReady()) { if (Flash != SpellSlot.Unknown && ObjectManager.Player.Spellbook.GetSpell(Flash).IsReady) { Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPosCenter); if (target.IsValidTarget()) { if (target.Distance(Player) > R.Range) { if (R.Cast(target)) { ObjectManager.Player.Spellbook.CastSpell(Flash, (target.Position)); } } } } } } } if (Player.HasBuff("malzaharrsound")) { Orbwalker.MovementState = false; Orbwalker.AttackState = false; } if (!Player.HasBuff("malzaharrsound")) { Orbwalker.MovementState = true; Orbwalker.AttackState = true; } }
protected override void SemiR() { if (RootMenu["insec"].GetValue <MenuKeyBind>().Active) { Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPosCenter); var Flash = ObjectManager.Player.GetSpellSlot("SummonerFlash"); var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range + 410); if (R.IsReady()) { if (Flash != SpellSlot.Unknown && ObjectManager.Player.Spellbook.GetSpell(Flash).IsReady&& target.IsValidTarget()) { if (target.IsValidTarget(380)) { foreach (var ally in GameObjects.AllyHeroes) { if (ally != null && ally.Distance(Player) < 1000 && !ally.IsMe) { if (ObjectManager.Player.Spellbook.CastSpell(Flash, (target.Position.Extend(ally.Position, -100)))) { R.Cast(); } } } if (GameObjects.AllyHeroes.Where(x => x.Distance(Player) < E.Range) .Count() == 1) { if (ObjectManager.Player.Spellbook.CastSpell(Flash, (target.Position.Extend(Player.Position, -100)))) { R.Cast(); } } } } } } }
protected override void SemiR() { if (RootMenu["combo"]["semir"].GetValue <MenuKeyBind>().Active) { var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range); if (!target.IsValidTarget()) { return; } if (target != null && target.IsValidTarget(R.Range)) { var pred = R.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { R.Cast(pred.CastPosition, true); } } } }
protected override void Combo() { bool useQ = RootMenu["combo"]["useq"]; bool useE = RootMenu["combo"]["usee"]; var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range); if (!target.IsValidTarget()) { return; } if (target.IsValidTarget(E.Range) && useE) { if (target != null) { var pred = E.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { E.Cast(pred.CastPosition, true); } } } if (target.IsValidTarget(Q.Range) && useQ) { if (target != null) { var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } }
protected override void Harass() { bool useQ = RootMenu["harass"]["useq"]; bool useE = RootMenu["harass"]["logic"]; var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range + W.Range); if (!target.IsValidTarget()) { return; } if (useE) { foreach (var en in ObjectManager.Get <AIBaseClient>()) { if (!en.IsDead) { if (en.Distance(Player) < E.Range + W.Range && en.IsAlly && !en.IsMe) { if (target != null && target.Distance(en) <= 580) { if (en.Distance(Player) < E.Range) { if (E.Mana + W.Mana < Player.Mana) { if (en != null && delayyyyyyyyy <= Variables.TickCount) { E.CastOnUnit(en); } if (Player.HasBuff("rakanerecast")) { if (target.IsValidTarget(W.Range)) { var pred = W.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { W.Cast(pred.CastPosition, true); } } } if (en.HasBuff("RakanEShield") && delayyyyyyyyy <= Variables.TickCount) { E.CastOnUnit(en); } } } if (en.Distance(Player) > E.Range) { if (E.Mana + W.Mana < Player.Mana) { if (target.IsValidTarget(W.Range)) { var pred = W.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { W.Cast(pred.CastPosition, true); } } if (en.Distance(Player) < E.Range && delayyyyyyyyy <= Variables.TickCount) { E.CastOnUnit(en); if (en.HasBuff("RakanEShield")) { E.CastOnUnit(en); } } } } } } } } } if (target.IsValidTarget(Q.Range) && useQ) { if (target != null) { var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } }
protected override void Combo() { bool useQ = RootMenu["combo"]["useq"]; bool useW = RootMenu["combo"]["usew"]; var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range + W.Range); if (!target.IsValidTarget()) { return; } if (target.IsValidTarget(Q.Range) && useQ) { if (target != null) { var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } if (useW) { foreach (var en in ObjectManager.Get <AIBaseClient>()) { if (!en.IsDead) { if (en.Distance(Player) < E.Range + W.Range && en.IsAlly && !en.IsMe) { if (target != null && target.Distance(en) <= 580) { if (en.Distance(Player) < E.Range) { if (E.Mana + W.Mana < Player.Mana) { if (en.Distance(Player) < E.Range) { if (!Player.HasBuff("rakanerecast") && meowdelay <= Variables.TickCount) { if (en.Distance(target) < Player.Distance(target)) { E.CastOnUnit(en); } } } if (Player.HasBuff("rakanerecast")) { if (target.IsValidTarget(W.Range)) { if (W.Cast(target)) { meowdelay = Variables.TickCount + 1500; } } } } } if (en.Distance(Player) > E.Range) { if (E.Mana + W.Mana < Player.Mana) { if (target.IsValidTarget(W.Range)) { if (W.Cast(target)) { meowdelay = Variables.TickCount + 1500; } } if (en.Distance(Player) < E.Range) { if (!Player.HasBuff("rakanerecast") && meowdelay < Variables.TickCount) { if (en.Distance(target) < Player.Distance(target)) { E.CastOnUnit(en); } } } } } } else if (target.Distance(en) > 580) { if (target.IsValidTarget(W.Range)) { if (W.Cast(target)) { meowdelay = Variables.TickCount + 1500; } } } } else if (en.Distance(target) > W.Range + E.Range) { if (target.IsValidTarget(W.Range)) { if (W.Cast(target)) { meowdelay = Variables.TickCount + 1500; } } } } } if (!E.IsReady()) { if (target.IsValidTarget(W.Range)) { if (W.Cast(target)) { meowdelay = Variables.TickCount + 1500; } } } } if (RootMenu["combo"]["user"]) { if (target != null && Player.CountEnemyHeroesInRange(1000) >= RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value) { if (target.HealthPercent <= RootMenu["combo"]["hp"].GetValue <MenuSlider>().Value) { R.Cast(); } } } }
protected override void SemiR() { if (RootMenu["combo"]["wflash"].GetValue <MenuKeyBind>().Active) { var target = Extensions.GetBestEnemyHeroTargetInRange(W.Range + 410); var Flash = ObjectManager.Player.GetSpellSlot("SummonerFlash"); if (W.IsReady()) { if (Flash != SpellSlot.Unknown && ObjectManager.Player.Spellbook.GetSpell(Flash).IsReady) { var ummm = W.GetPrediction(target); Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPosCenter); if (target.IsValidTarget()) { if (target.Distance(Player) > W.Range) { if (ObjectManager.Player.Spellbook.CastSpell(Flash, (target.Position))) { W.Cast(ummm.CastPosition); } } } } } } if (RootMenu["combo"]["engage"].GetValue <MenuKeyBind>().Active) { Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPosCenter); var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range + W.Range); if (!target.IsValidTarget()) { return; } foreach (var en in ObjectManager.Get <AIBaseClient>()) { if (!en.IsDead) { if (en.Distance(Player) < E.Range + W.Range && en.IsAlly && !en.IsMe) { if (target != null && target.Distance(en) <= 580) { if (en.Distance(Player) < E.Range) { if (E.Mana + W.Mana < Player.Mana) { if (en != null && delayyyyyyyyy <= Variables.TickCount) { E.CastOnUnit(en); } if (Player.HasBuff("rakanerecast")) { if (target.IsValidTarget(W.Range)) { var pred = W.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { W.Cast(pred.CastPosition, true); } } } } } } } } } } var bestAllies = GameObjects.AllyHeroes .Where(t => t.Distance(ObjectManager.Player) < Z.aio.Common.Champion.E.Range) .OrderBy(o => o.Health); foreach (var ally in bestAllies) { if (E.IsReady() && ally.IsValidTarget(E.Range) && ally.CountEnemyHeroesInRange(800f) > 0 && HealthPrediction.GetPrediction(ally, 250 + Game.Ping) <= ally.MaxHealth / 4) { E.CastOnUnit(ally); } } if (RootMenu["flee"]["key"].GetValue <MenuKeyBind>().Active) { Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPosCenter); if (RootMenu["flee"]["user"]) { R.Cast(); } if (RootMenu["flee"]["usee"]) { foreach (var en in ObjectManager.Get <AIBaseClient>()) { if (!en.IsDead) { if (en.Distance(Game.CursorPosCenter) < 200 && en.IsAlly && !en.IsMe && en.Distance(Player) <= E.Range) { E.CastOnUnit(en); } } } } } }
protected override void Combo() { bool useQ = RootMenu["combo"]["useq"]; bool useR = RootMenu["combo"]["user"]; bool useW = RootMenu["combo"]["usew"]; bool useE = RootMenu["combo"]["usee"]; var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range); if (!target.IsValidTarget()) { return; } switch (RootMenu["combo"]["mode"].GetValue <MenuList>().Index) { case 0: { if (target.IsValidTarget(W.Range) && useW && (Q.IsReady() || E.IsReady())) { if (target != null) { var pred = W.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { W.Cast(pred.CastPosition, true); } } } if (target.IsValidTarget(Q.Range) && useQ) { if (target != null) { var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { if (Q.Cast(pred.CastPosition, true)) { if (target.IsValidTarget(W.Range) && useW) { pred = W.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { W.Cast(pred.CastPosition, true); } } } } } } if (target.IsValidTarget(R.Range) && target != null && useR) { switch (RootMenu["combo"]["rusage"].GetValue <MenuList>().Index) { case 0: if (RootMenu["combo"]["rhit"].GetValue <MenuSlider>().Value <= target.CountEnemyHeroesInRange(500)) { R.Cast(target); } break; case 1: if (target.Health <= Player.GetSpellDamage(target, SpellSlot.Q) + Player.GetSpellDamage(target, SpellSlot.W) + Player.GetSpellDamage(target, SpellSlot.R)) { R.Cast(target); } break; } } if (target.IsValidTarget(E.Range) && useE) { if (target != null) { if (E.Cast(target)) { if (target.IsValidTarget(W.Range) && useW) { W.Cast(target); } } } } } break; case 1: { if (target.IsValidTarget(W.Range) && useW && (Q.IsReady() || E.IsReady())) { if (target != null) { W.Cast(target); } } if (target.IsValidTarget(E.Range) && useE) { if (target != null) { if (E.Cast(target)) { if (target.IsValidTarget(W.Range) && useW) { W.Cast(target); } } } } if (target.IsValidTarget(Q.Range) && useQ) { if (target != null) { if (Q.Cast(target)) { if (target.IsValidTarget(W.Range) && useW) { W.Cast(target); } } } } if (target.IsValidTarget(R.Range) && target != null && useR) { switch (RootMenu["combo"]["rusage"].GetValue <MenuList>().Index) { case 0: if (RootMenu["combo"]["rhit"].GetValue <MenuSlider>().Value <= target.CountEnemyHeroesInRange(500)) { R.Cast(target); } break; case 1: if (target.Health <= Player.GetSpellDamage(target, SpellSlot.Q) + Player.GetSpellDamage(target, SpellSlot.W) + Player.GetSpellDamage(target, SpellSlot.R)) { R.Cast(target); } break; } } } break; } }
protected override void Combo() { bool useQ = RootMenu["combo"]["useq"]; var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range); if (!target.IsValidTarget()) { return; } if (target.IsValidTarget(Q.Range) && useQ) { if (target != null) { var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } if (RootMenu["combo"]["user"]) { if (Extensions.GetBestEnemyHeroTargetInRange(R.Range) != null) { if (RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value > 1) { R.CastIfWillHit(Extensions.GetBestEnemyHeroTargetInRange(R.Range), RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value - 1); } if (RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value == 1) { R.Cast(Extensions.GetBestEnemyHeroTargetInRange(R.Range)); } } } var targets = Extensions.GetBestEnemyHeroTargetInRange(W.Range); switch (RootMenu["combo"]["wmode"].GetValue <MenuList>().Index) { case 0: { return; } case 1: if (targets.IsValidTarget(W.Range) && targets != null) { if (targets.CountAllyHeroesInRange(690) >= 0) { W.CastOnUnit(target); } } break; case 2: foreach (var ally in GameObjects.AllyHeroes.Where( x => x.IsValidTarget(W.Range, true) && x.Distance(Player) < W.Range && !x.IsDead)) { foreach (var targeto in GameObjects.EnemyHeroes.Where( x => x.Distance(ally) < W.Range && x != null && !x.IsDead)) { if (ally.Distance(targeto) < 690 && ally.IsAlly) { if (ally.CountEnemyHeroesInRange(690) > 0) { W.CastOnUnit(ally); } } } } break; } }
protected override void Farming() { if (RootMenu["farming"]["lane"]["mana"].GetValue <MenuSlider>().Value <= Player.ManaPercent) { foreach (var minion in Z.aio.Common.Extensions.GetEnemyLaneMinionsTargetsInRange(Q.Range)) { if (!minion.IsValidTarget() && minion != null) { return; } if (RootMenu["farming"]["lane"]["usee"]) { foreach (var lowest in Extensions.GetEnemyLaneMinionsTargetsInRange(E.Range) .OrderBy(x => x.Health)) { if (lowest != null) { if (lowest.IsValidTarget(E.Range)) { E.CastOnUnit(lowest); } } } } if (RootMenu["farming"]["lane"]["useq"]) { if (minion.IsValidTarget(Q.Range) && minion != null) { if (GameObjects.EnemyMinions.Count(h => h.IsValidTarget(150, false, minion.Position)) >= RootMenu["farming"]["lane"]["hite"].GetValue <MenuSlider>().Value) { Q.Cast(minion); } } } } } if (RootMenu["farming"]["jungle"]["mana"].GetValue <MenuSlider>().Value <= Player.ManaPercent) { foreach (var jungleTarget in GameObjects.Jungle.Where(m => m.IsValidTarget(Q.Range)).ToList()) { if (!jungleTarget.IsValidTarget() || jungleTarget.Name.Contains("Plant")) { return; } bool useQ = RootMenu["farming"]["jungle"]["useq"]; bool useE = RootMenu["farming"]["jungle"]["usee"]; bool useW = RootMenu["farming"]["jungle"]["usew"]; float manapercent = RootMenu["farming"]["jungle"]["mana"].GetValue <MenuSlider>().Value; if (useQ) { if (jungleTarget != null && jungleTarget.IsValidTarget(Q.Range)) { Q.Cast(jungleTarget); } } if (useW) { if (jungleTarget != null && jungleTarget.IsValidTarget(Q.Range)) { W.Cast(jungleTarget.Position); } } if (useE) { if (jungleTarget != null && jungleTarget.IsValidTarget(E.Range)) { E.CastOnUnit(jungleTarget); } } } } }
protected override void Combo() { if (Player.HasBuff("malzaharrsound")) { return; } bool useQ = RootMenu["combo"]["useq"]; bool useW = RootMenu["combo"]["usew"]; bool useE = RootMenu["combo"]["usee"]; switch (RootMenu["combo"]["combomode"].GetValue <MenuList>().Index) { case 0: if (useQ) { var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(Q.Range)) { var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } } if (useW) { var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(Q.Range)) { W.Cast(target.Position); } } } if (useE) { var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(E.Range)) { E.CastOnUnit(target); } } } if (RootMenu["combo"]["user"]) { var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range); if (target.IsValidTarget() && !W.IsReady() && !Q.IsReady()) { if (target != null && target.IsValidTarget(R.Range)) { switch (RootMenu["combo"]["rmode"].GetValue <MenuList>().Index) { case 0: if (target.Health < Player.GetSpellDamage(target, SpellSlot.Q) + Player.GetSpellDamage(target, SpellSlot.W) + Player.GetSpellDamage(target, SpellSlot.E) + Player.GetSpellDamage(target, SpellSlot.R) + Player.GetSpellDamage(target, SpellSlot.R, DamageStage.DamagePerSecond)) { R.Cast(target); } break; case 1: if (target.HealthPercent < RootMenu["combo"]["health"].GetValue <MenuSlider>().Value) { R.Cast(target); } break; } } } } break; case 1: if (useQ) { var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(Q.Range)) { var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } } if (useE) { var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(E.Range)) { E.CastOnUnit(target); } } } if (useW) { var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(Q.Range)) { W.Cast(target.Position); } } } if (RootMenu["combo"]["user"]) { var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range); if (target.IsValidTarget() && !W.IsReady() && !Q.IsReady()) { if (target != null && target.IsValidTarget(R.Range)) { switch (RootMenu["combo"]["rmode"].GetValue <MenuList>().Index) { case 0: if (target.Health < Player.GetSpellDamage(target, SpellSlot.Q) + Player.GetSpellDamage(target, SpellSlot.W) + Player.GetSpellDamage(target, SpellSlot.E) + Player.GetSpellDamage(target, SpellSlot.R) + Player.GetSpellDamage(target, SpellSlot.R, DamageStage.DamagePerSecond)) { R.Cast(target); } break; case 1: if (target.HealthPercent < RootMenu["combo"]["health"].GetValue <MenuSlider>().Value) { R.Cast(target); } break; } } } } break; case 2: if (RootMenu["combo"]["user"]) { var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(R.Range)) { switch (RootMenu["combo"]["rmode"].GetValue <MenuList>().Index) { case 0: if (target.Health < Player.GetSpellDamage(target, SpellSlot.Q) + Player.GetSpellDamage(target, SpellSlot.W) + Player.GetSpellDamage(target, SpellSlot.E) + Player.GetSpellDamage(target, SpellSlot.R) + Player.GetSpellDamage(target, SpellSlot.R, DamageStage.DamagePerSecond)) { if (R.Cast(target)) { hewwo = 300 + Variables.TickCount; } } break; case 1: if (target.HealthPercent < RootMenu["combo"]["health"].GetValue <MenuSlider>().Value) { if (R.Cast(target)) { hewwo = 300 + Variables.TickCount; } } break; } } } } if (hewwo < Variables.TickCount) { if (useW) { var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(Q.Range)) { W.Cast(target.Position); } } } if (useQ) { var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(Q.Range)) { var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } } if (useE) { var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(E.Range)) { E.CastOnUnit(target); } } } } break; case 3: if (useE) { var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(E.Range)) { E.CastOnUnit(target); } } } if (useW) { var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(Q.Range)) { W.Cast(target.Position); } } } if (useQ) { var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(Q.Range)) { var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } } if (RootMenu["combo"]["user"]) { var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range); if (target.IsValidTarget() && !W.IsReady() && !Q.IsReady()) { if (target != null && target.IsValidTarget(R.Range)) { switch (RootMenu["combo"]["rmode"].GetValue <MenuList>().Index) { case 0: if (target.Health < Player.GetSpellDamage(target, SpellSlot.Q) + Player.GetSpellDamage(target, SpellSlot.W) + Player.GetSpellDamage(target, SpellSlot.E) + Player.GetSpellDamage(target, SpellSlot.R) + Player.GetSpellDamage(target, SpellSlot.R, DamageStage.DamagePerSecond)) { R.Cast(target); } break; case 1: if (target.HealthPercent < RootMenu["combo"]["health"].GetValue <MenuSlider>().Value) { R.Cast(target); } break; } } } } break; } }
protected override void Harass() { bool useQ = RootMenu["harass"]["useq"]; bool useW = RootMenu["harass"]["usew"]; bool useE = RootMenu["harass"]["usee"]; switch (RootMenu["harass"]["harassmode"].GetValue <MenuList>().Index) { case 0: if (useQ) { var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(Q.Range)) { var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } } if (useW) { var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(Q.Range)) { W.Cast(target.Position); } } } if (useE) { var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(E.Range)) { E.CastOnUnit(target); } } } break; case 1: if (useQ) { var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(Q.Range)) { var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } } if (useE) { var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(E.Range)) { E.CastOnUnit(target); } } } if (useW) { var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(Q.Range)) { W.Cast(target.Position); } } } break; case 2: if (useW) { var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(Q.Range)) { W.Cast(target.Position); } } } if (useQ) { var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(Q.Range)) { var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } } if (useE) { var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(E.Range)) { E.CastOnUnit(target); } } } break; case 3: if (useE) { var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(E.Range)) { E.CastOnUnit(target); } } } if (useW) { var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(Q.Range)) { W.Cast(target.Position); } } } if (useQ) { var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range); if (target.IsValidTarget()) { if (target != null && target.IsValidTarget(Q.Range)) { var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } } break; } }
protected override void Combo() { bool useQ = RootMenu["combo"]["useq"]; bool useW = RootMenu["combo"]["usew"]; bool useE = RootMenu["combo"]["usee"]; bool useR = RootMenu["combo"]["user"]; var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range); if (!target.IsValidTarget()) { return; } if (target.IsValidTarget(E.Range) && useE && RootMenu["whitelist"][target.CharacterName.ToLower()]) { if (target != null) { var pred = E.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { E.Cast(pred.CastPosition, true); } } } if (target.IsValidTarget(300) && useQ) { if (target != null) { if (RootMenu["combo"]["eq"]) { if (target.HasBuff("leonazenithbladeroot")) { Q.Cast(); } } if (!RootMenu["combo"]["eq"]) { Q.Cast(); } } } if (target.IsValidTarget(W.Range) && useW) { if (target != null) { W.Cast(); } } if (useR) { if (RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value > 1) { if (target != null && target.CountEnemyHeroesInRange(300) >= RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value&& target.IsValidTarget(R.Range)) { var pred = R.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { R.Cast(pred.CastPosition, true); } } } if (RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value == 1) { if (target != null && target.IsValidTarget(R.Range)) { var pred = R.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { R.Cast(pred.CastPosition, true); } } } } }
protected override void Combo() { bool useQ = RootMenu["combo"]["useq"]; bool useW = RootMenu["combo"]["wset"]["usew"]; bool useR = RootMenu["combo"]["rset"]["user"]; bool useEQ = RootMenu["combo"]["useeq"]; if (useEQ) { if (Q.IsReady()) { foreach (var ally in GameObjects.AllyHeroes.Where(x => x.IsValidTarget(E.Range, true))) { if (ally != null && !ally.IsMe) { var enemyInBounceRange = GameObjects.EnemyHeroes.FirstOrDefault(x => x.IsValidTarget(Q.Range, false, ally.Position)); if (enemyInBounceRange != null && enemyInBounceRange.Distance(Player) > Q.Range) { if (ally.Distance(enemyInBounceRange) < Q.Range) { E.CastOnUnit(ally); } } } } foreach (var minion in GameObjects.EnemyMinions.Where(x => x.IsValidTarget(E.Range, true))) { if (minion != null) { var enemyInBounceRange = GameObjects.EnemyHeroes.FirstOrDefault(x => x.IsValidTarget(Q.Range, false, minion.Position)); if (enemyInBounceRange != null && enemyInBounceRange.Distance(Player) > Q.Range) { if (minion.Distance(enemyInBounceRange) < Q.Range) { E.CastOnUnit(minion); } } } } foreach (var target in GameObjects.EnemyHeroes.Where(x => x.IsValidTarget(E.Range, true))) { if (target != null) { var enemyInBounceRange = GameObjects.EnemyHeroes.FirstOrDefault(x => x.IsValidTarget(Q.Range, false, target.Position)); if (enemyInBounceRange != null && enemyInBounceRange.Distance(Player) > Q.Range) { if (target.Distance(enemyInBounceRange) < Q.Range) { E.CastOnUnit(target); } } } } } foreach (var pixs in GameObjects.AllGameObjects) { if (pixs.Name == "RobotBuddy" && pixs.IsValid && pixs != null && !pixs.IsDead && pixs.Team == Player.Team) { foreach (var pix in GameObjects.AllyHeroes) { var enemyInBounceRange = GameObjects.EnemyHeroes.FirstOrDefault(x => x.IsValidTarget(Q.Range, false, pix.Position)); if (enemyInBounceRange != null) { if (pix.IsValidTarget(1800, true) && pix != null && pix.Distance(Player) < 1800 && pix.HasBuff("lulufaerieattackaid") && pix.Distance(enemyInBounceRange) < Q.Range) { Q.From = pix.Position; var pred = Q.GetPrediction(enemyInBounceRange); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } } foreach (var pix in GameObjects.EnemyHeroes) { var enemyInBounceRange = GameObjects.EnemyHeroes.FirstOrDefault(x => x.IsValidTarget(Q.Range, false, pix.Position)); if (enemyInBounceRange != null) { if (pix.IsValidTarget(1800) && pix != null && pix.Distance(Player) < 1800 && pix.HasBuff("lulufaerieburn") && pix.Distance(enemyInBounceRange) < Q.Range) { Q.From = pix.Position; var pred = Q.GetPrediction(enemyInBounceRange); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } } foreach (var pix in GameObjects.EnemyMinions) { var enemyInBounceRange = GameObjects.EnemyHeroes.FirstOrDefault(x => x.IsValidTarget(Q.Range, false, pix.Position)); if (enemyInBounceRange != null) { if (pix.IsValidTarget(1800) && pix != null && pix.Distance(Player) < 1800 && (pix.HasBuff("lulufaerieburn") || pix.HasBuff("lulufaerieattackaid") || pix.HasBuff("luluevision")) && pix.Distance(enemyInBounceRange) < Q.Range) { Q.From = pix.Position; var pred = Q.GetPrediction(enemyInBounceRange); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } } } } } if (E.IsReady()) { var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range); if (target.IsValidTarget(E.Range) && target != null) { if (target != null) { switch (RootMenu["combo"]["emode"].GetValue <MenuList>().Index) { case 0: E.CastOnUnit(target); break; case 1: if (Player.CountAllyHeroesInRange(E.Range) == 0 || target.HealthPercent < 5 && Player.HealthPercent > 20) { E.CastOnUnit(target); } break; case 2: break; } } } } if (useR) { foreach (var ally in GameObjects.AllyHeroes.Where(x => x.IsValidTarget(R.Range, true))) { if (ally != null) { if (ally.HealthPercent <= RootMenu["combo"]["rset"]["hp"].GetValue <MenuSlider>().Value) { if (ally.CountEnemyHeroesInRange(350) >= RootMenu["combo"]["rset"]["hitr"].GetValue <MenuSlider>().Value) { R.CastOnUnit(ally); } } } } } if (useW) { var target = Extensions.GetBestEnemyHeroTargetInRange(W.Range); if (target.IsValidTarget(W.Range) && target != null) { if (target != null) { foreach (var enemy in GameObjects.EnemyHeroes.Where( x => x.Distance(Player) <= W.Range && RootMenu["combo"]["wset"]["enemy"][x.CharacterName.ToLower() + "priority"] .GetValue <MenuSlider>() != 0) .OrderByDescending( x => RootMenu["combo"]["wset"]["enemy"][x.CharacterName.ToLower() + "priority"] .GetValue <MenuSlider>())) { W.CastOnUnit(enemy); } } } } if (useQ) { var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range); if (target.IsValidTarget(Q.Range) && target != null) { if (target != null) { foreach (var pixs in GameObjects.AllGameObjects) { if (pixs.Name == "RobotBuddy" && pixs.IsValid && pixs != null && !pixs.IsDead && pixs.Team == Player.Team) { if (pixs.Distance(target) < Player.Distance(target)) { Q.From = pixs.Position; var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } if (pixs.Distance(target) > Player.Distance(target)) { Q.From = Player.Position; var pred = Q.GetPrediction(target); if (pred.Hitchance >= HitChance.High) { Q.Cast(pred.CastPosition, true); } } } } } } } }