private static void Harass() { var target = TargetSelector.GetTarget(W.Range, DamageType.Magical); if (target == null) { return; } if (!SpiderForm) { if (HarassMenu.Get <CheckBox>("useQ").CurrentValue&& Q.IsReady() && target.IsValidTarget(Q.Range)) { Q.Cast(target); } if (HarassMenu.Get <CheckBox>("useW").CurrentValue&& W.IsReady() && target.IsValidTarget(W.Range)) { var prediction = W.GetPrediction(target); if (prediction.CollisionObjects.Count() == 0) { W.Cast(target.ServerPosition); } } } }
public static void DoHarass() { var q = HarassMenu.GetCheckbox("useQ") && Q.IsReady(); var w = HarassMenu.GetCheckbox("useW") && W.IsReady(); var e = HarassMenu.GetCheckbox("useE") && E.IsReady(); var r = HarassMenu.GetCheckbox("useR") && R.IsReady(); AIHeroClient target; if (w) { target = TargetSelector.GetTarget(W.Range, TargetSelector.DamageType.Physical); if (ObjectManager.Player.CountEnemiesInRange(300f) >= 1) { W.Cast(); } } if (e) { target = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Physical); if (target != null && (target.Distance(ObjectManager.Me) > HarassMenu.Get <MenuSlider>("rangeE").CurrentValue)) { E.CastOnUnit(target); } } if (r) { target = TargetSelector.GetTarget(R.Range, TargetSelector.DamageType.Physical); if (ObjectManager.Player.CountEnemiesInRange(500f) >= HarassMenu.Get <MenuSlider>("enemiesR").CurrentValue) { R.Cast(); } } }
private static void harass() { var target = TargetSelector.GetTarget(E.Range, DamageType.Physical); var harassmana = HarassMenu.Get <Slider>("harassmana").CurrentValue; if (target == null || !target.IsValidTarget() || IsCastingR()) { return; } if (E.IsReady() && HarassMenu.Get <CheckBox>("hE").CurrentValue&& target.IsValidTarget(E.Range) && player.ManaPercent >= harassmana) { E.Cast(target); } if (Q.IsReady() && HarassMenu.Get <CheckBox>("hQ").CurrentValue&& target.IsValidTarget(Q.Range) && player.ManaPercent >= harassmana) { Q.Cast(); } }
private static void Drawing_OnDraw(EventArgs args) { if (!DrawingMenu.GetCheckbox("enable")) { return; } if (DrawingMenu.GetCheckbox("drawEmin")) { Drawing.DrawCircle(ObjectManager.Me.Position, HarassMenu.Get <MenuSlider>("rangeE").CurrentValue, Color.Green); } if (DrawingMenu.GetCheckbox("drawE")) { Drawing.DrawCircle(ObjectManager.Me.Position, E.Range, Color.Red); } if (DrawingMenu.GetCheckbox("drawR")) { Drawing.DrawCircle(ObjectManager.Me.Position, R.Range, Color.Black); } }
private static void Harass(AIHeroClient target) { if (target == null) { return; } if (menuIni.Get <CheckBox>("Harass").CurrentValue&& HarassMenu.Get <CheckBox>("useE").CurrentValue && _E.IsReady() && CheckMana()) { CastE(target); } if (menuIni.Get <CheckBox>("Harass").CurrentValue&& HarassMenu.Get <CheckBox>("useQ").CurrentValue && _Q.IsReady() && CheckMana() && CheckMana()) { CastQ(target); } if (menuIni.Get <CheckBox>("Harass").CurrentValue&& HarassMenu.Get <CheckBox>("useW").CurrentValue && _W.IsReady() && CheckMana() && CheckMana()) { CastW(target); } }
private static void Harass() { { if (qTarget != null) { var predQ = Q2.GetPrediction(qTarget); if (HarassMenu.Get <CheckBox>("HUse_Q").CurrentValue&& (Q.IsReady() && qTarget.IsValidTarget(Q.Range))) { if (!cz && predQ.HitChance >= HitChance.High) { Q.Cast(predQ.CastPosition); } else { Q.Cast(qTarget.ServerPosition); } } } if (HarassMenu.Get <CheckBox>("HUse_E").CurrentValue&& HarassMenu.Get <CheckBox>("E_LastHit").CurrentValue&& E.IsReady() && !player.IsZombie) { if (!E.IsReady() || player.IsZombie) { return; } nowE = false; var minions = new List <Obj_AI_Base>( EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Instance.Position, E.Range).ToArray()); minions.RemoveAll(x => x.Health <= 5); minions.RemoveAll(x => player.Distance(x.ServerPosition) > E.Range || x.Health > player.GetSpellDamage(eTarget, SpellSlot.E)); var jgm = minions.Any(x => x.Team == GameObjectTeam.Neutral); if ((player.Spellbook.GetSpell(SpellSlot.E).ToggleState == 1 && (minions.Count >= 1 || jgm)) && (player.ManaPercent >= HarassMenu.Get <Slider>("HEPercent").CurrentValue)) { E.Cast(); } else if ((player.Spellbook.GetSpell(SpellSlot.E).ToggleState == 2 && (minions.Count == 0 && !jgm)) || !(player.ManaPercent >= HarassMenu.Get <Slider>("HEPercent").CurrentValue)) { calcE(true); } } if (HarassMenu.Get <CheckBox>("HUse_E").CurrentValue&& E.IsReady() && !player.IsZombie) { if (HarassMenu.Get <CheckBox>("HE_Auto_False").CurrentValue) { if (eTarget != null) { if (player.Spellbook.GetSpell(SpellSlot.E).ToggleState == 1) { if (player.Distance(eTarget.ServerPosition) <= E.Range && (player.ManaPercent >= HarassMenu.Get <Slider>("HEPercent").CurrentValue)) { nowE = true; E.Cast(); } } else if (player.Distance(eTarget.ServerPosition) >= E.Range || (player.ManaPercent <= HarassMenu.Get <Slider>("HEPercent").CurrentValue)) { calcE(true); } } else { calcE(); } } else { if (eTarget != null) { if (player.Spellbook.GetSpell(SpellSlot.E).ToggleState == 1) { if (player.Distance(eTarget.ServerPosition) <= E.Range && (player.ManaPercent >= HarassMenu.Get <Slider>("HEPercent").CurrentValue)) { nowE = true; E.Cast(); } } else if (player.ManaPercent <= HarassMenu.Get <Slider>("HEPercent").CurrentValue) { calcE(true); } } } } } }
private static void OnUpdate(EventArgs args) { if (player.IsDead) { return; } qTarget = TargetSelector.GetTarget(Q.Range, DamageType.Magical); wTarget = TargetSelector.GetTarget(W.Range, DamageType.Magical); eTarget = TargetSelector.GetTarget(E.Range, DamageType.Magical); var flags = Orbwalker.ActiveModesFlags; if (flags.HasFlag(Orbwalker.ActiveModes.Combo) && menuIni.Get <CheckBox>("Combo").CurrentValue) { Orbwalker.DisableAttacking = ComboMenu.Get <CheckBox>("CUse_AA").CurrentValue&& player.Mana > Q.Handle.SData.Mana * 3; if (MiscMenu.Get <CheckBox>("SaveR").CurrentValue&& player.Mana - (SaveR() / 3) - 30 > R.Handle.SData.Mana && player.Level >= 6 && R.IsLearned) { Combo(); } if (!MiscMenu.Get <CheckBox>("SaveR").CurrentValue || player.Level < 6 && !R.IsLearned || player.IsZombie) { Combo(); } } if (flags.HasFlag(Orbwalker.ActiveModes.LaneClear) && menuIni.Get <CheckBox>("LaneClear").CurrentValue) { Orbwalker.DisableAttacking = false; if (MiscMenu.Get <CheckBox>("SaveR").CurrentValue&& player.Mana - (SaveR() / 3) > R.Handle.SData.Mana && player.Level >= 6 && R.IsLearned) { LaneClear(); } if (!MiscMenu.Get <CheckBox>("SaveR").CurrentValue || player.Level < 6 && !R.IsLearned) { LaneClear(); } } if (flags.HasFlag(Orbwalker.ActiveModes.JungleClear) && menuIni.Get <CheckBox>("JungleClear").CurrentValue) { Orbwalker.DisableAttacking = false; if (MiscMenu.Get <CheckBox>("SaveR").CurrentValue&& player.Level >= 6 && R.IsLearned && player.Mana - (SaveR() / 3) > R.Handle.SData.Mana) { JungleClear(); } if (!MiscMenu.Get <CheckBox>("SaveR").CurrentValue || player.Level < 6 && !R.IsLearned) { JungleClear(); } } if (flags.HasFlag(Orbwalker.ActiveModes.Harass) && menuIni.Get <CheckBox>("Harass").CurrentValue) { Orbwalker.DisableAttacking = HarassMenu.Get <CheckBox>("HUse_AA").CurrentValue&& Player.Instance.Mana < Q.Handle.SData.Mana * 3; if (MiscMenu.Get <CheckBox>("SaveR").CurrentValue&& player.Level >= 6 && R.IsLearned && player.Mana - (SaveR() / 2) > R.Handle.SData.Mana) { Harass(); } if (!MiscMenu.Get <CheckBox>("SaveR").CurrentValue || player.Level < 6 && !R.IsLearned) { Harass(); } } if (flags.HasFlag(Orbwalker.ActiveModes.LastHit) && menuIni.Get <CheckBox>("LastHit").CurrentValue) { if (LaneMenu.Get <CheckBox>("LAA").CurrentValue && (Q.IsReady() || ObjectManager.Player.ManaPercent >= LaneMenu.Get <Slider>("LHQPercent").CurrentValue)) { Orbwalker.DisableAttacking = true; } else { Orbwalker.DisableAttacking = false; } if (MiscMenu.Get <CheckBox>("SaveR").CurrentValue&& player.Level >= 6 && R.IsLearned && player.Mana - (SaveR() / 3) > R.Handle.SData.Mana) { LastHit(); } if (!MiscMenu.Get <CheckBox>("SaveR").CurrentValue || player.Level < 6 && !R.IsLearned) { LastHit(); } } if (MiscMenu.Get <CheckBox>("DeadCast").CurrentValue) { if (ObjectManager.Player.IsZombie && !Combo()) { LaneClear(); } } if (menuIni.Get <CheckBox>("KillSteal").CurrentValue) { Ks(); } if (menuIni.Get <CheckBox>("Ultimate").CurrentValue&& UltMenu.Get <ComboBox>("UltMode").CurrentValue == 0 && UltMenu.Get <CheckBox>("UltKS").CurrentValue&& (R.IsLearned && R.IsReady())) { Ult(); } }
private static bool CheckMana() { return(Player.ManaPercent >= HarassMenu.Get <Slider>("mana").CurrentValue); }