public static void New() { Orbwalker.OrbwalkTo(Game.CursorPos); var target = TargetSelector.SelectedTarget; if (target == null || insectpos(target) == null || !R.IsReady() || user.Mana < Common.Mana() || !target.IsKillable() || NormalInsec) { return; } var delay = JumperMenu.slider("delay"); var insecpos = target.ServerPosition.Extend(insectpos(target), -200).To3D(); var qpos = user.ServerPosition.Extend(insectpos(target), Q.Range - 200).To3D(); var soldier = Orbwalker.AzirSoldiers.FirstOrDefault(s => s.IsAlly && s.IsInRange(target, 200)); var ready = E.IsReady() && Q.IsReady() && user.Mana > Q.Mana() + E.Mana(); if (ready && soldier != null) { EloBuddy.SDK.Core.DelayAction( () => { if (E.Cast(target.ServerPosition)) { EloBuddy.SDK.Core.DelayAction(() => Q.Cast(qpos), delay); insecqtime = Game.Time; } }, 100); } Orbwalker.OrbwalkTo(insecpos); }
public static void Jump(Vector3 pos) { var delay = JumperMenu.slider("delay"); var range = JumperMenu.slider("range"); var qpos = user.ServerPosition.Extend(pos, Q.Range - 100).To3D(); var wpos = user.ServerPosition.Extend(pos, W.Range).To3D(); var epos = Orbwalker.AzirSoldiers.OrderBy(s => s.Distance(pos)).FirstOrDefault(s => s.IsAlly); var ready = E.IsReady() && Q.IsReady() && user.Mana > Q.Mana() + E.Mana() + W.Mana(); if (ready && Orbwalker.AzirSoldiers.Count(s => s.IsAlly && s.IsInRange(user, range)) < 1) { if (Common.LastCastedSpell.Spell == SpellSlot.E) { return; } W.Cast(wpos); } if (ready && epos != null) { EloBuddy.SDK.Core.DelayAction( () => { if (E.Cast(epos.ServerPosition)) { EloBuddy.SDK.Core.DelayAction(() => Q.Cast(qpos), delay); } }, 250); } if (Common.LastCastedSpell.Spell == SpellSlot.E) { var timer = Game.Time - Common.LastCastedSpell.Time; if (timer - delay < 0.1f && Q.IsReady()) { Q.Cast(qpos); } } }