public static void Execute() { var target = EntityManager.MinionsAndMonsters.GetJungleMonsters().OrderByDescending(a => a.MaxHealth).FirstOrDefault(a => a.IsValidTarget(900)); if (JungleClearMenu.GetCheckBoxValue("qUse") && Q.IsReady()) { Program.Items(); Q.Cast(); Orbwalker.ForcedTarget = target; } if (JungleClearMenu.GetCheckBoxValue("wUse") && W.IsReady()) { W.Cast(); } if (JungleClearMenu.GetCheckBoxValue("eUse") && E.IsReady() && E.GetPrediction(target).HitChance >= Hitch.hitchance(E, FirstMenu)) { E.Cast(target); } var save = JungleClearMenu.GetCheckBoxValue("JungleSave"); if (_player.Mana != 5 || save) { return; } if (target.IsValidTarget(Q.Range) && Q.IsReady() && FirstMenu.GetComboBoxValue("JunglePrio") == 0 && JungleClearMenu.GetCheckBoxValue("qUse")) { Q.Cast(); } if (target.IsValidTarget(W.Range) && W.IsReady() && FirstMenu.GetComboBoxValue("JunglePrio") == 1 && JungleClearMenu.GetCheckBoxValue("wUse") && !_player.HasBuff("rengarpassivebuff")) { W.Cast(); } Program.Items(); if (target.IsValidTarget(E.Range) && E.IsReady() && FirstMenu.GetComboBoxValue("JunglePrio") == 2 && JungleClearMenu.GetCheckBoxValue("eUse")) { E.Cast(target.ServerPosition); } }
private static void OnBeforeAttack(AttackableUnit target, Orbwalker.PreAttackArgs args) { var combo = Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo); var harass = Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass); var QC = ComboMenu.GetCheckBoxValue("qUse"); var QH = HarassMenu.GetCheckBoxValue("qUse"); var mode = FirstMenu.GetComboBoxValue("ComboPrio") == 0 || FirstMenu.GetComboBoxValue("ComboPrio") == 2; if (!(args.Target is AIHeroClient)) { return; } if (_player.HasBuff("rengarpassivebuff") || _player.HasBuff("RengarR")) { return; } if (_player.Mana <= 4) { if (combo && QC && Q.IsReady() && args.Target.IsValidTarget(Q.Range)) { Q.Cast(); } if (harass && QH && Q.IsReady() && args.Target.IsValidTarget(Q.Range)) { Q.Cast(); } } if (_player.Mana == 5) { if (combo && QC && Q.IsReady() && mode && args.Target.IsValidTarget(Q.Range)) { Q.Cast(); } if (harass && QH && Q.IsReady() && mode && args.Target.IsValidTarget(Q.Range)) { Q.Cast(); } } }
public static void Execute() { var target = TargetSelector.GetTarget(2000, DamageType.Physical); var rtarget = TargetSelector.GetTarget(R.Range, DamageType.Magical); var useQ = ComboMenu.GetCheckBoxValue("qUse"); var useW = ComboMenu.GetCheckBoxValue("wUse"); var useE = ComboMenu.GetCheckBoxValue("eUse"); var useR = ComboMenu.GetCheckBoxValue("rUse"); var useEE = ComboMenu.GetCheckBoxValue("UseEEC"); var tqq = TargetSelector.GetTarget(Q.Range, DamageType.Physical); if (useR) { Program.ItemsYuno(); R.Cast(); } if (_player.Mana <= 4) { var tqqq = TargetSelector.GetTarget(Q.Range, DamageType.Physical); if (tqqq.IsValidTarget(Q.Range) && Q.IsReady() && useQ) { Q.Cast(); Program.Items(); } var tww = TargetSelector.GetTarget(W.Range, DamageType.Magical); if (tww.IsValidTarget(250) && W.IsReady() && !_player.HasBuff("rengarpassivebuff") && useW) { W.Cast(); } var tee = TargetSelector.GetTarget(E.Range, DamageType.Physical); var predE = E.GetPrediction(tee); if (!_player.HasBuff("rengarpassivebuff") && tee.IsValidTarget(E.Range) && E.IsReady() && E.GetPrediction(tee).HitChance >= Hitch.hitchance(E, FirstMenu) && useE) { E.Cast(tee); } } if (_player.Mana <= 5) { var tq = TargetSelector.GetTarget(Q.Range, DamageType.Physical); var tw = TargetSelector.GetTarget(W.Range, DamageType.Magical); var te = TargetSelector.GetTarget(E.Range, DamageType.Physical); if (useQ && (FirstMenu.GetComboBoxValue("ComboPrio") == 0 && tq.IsValidTarget(Q.Range) && Q.IsReady()) || (FirstMenu.GetComboBoxValue("ComboPrio") == 2)) { Q.Cast(); } if (useW && FirstMenu.GetComboBoxValue("ComboPrio") == 1 && tw.IsValidTarget(250) && W.IsReady() && !_player.HasBuff("rengarpassivebuff")) { W.Cast(); } if (useE && FirstMenu.GetComboBoxValue("ComboPrio") == 2 && (te.IsValidTarget(E.Range) && E.IsReady() && !_player.HasBuff("rengarpassivebuff") && E.GetPrediction(te).HitChance >= Hitch.hitchance(E, FirstMenu))) { E.Cast(te); } if (useEE && !_player.HasBuff("RengarR") && te.IsValidTarget(E.Range) && E.IsReady() && E.GetPrediction(te).HitChance >= Hitch.hitchance(E, FirstMenu) && (FirstMenu.GetComboBoxValue("ComboPrio") == 2 || FirstMenu.GetComboBoxValue("ComboPrio") == 0)) { if (_player.Distance(te) > E.Range + 100f) { E.Cast(te); } } } if (MiscMenu.GetCheckBoxValue("AutoW")) { var HealthW = MiscMenu["AutoWHP"].Cast <Slider>().CurrentValue; if (W.IsReady() && _player.HealthPercent != HealthW && Player.Instance.Mana == 5) { W.Cast(); } } }