public static void Harass() { var target = TargetSelector2.GetTarget(GetCustomRange(), DamageType.Physical); switch ((int)_Player.Mana) { case 5: if (Program.HarassMenu["save5StacksHarass"].Cast <CheckBox>().CurrentValue) { return; } var ferocityMode = Program.HarassMenu["selectedStackedSpellHarass"].Cast <Slider>().CurrentValue; switch (ferocityMode) { case 0: if (Orbwalker.IsAutoAttacking || target == null || !target.IsValidTarget(_Player.GetAutoAttackRange(target)) || !Program.Q.IsReady()) { return; } Program.Q.Cast(); break; case 1: if (!Program.W.IsReady()) { return; } Program.W.Cast(); break; case 2: if (target == null || !Program.E.IsReady()) { return; } Program.E.Cast(target); break; } break; default: if (Program.W.IsReady() && target.IsValidTarget(Program.W.Range) && Program.HarassMenu["wHarass"].Cast <CheckBox>().CurrentValue) { Program.W.Cast(); } if (Program.Q.IsReady() && Program.HarassMenu["qHarass"].Cast <CheckBox>().CurrentValue&& !Orbwalker.IsAutoAttacking && target.IsValidTarget(_Player.GetAutoAttackRange(target))) { Program.Q.Cast(); } if (Program.E.IsReady() && Program.HarassMenu["eHarass"].Cast <CheckBox>().CurrentValue&& target.IsValidTarget(Program.E.Range)) { Program.E.Cast(target); } break; } }
public static void Orbwalk() { if (CanAttack()) { var target = TargetSelector2.GetTarget(ObjectManager.Player.GetAutoAttackRange(), DamageType.Physical); if (target != null) { Player.IssueOrder(GameObjectOrder.AttackUnit, target); _lastAaTick = Environment.TickCount; return; } } if (CanMove()) { Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos); return; } }
public static void Combo() { if (Player.HasBuff("RengarR") && Program.DisableAntiSkills) { var item = _Player.InventoryItems.FirstOrDefault(a => a.Id == ItemId.Youmuus_Ghostblade); if (Program.ComboMenu["useYomuus"].Cast <CheckBox>().CurrentValue&& item != null && item.CanUseItem()) { item.Cast(); } return; } var target = TargetSelector2.GetTarget(GetCustomRange(), DamageType.Physical); switch ((int)_Player.Mana) { case 5: if (Program.ComboMenu["ferocity"].Cast <CheckBox>().CurrentValue) { if (Program.ComboMenu["modeType"].Cast <CheckBox>().CurrentValue) { var healthPercent = Program.ComboMenu["wHealthPercentSlider"].Cast <Slider>().CurrentValue; if (Program.W.IsReady() && _Player.HealthPercent <= healthPercent && Program.ComboMenu["wHealthPercent"].Cast <CheckBox>().CurrentValue) { Program.W.Cast(); } else if (!Orbwalker.IsAutoAttacking && Program.ComboMenu["qInRange"].Cast <CheckBox>().CurrentValue&& Program.Q.IsReady() && target.IsValidTarget(_Player.GetAutoAttackRange(target))) { Program.Q.Cast(); } else if (Program.E.IsReady() && Program.ComboMenu["eOutOfRange"].Cast <CheckBox>().CurrentValue) { Program.E.Cast(target); } } else { var ferocityMode = Program.ComboMenu["selectedStackedSpell"].Cast <Slider>().CurrentValue; switch (ferocityMode) { case 0: if (Orbwalker.IsAutoAttacking || target == null || !target.IsValidTarget(_Player.GetAutoAttackRange(target)) || !Program.Q.IsReady()) { return; } Program.Q.Cast(); break; case 1: if (!Program.W.IsReady()) { return; } Program.W.Cast(); break; case 2: if (target == null || !Program.E.IsReady()) { return; } Program.E.Cast(target); break; } } } break; default: if (Program.W.IsReady() && target.IsValidTarget(Program.W.Range) && Program.ComboMenu["wCombo"].Cast <CheckBox>().CurrentValue) { Program.W.Cast(); return; } if (Program.Q.IsReady() && Program.ComboMenu["qCombo"].Cast <CheckBox>().CurrentValue&& !Orbwalker.IsAutoAttacking && target.IsValidTarget(_Player.GetAutoAttackRange(target))) { Program.Q.Cast(); return; } if (Program.E.IsReady() && Program.ComboMenu["eCombo"].Cast <CheckBox>().CurrentValue&& target.IsValidTarget(Program.E.Range)) { Program.E.Cast(target); return; } break; } }