public static void DoLaneClear() { var q = LaneclearMenu.GetCheckbox("useQ") && Q.IsReady(); var minQ = LaneclearMenu.GetSlider("minQ"); var e = LaneclearMenu.GetCheckbox("useE") && E.IsReady(); var minionQ = ObjectManager.MinionsAndMonsters.Enemy.Where(x => x.IsValidTarget(Q.Range)); var qpos = MinionManager.GetBestLineFarmLocation(minionQ.Select(x => x.Position.To2D()).ToList(), Q.Width, Q.Range); foreach (var m in minionQ) { if (q && qpos.MinionsHit >= minQ) { Q.Cast(qpos.Position); } if (e && E.GetDamage(m) + ObjectManager.Player.GetAutoAttackDamage(m) >= m.Health) { if (m.Distance(ObjectManager.Player.Position) > ObjectManager.Player.GetAutoAttackRange(m) && m.IsValidTarget(E.Range + 375)) { ObjectManager.Player.Spellbook.CastSpell(SpellSlot.E, m.Position); Orbwalker.ResetAutoAttackTimer(); Core.DelayAction(() => ObjectManager.Player.IssueOrder(HesaEngine.SDK.Enums.GameObjectOrder.AttackUnit, m), 100); return; } } } }
public static void DoLaneClear() { var q = LaneclearMenu.GetCheckbox("useQ") && Q.IsReady(); var w = LaneclearMenu.GetCheckbox("useW") && W.IsReady(); var e = LaneclearMenu.GetCheckbox("useE") && E.IsReady(); var r = LaneclearMenu.GetCheckbox("useR") && R.IsReady(); var minion = ObjectManager.MinionsAndMonsters.Enemy.Where(x => x.IsValidTarget(W.Range)); foreach (var m in minion) { if (w) { W.CastIfHitchanceEquals(m, HitChance.Medium); } } }
public static void DoLaneClear() { var q = LaneclearMenu.GetCheckbox("useQ") && Q.IsReady(); var w = LaneclearMenu.GetCheckbox("useW") && E.IsReady(); var minionQ = ObjectManager.MinionsAndMonsters.Enemy.Where(x => x.IsValidTarget(Q.Range)); var qpos = MinionManager.GetBestCircularFarmLocation(minionQ.Select(x => x.Position.To2D()).ToList(), Q.Width, Q.Range); foreach (var m in minionQ) { if (q && qpos.MinionsHit >= 1) { Q.Cast(qpos.Position); } } var minionW = ObjectManager.MinionsAndMonsters.Enemy.Where(x => x.IsValidTarget(W.Range)); var wpos = MinionManager.GetBestCircularFarmLocation(minionW.Select(x => x.Position.To2D()).ToList(), W.Width, W.Range); foreach (var m in minionQ) { if (w && wpos.MinionsHit >= 1) { if (W.Instance.ToggleState == 1) // Not holding { var wball = Main.MyBalls.Find(ball => ball.Distance(ObjectManager.Player) < W.Range - 25);// Look for ball var wminion = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, W.Range - 25, MinionTypes.All, MinionTeam.NotAlly, MinionOrderTypes.MaxHealth).FirstOrDefault();//Look for minion if (wball != null && !wball.IsMoving) { W.Cast(wball); } else if (wminion != null) { W.Cast(wminion); } } else //holding { W.Cast(wpos.Position); } } } }
public static void Before_Attack(BeforeAttackEventArgs ArgsTarget) { if (Orb.ActiveMode.Equals(Orbwalker.OrbwalkingMode.Combo) && ComboMenu.GetCheckbox("useW")) { W.Cast(); } if (Orb.ActiveMode.Equals(Orbwalker.OrbwalkingMode.Harass) && HarassMenu.GetCheckbox("useW")) { W.Cast(); } if (Orb.ActiveMode.Equals(Orbwalker.OrbwalkingMode.LaneClear) && LaneclearMenu.GetCheckbox("useW")) { W.Cast(); } if (Orb.ActiveMode.Equals(Orbwalker.OrbwalkingMode.JungleClear) && JungleclearMenu.GetCheckbox("useW")) { W.Cast(); } }
public static void DoLaneClear() { var q = LaneclearMenu.GetCheckbox("useQ") && Q.IsReady(); var e = LaneclearMenu.GetCheckbox("useE") && E.IsReady(); var minion = ObjectManager.MinionsAndMonsters.Enemy.Where(x => x.IsValidTarget(W.Range)); foreach (var m in minion) { if (q && ObjectManager.Me.Distance(m) < Q.Range) { Q.Cast(m); } if (e && ObjectManager.Me.Distance(m) < E.Range) { E.CastOnUnit(m); } } }
public static void DoLaneClear() { var w = LaneclearMenu.GetCheckbox("useW") && W.IsReady(); var e = LaneclearMenu.GetCheckbox("useE") && E.IsReady(); var minion = ObjectManager.MinionsAndMonsters.Enemy.Where(x => x.IsValidTarget(W.Range)); foreach (var m in minion) { if (w && m.IsInRange(ObjectManager.Me, 300f)) { W.Cast(); } if (e && m.IsInRange(ObjectManager.Me, 600f)) { E.CastOnUnit(m); } } }
public static void DoLaneClear() { var q = LaneclearMenu.GetCheckbox("useQ") && Q.IsReady(); var w = LaneclearMenu.GetCheckbox("useW") && W.IsReady(); var e = LaneclearMenu.GetCheckbox("useE") && E.IsReady(); var minion = ObjectManager.MinionsAndMonsters.Enemy.Where(x => x.IsValidTarget(W.Range)); foreach (var m in minion) { if (w && m.IsInRange(ObjectManager.Me, 325f)) { W.Cast(); } if (e && m.IsInRange(ObjectManager.Me, 900f)) { E.CastIfHitchanceEquals(m, HitChance.Low); } } }
private static void AfterAttack(AttackableUnit sender, AttackableUnit ArgsTarget) { var ttarget = TargetSelector.GetTarget(385); var rtarget = TargetSelector.GetTarget(385); var tiamattarget = TargetSelector.GetTarget(385); THydra = new Item(3748, 385); RHydra = new Item(3074, 385); Tiamat = new Item(3077, 385); if (!sender.IsMe || ObjectManager.Me.IsDead) { return; } if (ArgsTarget == null || ArgsTarget.IsDead || ArgsTarget.Health <= 0) { return; } if (Orb.ActiveMode.Equals(Orbwalker.OrbwalkingMode.Combo)) { var target = ArgsTarget as AIHeroClient; if (target != null && !target.IsDead) { if (ComboMenu.GetCheckbox("useQ")) { if (Q.IsReady() && target.Distance(ObjectManager.Me) < 280) { Q.Cast(); Orbwalker.ResetAutoAttackTimer(); } if (!Q.IsReady() && target.Distance(ObjectManager.Me) < 300) { if (THydra.IsOwned() && THydra.IsReady()) { THydra.Cast(ttarget); } if (RHydra.IsOwned() && RHydra.IsReady()) { RHydra.Cast(rtarget); } if (Tiamat.IsOwned() && Tiamat.IsReady()) { Tiamat.Cast(tiamattarget); } } } } } if (Orb.ActiveMode.Equals(Orbwalker.OrbwalkingMode.Harass)) { var target = ArgsTarget as AIHeroClient; if (target != null && !target.IsDead) { if (HarassMenu.GetCheckbox("useQ")) { if (Q.IsReady() && target.Distance(ObjectManager.Me) < 280) { Q.Cast(); Orbwalker.ResetAutoAttackTimer(); } if (!Q.IsReady() && target.Distance(ObjectManager.Me) < 300) { if (THydra.IsOwned() && THydra.IsReady()) { THydra.Cast(ttarget); } if (RHydra.IsOwned() && RHydra.IsReady()) { RHydra.Cast(rtarget); } if (Tiamat.IsOwned() && Tiamat.IsReady()) { Tiamat.Cast(tiamattarget); } } } } } if (Orb.ActiveMode.Equals(Orbwalker.OrbwalkingMode.LaneClear)) { var target = ArgsTarget as Obj_AI_Minion; if (target != null && !target.IsDead) { if (LaneclearMenu.GetCheckbox("useQ")) { if (Q.IsReady() && target.Distance(ObjectManager.Me) < 280) { Q.Cast(); Orbwalker.ResetAutoAttackTimer(); } if (!Q.IsReady() && target.Distance(ObjectManager.Me) < 300) { if (THydra.IsOwned() && THydra.IsReady()) { THydra.Cast(ttarget); } if (RHydra.IsOwned() && RHydra.IsReady()) { RHydra.Cast(rtarget); } if (Tiamat.IsOwned() && Tiamat.IsReady()) { Tiamat.Cast(tiamattarget); } } } } } if (Orb.ActiveMode.Equals(Orbwalker.OrbwalkingMode.JungleClear)) { var target = ArgsTarget as Obj_AI_Minion; if (target != null && !target.IsDead) { if (JungleclearMenu.GetCheckbox("useQ")) { if (Q.IsReady() && target.Distance(ObjectManager.Me) < 280) { Q.Cast(); Orbwalker.ResetAutoAttackTimer(); } if (!Q.IsReady() && target.Distance(ObjectManager.Me) < 300) { if (THydra.IsOwned() && THydra.IsReady()) { THydra.Cast(ttarget); } if (RHydra.IsOwned() && RHydra.IsReady()) { RHydra.Cast(rtarget); } if (Tiamat.IsOwned() && Tiamat.IsReady()) { Tiamat.Cast(tiamattarget); } } } } } }