internal static void Execute() { var target = TargetSelector.GetTarget(Spells.Q.Range, TargetSelector.DamageType.Magical); if (target == null || !target.IsValidTarget(Spells.Q.Range) || ObjectManager.Player.ManaPercent < Config.GetSliderValue("manaToHarass")) { return; } var qMana = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).SData.Mana; var wMana = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).SData.Mana; var wManaP = wMana / ObjectManager.Player.Mana; if (target.Distance(ObjectManager.Player) <= ObjectManager.Player.AttackRange + 100 && ObjectManager.Player.Mana >= wMana && Spells.W.IsReady() && Config.IsChecked("useWHarass")) { switch (Config.GetStringListValue("wModeH")) { case 0: CardSelector.StartSelecting( ObjectManager.Player.ManaPercent < Config.GetSliderValue("manaToHarass") + 10 + wManaP ? Cards.Blue : Cards.Yellow); break; case 1: CardSelector.StartSelecting(Cards.Yellow); break; case 2: CardSelector.StartSelecting(Cards.Blue); break; case 3: CardSelector.StartSelecting(Cards.Red); break; } } if (Config.IsChecked("useQHarass") && Spells.Q.IsReady()) { var qPred = Spells.Q.GetPrediction(target); if (ObjectManager.Player.Mana >= qMana && qPred.Hitchance >= HitChance.High) { Spells.Q.Cast(qPred.CastPosition); } } }
internal static void Execute() { var wMana = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).ManaCost; switch (CardSelector.Status) { case SelectStatus.Ready: { if (ObjectManager.Player.Mana >= wMana) { if (Config.GoldKey) { CardSelector.StartSelecting(Cards.Yellow); } else if (Config.BlueKey) { CardSelector.StartSelecting(Cards.Blue); } else if (Config.RedKey) { CardSelector.StartSelecting(Cards.Red); } } break; } case SelectStatus.Selecting: { if (Config.GoldKey) { CardSelector.JumpToCard(Cards.Yellow); } else if (Config.BlueKey) { CardSelector.JumpToCard(Cards.Blue); } else if (Config.RedKey) { CardSelector.JumpToCard(Cards.Red); } break; } } }
private static void LaneClear() { Killsteal(); Orbwalker.ActiveMode = Orbwalking.OrbwalkingMode.LaneClear; var allMinions = MinionManager.GetMinions(Player.Position, Q.Range, MinionTypes.All, MinionTeam.NotAlly, MinionOrderTypes.MaxHealth); var lowHealtMinis = ObjectManager.Get<Obj_AI_Base>().Where(mini => mini.IsMinion && mini.IsEnemy && mini.Health < Q.GetDamage(mini)); var bestPosition = Q.GetLineFarmLocation(lowHealtMinis.ToList()); //Get the location of the highest hit if (allMinions.Count < 1) return; foreach (var minion in allMinions) { if (CardSelector.Status == SelectStatus.Selected) { Orbwalker.ForceTarget(minion); } if (Q.IsReady() && Player.Mana >= 160) { if (bestPosition.Position.IsValid()) { if (bestPosition.MinionsHit >= 2) { Q.Cast(bestPosition.Position, false); } } } else if(Player.Mana > 100 && W.IsInRange(minion) && W.IsReady()) { Console.WriteLine("Red card minion"); CardSelector.StartSelecting(Cards.Red); } else if (Player.Mana <= 100 && W.IsInRange(minion) && W.IsReady()) { Console.WriteLine("Blue card minion"); CardSelector.StartSelecting(Cards.Blue); } else { Orbwalker.ForceTarget(minion); } } }
private static void Combo() { if (Target == null || !detectCollision(Target)) { Console.WriteLine("Noone in range"); return; } Killsteal(); if (CardSelector.Status == SelectStatus.Selected) { Orbwalker.ForceTarget(Target); } if (IsInvul(Target) && W.IsInRange(Target)) { Console.WriteLine("use yellow"); CardSelector.StartSelecting(Cards.Yellow); } if (GetBool("UseIgnite") && CanIgnite() && GetDistance(Target) <= 300 && GetComboDamage(Target) >= (double)Target.Health) { Player.Spellbook.CastSpell(IgniteSlot, Target); } if (Q.IsReady() && Q.CastIfHitchanceEquals(Target, Q.MinHitChance)) { Console.WriteLine("throw Q"); Q.CastOnBestTarget(0f, false, true; } else if (W.IsInRange(Target) && W.IsReady()) { Console.WriteLine("use yellow"); CardSelector.StartSelecting(Cards.Yellow); } else { Console.WriteLine("AA"); Orbwalker.ForceTarget(Target); } }
internal static void Execute() { var wMana = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).SData.Mana; foreach (var enemy in HeroManager.Enemies.Where(e => !e.IsDead)) { if (Config.CanKillW && enemy.IsKillableAndValidTarget(Spells._w.GetDamage(enemy), Spells._w.DamageType, Orbwalking.GetRealAutoAttackRange(ObjectManager.Player) + 200)) { if (Spells._w.IsReadyPerfectly()) { if (CardSelector.Status == SelectStatus.Ready) { CardSelector.StartSelecting(Cards.First); } } if (CardSelector.Status == SelectStatus.Selecting) { CardSelector.JumpToCard(Cards.First); } } else if (Config.UseGoldCombo) { if (Spells._w.IsReadyPerfectly()) { if (CardSelector.Status == SelectStatus.Ready) { CardSelector.StartSelecting(Cards.Yellow); } } if (CardSelector.Status == SelectStatus.Selecting) { CardSelector.JumpToCard(Cards.Yellow); } } } }
private static void Killsteal() { if (Target == null) return; if(CardSelector.Status == SelectStatus.Selected && W.IsKillable(Target)){ Orbwalker.ForceTarget(Target); } if (Orbwalker.InAutoAttackRange(Target) && Target.Health <= Damage.GetAutoAttackDamage(Player, Target, true) && Orbwalker.InAutoAttackRange(Target)) { Console.WriteLine("KS"); Orbwalker.SetAttack(true); } else if (Q.IsKillable(Target) && Q.IsReady()) { Console.WriteLine("KS"); Q.SetSkillshot(Q.Delay, Q.Width, Q.Speed, false, SkillshotType.SkillshotLine, Q.From, Q.RangeCheckFrom); Q.CastOnBestTarget(0f, false, true); } else if (W.IsKillable(Target) && W.IsReady() && W.IsInRange(Target)) { CardSelector.StartSelecting(Cards.Blue); } }
public override void Game_OnUpdate(EventArgs args) { base.Game_OnUpdate(args); if (Player.ManaPercentage() > 20) { CastSpell(Q, qData); } TargetSelector.Mode = TargetSelector.TargetingMode.Closest; target = TargetSelector.GetTarget(Orbwalking.GetRealAutoAttackRange(Player), TargetSelector.DamageType.Physical); if (target != null) { if (Player.ManaPercentage() <= 20) { CardSelector.StartSelecting(Cards.Blue); } else { CardSelector.StartSelecting(Cards.Yellow); } } }
internal static void Execute() { if (ObjectManager.Player.ManaPercent < Config.GetSliderValue("manaToLC")) { return; } if (Config.IsChecked("useWinLC") && Spells.W.IsReady()) { var targetMinion = Mainframe.Orbwalker.GetTarget() as Obj_AI_Minion; if (targetMinion != null) { switch (Config.GetStringListValue("wModeLC")) { case 0: var combinedManaPercent = ObjectManager.Player.MaxMana / (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).SData.Mana + ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).SData.Mana); if (ObjectManager.Player.ManaPercent >= Math.Max(45, Config.GetSliderValue("manaToLC") + 10 + combinedManaPercent)) { /*var targetAoE = * ObjectManager.Get<Obj_AI_Minion>() * .Where(x => x.IsEnemy) * .Count(x => x.Distance(targetMinion) <= 250);*/ var targetAoE = MinionManager.GetMinions(targetMinion.Position, 250).Count; if (targetAoE > 2) { CardSelector.StartSelecting(Cards.Red); } } else { CardSelector.StartSelecting(Cards.Blue); } break; case 1: CardSelector.StartSelecting(Cards.Yellow); break; case 2: CardSelector.StartSelecting(Cards.Blue); break; case 3: CardSelector.StartSelecting(Cards.Red); break; } } } if (Config.IsChecked("useQinLC") && Spells.Q.IsReady()) { var minions = MinionManager.GetMinions(ObjectManager.Player.Position, Spells.Q.Range).Where(x => x.Type == GameObjectType.obj_AI_Minion && x.Team != ObjectManager.Player.Team).ToList(); if (!minions.Any() || minions.Count < 1) { return; } var minionPos = minions.Select(x => x.Position.To2D()).ToList(); var farm = MinionManager.GetBestLineFarmLocation(minionPos, Spells.Q.Width, Spells.Q.Range); if (farm.MinionsHit >= Config.GetSliderValue("qTargetsLC")) { Spells.Q.Cast(farm.Position); } } }
internal static void Execute() { var wMana = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).ManaCost; var qMana = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).ManaCost; var jungle = SebbyLib.Cache.GetMinions(ObjectManager.Player.ServerPosition, 700, MinionTeam.Neutral); if (!jungle.Any() || jungle.FirstOrDefault() == null) { return; } if (Spells._w.IsReadyPerfectly()) { if (jungle.Any(x => x.Name.StartsWith("SRU_Baron") || x.Name.StartsWith("SRU_Dragon"))) { switch (CardSelector.Status) { case SelectStatus.Ready: { CardSelector.StartSelecting(Cards.Blue); break; } case SelectStatus.Selecting: { CardSelector.JumpToCard(Cards.Blue); break; } } } else { var combinedManaPercent = (ObjectManager.Player.MaxMana / (wMana + qMana)); if (ObjectManager.Player.ManaPercent >= Math.Max(45, 20 + combinedManaPercent)) { var targetAoE = jungle.Count(x => x.Distance(jungle.FirstOrDefault()) <= 250); if (targetAoE > 2) { switch (CardSelector.Status) { case SelectStatus.Ready: { CardSelector.StartSelecting(Cards.Red); break; } case SelectStatus.Selecting: { CardSelector.JumpToCard(Cards.Red); break; } } } else { if (jungle.FirstOrDefault().HealthPercent >= 70 && ObjectManager.Player.HealthPercent < 50) { switch (CardSelector.Status) { case SelectStatus.Ready: { CardSelector.StartSelecting(Cards.Yellow); break; } case SelectStatus.Selecting: { CardSelector.JumpToCard(Cards.Yellow); break; } } } else { CardSelector.StartSelecting(Cards.Blue); } } } else { CardSelector.StartSelecting(Cards.Blue); } } } if (Spells._q.IsReadyPerfectly()) { if (ObjectManager.Player.Mana - qMana >= wMana) { var target = jungle.FirstOrDefault(x => x.IsValidTarget(Spells._q.Range)); if (target != null) { Spells._q.Cast(target); } } } }
internal static void Execute() { if (ObjectManager.Player.ManaPercent < Config.GetSliderValue("manaToJC")) { return; } var jungle = MinionManager.GetMinions(ObjectManager.Player.Position, ObjectManager.Player.AttackRange + 200, MinionTypes.All, MinionTeam.Neutral) .Where(x => x.Team == GameObjectTeam.Neutral) .OrderByDescending(x => x.MaxHealth); if (!jungle.Any() || jungle.FirstOrDefault() == null) { return; } if (Config.IsChecked("useWinJC") && Spells.W.IsReady()) { switch (Config.GetStringListValue("wModeJC")) { case 0: if (jungle.Any(x => x.Name.StartsWith("SRU_Baron") || x.Name.StartsWith("SRU_Dragon"))) { CardSelector.StartSelecting(Cards.Blue); } else { var combinedManaPercent = ObjectManager.Player.MaxMana / (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).SData.Mana + ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).SData.Mana); if (ObjectManager.Player.ManaPercent >= Math.Max(45, Config.GetSliderValue("manaToJC") + 10 + combinedManaPercent)) { var targetAoE = jungle.Count(x => x.Distance(jungle.FirstOrDefault()) <= 250); if (targetAoE > 2) { CardSelector.StartSelecting(Cards.Red); } else { // ReSharper disable once PossibleNullReferenceException if (jungle.FirstOrDefault().HealthPercent >= 40 && ObjectManager.Player.HealthPercent < 75) { CardSelector.StartSelecting(Cards.Yellow); } else { CardSelector.StartSelecting(Cards.Blue); } } // CardSelector.StartSelecting(targetAoE > 2 ? Cards.Red : Cards.Yellow); } else { CardSelector.StartSelecting(Cards.Blue); } } break; case 1: CardSelector.StartSelecting(Cards.Yellow); break; case 2: CardSelector.StartSelecting(Cards.Blue); break; case 3: CardSelector.StartSelecting(Cards.Red); break; } } if (Config.IsChecked("useQinJC") && Spells.Q.IsReady()) { var target = jungle.FirstOrDefault(x => x.IsValidTarget(Spells.Q.Range)); if (target != null) { Spells.Q.Cast(target); } } }