public static void Lasthitmode() { if (MenuManager.LastHitMenu["Q"].Cast <CheckBox>().CurrentValue&& Program.Q.IsReady() && !Variables._Player.IsDashing() && (!Variables.HaveQ3 || MenuManager.LastHitMenu["Q3"].Cast <CheckBox>().CurrentValue)) { var obj = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Variables._Player.ServerPosition, !Variables.HaveQ3 ? Variables.QRange : Variables.Q2Range).OrderByDescending(m => m.Health).FirstOrDefault(i => DamageManager._GetEDmg(i) >= i.Health); if (obj != null) { (!Variables.HaveQ3 ? Program.Q : Program.Q2).Cast(obj); } } if (MenuManager.LastHitMenu["E"].Cast <CheckBox>().CurrentValue&& Program.E.IsReady()) { var obj = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Variables._Player.ServerPosition, Program.E.Range).OrderByDescending(m => m.Health) .Where( i => Variables.CanCastE(i) && (!Variables._Player.IsInAutoAttackRange(i) || i.Health > Variables._Player.GetAutoAttackDamage(i, true))) .FirstOrDefault(i => DamageManager._GetEDmg(i) >= i.Health); if (obj != null) { Program.E.Cast(obj); } } }
public static void UseE() { var TsTarget = TargetSelector.GetTarget(1300, DamageType.Physical); if (TsTarget == null) { return; } if (MenuManager.ComboMenu["E"].Cast <CheckBox>().CurrentValue&& Program.E.IsReady()) { if (Extensions.Distance(Functions.Modes.Combo.GetDashingEnd(TsTarget), TsTarget) <= Variables._Player.GetAutoAttackRange() //wont e unless in AA range after && TsTarget.Distance(Variables._Player) <= Program.E.Range && TsTarget.Distance(Variables._Player) >= Variables._Player.GetAutoAttackRange()) { Program.E.Cast(TsTarget); dashing = true; if (MenuManager.ComboMenu["EQ"].Cast <CheckBox>().CurrentValue&& Program.Q.IsReady()) { Program.Q.Cast(TsTarget.Position); } } else if (TsTarget.Distance(Variables._Player) > Player.Instance.GetAutoAttackRange(TsTarget)) //use minions to get to champ { var minion = ObjectManager.Get <Obj_AI_Minion>() .OrderByDescending(m => m.Distance(Variables._Player)) .FirstOrDefault( m => m.IsValidTarget(Program.E.Range) && (m.Distance(TsTarget) < Variables._Player.Distance(TsTarget)) && Variables._Player.IsFacing(m) && Variables.CanCastE(m) && (!Variables.UnderTower((Vector3)Variables.PosAfterE(m)))); if (minion != null && (Variables.PosAfterE(minion).Distance(TsTarget) < Player.Instance.Distance(TsTarget))) { Console.Write("E Cast minions"); Program.E.Cast(minion); } } } if (Orbwalker.CanAutoAttack) { var TsTargetaa = TargetSelector.GetTarget(Variables._Player.GetAutoAttackRange(), DamageType.Physical); if (TsTargetaa != null) { Orbwalker.ForcedTarget = TsTargetaa; } } dashing = false; }
public static void Harassmode() { var bestMinion = ObjectManager.Get <Obj_AI_Minion>() .Where(x => x.IsValidTarget(Program.E.Range)) .Where(x => x.Distance(Game.CursorPos) < Variables._Player.Distance(Game.CursorPos)) .OrderByDescending(x => x.Distance(Variables._Player)) .FirstOrDefault(); if (bestMinion != null && Variables._Player.IsFacing(bestMinion) && Variables.CanCastE(bestMinion) && (Program.E.IsReady() && MenuManager.HarassMenu["E"].Cast <CheckBox>().CurrentValue)) { Program.E.Cast(bestMinion); } var TsTarget = TargetSelector.GetTarget(1300, DamageType.Physical); if (TsTarget == null) { return; } if (Program.Q.IsReady() && MenuManager.HarassMenu["Q3"].Cast <CheckBox>().CurrentValue) { PredictionResult QPred = Program.Q.GetPrediction(TsTarget); if (!Variables.isDashing && QPred.HitChance >= EloBuddy.SDK.Enumerations.HitChance.Medium) { Program.Q.Cast(QPred.CastPosition); Core.DelayAction(Orbwalker.ResetAutoAttack, 250); } else if (Variables.Q3READY(Variables._Player) && Variables.isDashing && Variables._Player.Distance(TsTarget) <= 250 * 250) { Program.Q.Cast(QPred.CastPosition); Core.DelayAction(Orbwalker.ResetAutoAttack, 250); } } PredictionResult QPred2 = Program.Q.GetPrediction(TsTarget); if (!Variables.Q3READY(Variables._Player) && QPred2.HitChance >= EloBuddy.SDK.Enumerations.HitChance.Medium) { Program.Q.Cast(QPred2.CastPosition); Core.DelayAction(Orbwalker.ResetAutoAttack, 250); } }
public static void Fleemode() { foreach (Obj_AI_Base minion in EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Variables._Player.ServerPosition, Program.E.Range, true)) { var bestMinion = ObjectManager.Get <Obj_AI_Base>() .Where(x => x.IsValidTarget(Program.E.Range)) .Where(x => x.Distance(Game.CursorPos) < Variables._Player.Distance(Game.CursorPos)) .OrderByDescending(x => x.Distance(Variables._Player)) .FirstOrDefault(); if (bestMinion != null && Variables._Player.IsFacing(bestMinion) && Variables.CanCastE(bestMinion) && (Program.E.IsReady() && MenuManager.FleeMenu["EscE"].Cast <CheckBox>().CurrentValue)) { Program.E.Cast(bestMinion); } if (Program.Q.IsReady() && MenuManager.FleeMenu["EscQ"].Cast <CheckBox>().CurrentValue) { if (!Variables.Q3READY(Variables._Player) && Program.Q.Range == 475) { Program.Q.Cast(minion); } } } foreach (AIHeroClient enemy in EntityManager.Heroes.Enemies) { var bestMinion = ObjectManager.Get <AIHeroClient>() .Where(x => x.IsValidTarget(Program.E.Range)) .Where(x => x.Distance(Game.CursorPos) < Variables._Player.Distance(Game.CursorPos)) .OrderByDescending(x => x.Distance(Variables._Player)) .FirstOrDefault(); if (bestMinion != null && Variables._Player.IsFacing(bestMinion) && (Program.E.IsReady() && MenuManager.FleeMenu["EscE"].Cast <CheckBox>().CurrentValue) && Variables._Player.IsFacing(bestMinion)) { Program.E.Cast(bestMinion); } } }
public static void LaneClearmode() { foreach (Obj_AI_Base minion in EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Variables._Player.Position, Program.Q.Range, true).OrderByDescending(m => m.Health)) { if (minion == null) { return; } if (!minion.IsDead && MenuManager.LaneClearMenu["Q"].Cast <CheckBox>().CurrentValue&& Program.Q.IsReady() && minion.IsValidTarget() && !Variables.Q3READY(Variables._Player)) { if (minion.Health <= DamageManager.GetQDmg(minion)) { Program.Q.Cast(minion.ServerPosition); Core.DelayAction(Orbwalker.ResetAutoAttack, 250); } else if (!Variables.Q3READY(Variables._Player) && minion.Health + DamageManager.EDamage(minion) >= DamageManager.GetQDmg(minion) && Variables.CanCastE(minion)) { Program.Q.Cast(minion.ServerPosition); Core.DelayAction(Orbwalker.ResetAutoAttack, 250); } } if (!minion.IsDead && MenuManager.LaneClearMenu["Q3"].Cast <CheckBox>().CurrentValue&& Program.Q.IsReady() && minion.IsValidTarget() && Variables.Q3READY(Variables._Player)) { if (minion.Health <= DamageManager.GetQDmg(minion)) { Program.Q.Cast(minion.ServerPosition); Core.DelayAction(Orbwalker.ResetAutoAttack, 250); } else if (Variables.Q3READY(Variables._Player) && minion.Health + DamageManager.EDamage(minion) >= DamageManager.GetQDmg(minion) && Variables.CanCastE(minion)) { Program.Q.Cast(minion.ServerPosition); Core.DelayAction(Orbwalker.ResetAutoAttack, 250); } } } var allMinionsE = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Variables._Player.Position, Program.E.Range, true); foreach (var minion in allMinionsE.Where(Variables.CanCastE)) { if (MenuManager.LaneClearMenu["E"].Cast <CheckBox>().CurrentValue&& Program.E.IsReady() && minion.IsValidTarget(Program.E.Range)) { if (!Variables.UnderTower((Vector3)Variables.PosAfterE(minion))) { if (minion.Health <= DamageManager.GetEDmg(minion)) { Program.E.Cast(minion); } } } if (MenuManager.LaneClearMenu["Items"].Cast <CheckBox>().CurrentValue) { Items.UseItems(minion); } } }
public static void KillSteal() { foreach (AIHeroClient enemy in EntityManager.Heroes.Enemies) { if (enemy.IsValidTarget(Program.Q.Range)) { if (MenuManager.KillStealMenu["KsQ"].Cast <CheckBox>().CurrentValue&& Program.Q.IsReady()) { if (enemy.Health <= DamageManager._GetQDmg(enemy)) { Program.Q.Cast(enemy.ServerPosition); } } if (!Program.Q.IsReady() && Program.E.IsReady() && MenuManager.KillStealMenu["KsE"].Cast <CheckBox>().CurrentValue&& (Variables._Player.GetSpellDamage(enemy, SpellSlot.E) >= enemy.Health) && Variables.CanCastE(enemy)) { if (enemy.Health <= DamageManager._GetEDmg(enemy)) { Program.E.Cast(enemy); } } if (Program.Ignite != null && MenuManager.KillStealMenu["KsIgnite"].Cast <CheckBox>().CurrentValue&& Program.Ignite.IsReady()) { if (enemy.Health <= Variables._Player.GetSummonerSpellDamage(enemy, DamageLibrary.SummonerSpells.Ignite)) { Program.Ignite.Cast(enemy); } } } } }
public static void TestE() { var TsTarget = TargetSelector.GetTarget(1300, DamageType.Physical); if (TsTarget == null) { return; } if (MenuManager.ComboMenu["EC"].Cast <CheckBox>().CurrentValue&& TsTarget != null) { var dmg = ((float)Variables._Player.GetSpellDamage(TsTarget, SpellSlot.Q) + (float)Variables._Player.GetSpellDamage(TsTarget, SpellSlot.E) + (float)Variables._Player.GetSpellDamage(TsTarget, SpellSlot.R)); if (Program.E.IsReady() && TsTarget.Distance(Variables._Player) >= (MenuManager.ComboMenu["E1"].Cast <Slider>().CurrentValue) && dmg >= TsTarget.Health && Variables.UnderTower((Vector3)Variables.PosAfterE(TsTarget)) && Variables.CanCastE(TsTarget) && Variables._Player.IsFacing(TsTarget)) { Program.E.Cast(TsTarget); } else if (TsTarget.Distance(Variables._Player) >= (MenuManager.ComboMenu["E1"].Cast <Slider>().CurrentValue) && dmg <= TsTarget.Health && Variables.CanCastE(TsTarget) && Variables._Player.IsFacing(TsTarget)) { Functions.Events._game.useENormal(TsTarget); } else if (Program.Q.IsReady() && Variables.IsDashing && Variables._Player.Distance(TsTarget) <= 275 * 275) { Core.DelayAction(() => { Program.Q.Cast(TsTarget); }, 200); Core.DelayAction(Orbwalker.ResetAutoAttack, 250); } else if (Program.Q3.IsReady() && Variables._Player.Distance(TsTarget) <= Program.E.Range && Variables.Q3READY(Variables._Player) && TsTarget != null && Program.E.IsReady() && Variables.CanCastE(TsTarget)) { Program.E.Cast(TsTarget); } else if (Program.Q3.IsReady() && Variables.IsDashing && Variables._Player.Distance(TsTarget) <= 275 * 275 && Variables.Q3READY(Variables._Player)) { Core.DelayAction(() => { Program.Q.Cast(TsTarget); }, 200); Core.DelayAction(Orbwalker.ResetAutoAttack, 250); } if (MenuManager.ComboMenu["E3"].Cast <CheckBox>().CurrentValue&& Program.E.IsReady()) { var bestMinion = ObjectManager.Get <Obj_AI_Base>() .Where(x => x.IsValidTarget(Program.E.Range)) .Where(x => x.Distance(TsTarget) < Variables._Player.Distance(TsTarget)) .OrderByDescending(x => x.Distance(Variables._Player)) .FirstOrDefault(); var dmg2 = ((float)Variables._Player.GetSpellDamage(TsTarget, SpellSlot.Q) + (float)Variables._Player.GetSpellDamage(TsTarget, SpellSlot.E) + (float)Variables._Player.GetSpellDamage(TsTarget, SpellSlot.R)); if (bestMinion != null && TsTarget != null && dmg2 >= TsTarget.Health && !Variables.UnderTower((Vector3)Variables.PosAfterE(bestMinion)) && Variables._Player.IsFacing(bestMinion) && TsTarget.Distance(Variables._Player) >= (MenuManager.ComboMenu["E2"].Cast <Slider>().CurrentValue) && Variables.CanCastE(bestMinion) && Variables._Player.IsFacing(bestMinion)) { Functions.Events._game.useENormal(TsTarget); } else if (bestMinion != null && TsTarget != null && dmg2 <= TsTarget.Health && Variables._Player.IsFacing(bestMinion) && TsTarget.Distance(Variables._Player) >= (MenuManager.ComboMenu["E2"].Cast <Slider>().CurrentValue) && Variables.CanCastE(bestMinion) && Variables._Player.IsFacing(bestMinion)) { Program.E.Cast(bestMinion); } } if (!MenuManager.ComboMenu["E3"].Cast <CheckBox>().CurrentValue&& Program.E.IsReady()) { var bestMinion = ObjectManager.Get <Obj_AI_Base>() .Where(x => x.IsValidTarget(Program.E.Range)) .Where(x => x.Distance(Game.CursorPos) < Variables._Player.Distance(TsTarget)) .OrderByDescending(x => x.Distance(Variables._Player)) .FirstOrDefault(); var dmg3 = ((float)Variables._Player.GetSpellDamage(TsTarget, SpellSlot.Q) + (float)Variables._Player.GetSpellDamage(TsTarget, SpellSlot.E) + (float)Variables._Player.GetSpellDamage(TsTarget, SpellSlot.R)); if (bestMinion != null && TsTarget != null && dmg3 >= TsTarget.Health && !Variables.UnderTower((Vector3)Variables.PosAfterE(bestMinion)) && Variables._Player.IsFacing(bestMinion) && TsTarget.Distance(Variables._Player) >= (MenuManager.ComboMenu["E2"].Cast <Slider>().CurrentValue) && Variables.CanCastE(bestMinion) && Variables._Player.IsFacing(bestMinion)) { Functions.Events._game.useENormal(TsTarget); } else if (bestMinion != null && TsTarget != null && dmg3 <= TsTarget.Health && Variables._Player.IsFacing(bestMinion) && TsTarget.Distance(Variables._Player) >= (MenuManager.ComboMenu["E2"].Cast <Slider>().CurrentValue) && Variables.CanCastE(bestMinion) && Variables._Player.IsFacing(bestMinion)) { Program.E.Cast(bestMinion); } } } }
public static void NewLane() { if (MenuManager.LaneClearMenu["Q"].Cast <CheckBox>().CurrentValue&& Program.Q.IsReady() && (!Variables.HaveQ3 || MenuManager.LaneClearMenu["Q3"].Cast <CheckBox>().CurrentValue)) { if (Variables._Player.IsDashing()) { var minionObj = (EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Variables._Player.GetDashInfo().EndPos, Variables.QCirWidth)); var monsterObj = (EntityManager.MinionsAndMonsters.GetJungleMonsters(Variables._Player.GetDashInfo().EndPos, Variables.QCirWidth)); if ((minionObj.Any(i => DamageManager._GetQDmg(i) >= i.Health || i.Team == GameObjectTeam.Neutral) || minionObj.Count() > 1) && Variables._Player.Distance(Variables._Player.GetDashInfo().EndPos) < 150 ) { Variables.CastQCir(minionObj.MinOrDefault(i => i.Distance(Variables._Player))); } if ((monsterObj.Any(i => DamageManager._GetQDmg(i) >= i.Health || i.Team == GameObjectTeam.Neutral) || monsterObj.Count() > 1) && Variables._Player.Distance(Variables._Player.GetDashInfo().EndPos) < 150 ) { Variables.CastQCir(monsterObj.MinOrDefault(i => i.Distance(Variables._Player))); } } else { var minionObj = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Variables._Player.ServerPosition, !Variables.HaveQ3 ? Variables.QRange : Variables.Q2Range).OrderByDescending(m => m.Health); var monsterObj = EntityManager.MinionsAndMonsters.GetJungleMonsters(Variables._Player.ServerPosition, !Variables.HaveQ3 ? Variables.QRange : Variables.Q2Range).OrderByDescending(m => m.Health); if (minionObj.Any()) { if (!Variables.HaveQ3) { var obj = minionObj.FirstOrDefault(i => DamageManager._GetQDmg(i) >= i.Health); if (obj != null) { Program.Q.Cast(obj.ServerPosition); } } if (Variables.HaveQ3) { var obj = minionObj.FirstOrDefault(i => DamageManager._GetQDmg(i) >= i.Health); if (obj != null) { Program.Q2.Cast(obj.ServerPosition); } } } if (monsterObj.Any()) { if (!Variables.HaveQ3) { var obj = monsterObj.FirstOrDefault(); if (obj != null) { Program.Q.Cast(obj.ServerPosition); } } if (Variables.HaveQ3) { var obj = monsterObj.FirstOrDefault(); if (obj != null) { Program.Q2.Cast(obj.ServerPosition); } } } } } if (MenuManager.LaneClearMenu["E"].Cast <CheckBox>().CurrentValue&& Program.E.IsReady()) { var minionObj = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Variables._Player.ServerPosition, Program.E.Range).OrderByDescending(m => m.Health) .Where(i => Variables.CanCastE(i) && !(Variables.PosAfterE(i).IsUnderTurret())) .ToList(); var monsterObj = EntityManager.MinionsAndMonsters.GetJungleMonsters(Variables._Player.ServerPosition, Program.E.Range).OrderByDescending(m => m.Health) .Where(i => Variables.CanCastE(i) && !(Variables.PosAfterE(i).IsUnderTurret())) .ToList(); if (minionObj.Any()) { var obj = minionObj.FirstOrDefault(i => DamageManager._GetEDmg(i) >= i.Health); if (obj != null) { Program.E.Cast(obj); } } if (monsterObj.Any()) { var obj = monsterObj.FirstOrDefault(i => DamageManager._GetEDmg(i) >= i.Health); if (obj != null) { Program.E.Cast(obj); } } } if (MenuManager.LaneClearMenu["Items"].Cast <CheckBox>().CurrentValue) { foreach (Obj_AI_Base minion in EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Variables._Player.Position, Program.Q.Range, true).OrderByDescending(m => m.Health)) { Items.UseItems(minion); } foreach (Obj_AI_Base minion in EntityManager.MinionsAndMonsters.GetJungleMonsters(Variables._Player.Position, Program.Q.Range, true).OrderByDescending(m => m.Health)) { Items.UseItems(minion); } } }
public static void JungleClearmode() { foreach (Obj_AI_Base minion in EntityManager.MinionsAndMonsters.GetJungleMonsters(Variables._Player.ServerPosition, Program.Q.Range, true)) { if (minion == null) { return; } if (MenuManager.JungleClearMenu["Q"].Cast <CheckBox>().CurrentValue&& Program.Q.IsReady() && minion.IsValidTarget()) { if (minion.Health <= DamageManager.QDamage(minion)) { Program.Q.Cast(minion.ServerPosition); Core.DelayAction(Orbwalker.ResetAutoAttack, 250); } else if (Program.Q.IsReady()) { Program.Q.Cast(minion.ServerPosition); Core.DelayAction(Orbwalker.ResetAutoAttack, 250); } } if (MenuManager.JungleClearMenu["E"].Cast <CheckBox>().CurrentValue&& Program.E.IsReady() && minion.IsValidTarget(Program.E.Range) && Variables.CanCastE(minion)) { if (minion.Health <= DamageManager.EDamage(minion)) { Program.E.Cast(minion); } else { Program.E.Cast(minion); } } if (MenuManager.JungleClearMenu["Items"].Cast <CheckBox>().CurrentValue) { Items.UseItems(minion); } } }