public static void Auto_Harass() { if (Config.HarassMenu["autokey"].Cast <KeyBind>().CurrentValue&& Player.Instance.ManaPercent >= Config.HarassMenu["automng"].Cast <Slider>().CurrentValue) { if (ObjManager.CountAzirSoldier < Config.HarassMenu["Wunit"].Cast <Slider>().CurrentValue && Config.HarassMenu.Checked("W") && Config.HarassMenu.Checked("Q") && Spells.W.IsReady() && Spells.Q.IsReady()) { var target = TargetSelector.GetTarget(Spells.Q.Range, DamageType.Magical); if (target != null && target.IsValidTarget()) { SpecialVector.WhereCastW(target, Config.HarassMenu.GetValue("Wunit")); } } if (ObjManager.CountAzirSoldier != 0 && Config.HarassMenu.Checked("Q")) { var target = TargetSelector.GetTarget(Spells.Q.Range, DamageType.Magical); if (target != null && target.IsValidTarget() && !target.IsInRange(ObjManager.Soldier_Nearest_Enemy, 375)) { SpecialVector.WhereCastQ(target, Config.HarassMenu.GetValue("Qbonus")); } } } }
public static void OnGapCloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs args) { if (Spells.R.IsReady() && sender != null && sender.IsEnemy && (sender.IsAttackingPlayer || Player.Instance.Distance(args.End) < 100 || args.End.IsInRange(Player.Instance, Spells.R.Range)) && (sender.Spellbook.CastEndTime - Game.Time) * 1000 <= Spells.E.CastDelay && Config.MiscMenu.Checked("gap") && Config.MiscMenu.Checked("gap" + sender.ChampionName)) { switch (Config.MiscMenu["gap.1"].Cast <ComboBox>().CurrentValue) { case 0: { if (args.Type == Gapcloser.GapcloserType.Targeted) { SpecialVector.WhereCastR(sender, SpecialVector.I_want.On_Gapclose, args.End, (int)sender.Spellbook.CastEndTime); } } break; case 1: { SpecialVector.WhereCastR(sender, SpecialVector.I_want.On_Gapclose, args.End, (int)sender.Spellbook.CastEndTime); } break; } } }
public static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e) { var Value = Config.MiscMenu["interrupt.value"].Cast <ComboBox>().CurrentValue; var Danger = Value == 2 ? DangerLevel.High : Value == 1 ? DangerLevel.Medium : Value == 0 ? DangerLevel.Low : DangerLevel.High; if (sender.IsEnemy && Config.MiscMenu.Checked("interrupter") && sender.IsValidTarget(Spells.R.Range - 20) && e.DangerLevel == Danger) { SpecialVector.WhereCastR(sender, SpecialVector.I_want.All); } }
public static void Harass() { if (Player.Instance.ManaPercent >= Config.HarassMenu.GetValue("HrManage")) { if (Config.HarassMenu.Checked("W") && Config.HarassMenu.Checked("Q") && Spells.W.IsReady() && Spells.Q.IsReady()) { var target = TargetSelector.GetTarget(Spells.Q.Range, DamageType.Magical); if (target != null && target.IsValidTarget()) { SpecialVector.WhereCastW(target, Config.HarassMenu.GetValue("Wunit")); } } if (ObjManager.CountAzirSoldier != 0 && Config.HarassMenu.Checked("Q")) { var target = TargetSelector.GetTarget(Spells.Q.Range, DamageType.Magical); if (target != null && target.IsValidTarget() && !target.IsInRange(ObjManager.Soldier_Nearest_Enemy, 375)) { SpecialVector.WhereCastQ(target, Config.HarassMenu.GetValue("Qbonus")); } } } if (ObjManager.CountAzirSoldier > 0 && ObjManager.Soldier_Nearest_Enemy != Vector3.Zero) { var Unit = TargetSelector.SelectedTarget != null && TargetSelector.SelectedTarget.Distance(ObjManager.Soldier_Nearest_Enemy) < 500 ? TargetSelector.SelectedTarget : TargetSelector.GetTarget(425, DamageType.Magical, ObjManager.Soldier_Nearest_Enemy); if (Unit.IsValid()) { SpecialVector.AttackOtherObject(); } } }
public static void ManyThingInHere(EventArgs args) { if (Game.Time > Time + 1f) { LastMyPos = Player.Instance.Position; if (Spells.Q.IsReady() && Spells.W.IsReady() && Spells.E.IsReady()) { All_Basic_Is_Ready = true; } else { All_Basic_Is_Ready = false; } Time = Game.Time; } if (Game.Time > Insec.LastSetTime + 14f) { Insec.PositionSelected = new Vector3(); Insec.AllySelected = null; Insec.PositionGotoSelected = new Vector3(); } if (Config.Insec.Checked("normalInsec", false) || Config.Insec.Checked("godInsec", false)) { var Value = Config.Insec.Checked("normalInsec", false) ? Config.Insec.GetValue("normal.1", false) : Config.Insec.GetValue("god.1", false); var Target = TargetSelector.GetTarget(Spells.R.Range, DamageType.Mixed); if (Target != null) { switch (Value) { case 0: { SpecialVector.WhereCastR(Target, SpecialVector.I_want.Cursor); } break; case 1: { SpecialVector.WhereCastR(Target, SpecialVector.I_want.Turret); } break; case 2: { SpecialVector.WhereCastR(Target, SpecialVector.I_want.Ally); } break; case 3: { if (Insec.PositionSelected != new Vector3()) { SpecialVector.WhereCastR(Target, Insec.PositionSelected); } if (Insec.AllySelected != null) { SpecialVector.WhereCastR(Target, Insec.AllySelected.Position); } } break; } } } }
public static void KillSteal(EventArgs args) { if (Spells.Q.IsReady() && Config.MiscMenu.Checked("Qks")) { var target = TargetSelector.GetTarget(EntityManager.Heroes.Enemies.Where(t => t != null && t.IsValidTarget() && Spells.Q.IsInRange(t) && t.Health <= Damages.QDamage(t)), DamageType.Magical); if (target != null) { var pred = Spells.Q.GetPrediction(target); if (ObjManager.CountAzirSoldier == 0 && Spells.W.IsReady() && Config.MiscMenu.Checked("Wks")) { SpecialVector.WhereCastW(target, 1); } if (ObjManager.CountAzirSoldier > 0) { Spells.Q.Cast(pred.UnitPosition); } } } if (Spells.W.IsReady() && Config.MiscMenu.Checked("Wks")) { var target = TargetSelector.GetTarget(EntityManager.Heroes.Enemies.Where(t => t != null && t.IsValidTarget() && Spells.W.IsInRange(t) && t.Health <= Damages.WDamage(t)), DamageType.Magical); if (target != null) { SpecialVector.WhereCastW(target, 1); Orbwalker.OrbwalkTo(Game.CursorPos); } } if (Spells.E.IsReady() && Config.MiscMenu.Checked("Eks")) { var target = TargetSelector.GetTarget(EntityManager.Heroes.Enemies.Where(t => t != null && t.IsValidTarget() && Spells.E.IsInRange(t) && t.Health <= Damages.EDamage(t)), DamageType.Magical); if (target != null && ObjManager.CountAzirSoldier > 0) { foreach (var soldier in Orbwalker.AzirSoldiers) { if (SpecialVector.Between(target, soldier.Position)) { Spells.E.Cast(soldier); } } } } if (Spells.R.IsReady() && Config.MiscMenu.Checked("Rks")) { var target = TargetSelector.GetTarget(EntityManager.Heroes.Enemies.Where(t => t != null && t.IsValidTarget() && Spells.R.IsInRange(t) && t.Health <= Damages.RDamage(t)), DamageType.Magical); if (target != null) { Spells.R.Cast(target); } } }
public static void Combo() { if (Config.ComboMenu.Checked("W") && Spells.W.IsReady()) { var target = TargetSelector.GetTarget(Spells.Q.Range, DamageType.Magical); if (target != null) { SpecialVector.WhereCastW(target, Config.ComboMenu.GetValue("Wunit")); } } if (ObjManager.CountAzirSoldier != 0 && Config.ComboMenu.Checked("Q") && Spells.Q.IsReady()) { var target = TargetSelector.GetTarget(Spells.Q.Range, DamageType.Magical); if (target != null) { SpecialVector.WhereCastQ(target, Config.ComboMenu.GetValue("Qbonus")); } } if (Config.ComboMenu.Checked("E") && Spells.E.IsReady()) { var target = TargetSelector.GetTarget(Spells.E.Range, DamageType.Magical); var priority = TargetSelector.GetPriority(target); if (target != null && !target.IsUnderHisturret() && Config.ComboMenu.Checked(target.ChampionName)) { if (priority >= 4 && target.IsValidTarget() && !Extension.Unkillable(target) && !Extension.HasSpellShield(target)) { if (target.CountEnemiesInRange(1300) <= Config.ComboMenu["Edanger"].Cast <Slider>().CurrentValue) { if (target.Health <= (Damages.Damagefromspell (target, Spells.Q.IsReady(), Spells.W.IsReady() || target.Distance(ObjManager.Soldier_Nearest_Enemy) > 375, Spells.E.IsReady(), Spells.R.IsReady())) + Damages.WDamage(target) * 4) { foreach (var soldier in Orbwalker.AzirSoldiers) { if (SpecialVector.Between(target, soldier.Position)) { Spells.E.Cast(soldier); } } } } } if (priority < 3 && target.IsValidTarget() && !Extension.Unkillable(target) && !Extension.HasSpellShield(target)) { if (target.CountEnemiesInRange(1300) <= Config.ComboMenu["Edanger"].Cast <Slider>().CurrentValue + 1) { if (target.Health <= (Damages.Damagefromspell (target, Spells.Q.IsReady(), Spells.W.IsReady() || target.Distance(ObjManager.Soldier_Nearest_Enemy) > 375, Spells.E.IsReady(), Spells.R.IsReady())) + Damages.WDamage(target) * 2) { foreach (var soldier in Orbwalker.AzirSoldiers) { if (SpecialVector.Between(target, soldier.Position)) { Spells.E.Cast(soldier); } } } } } } } if (Config.ComboMenu.Checked("R") && Spells.R.IsReady()) { var target = TargetSelector.GetTarget(Spells.R.Range - 20, DamageType.Magical); if (target != null && Player.Instance.CountEnemiesInRange(Spells.R.Range) >= Config.ComboMenu.GetValue("Rhit") && target.IsValidTarget() && target.HealthPercent <= 70 && Spells.Q.IsReady()) { SpecialVector.WhereCastR(target, SpecialVector.I_want.All); } } if (ObjManager.Soldier_Nearest_Enemy != Vector3.Zero) { var target = TargetSelector.SelectedTarget != null && TargetSelector.SelectedTarget.Distance(ObjManager.Soldier_Nearest_Enemy) < 500 ? TargetSelector.SelectedTarget : TargetSelector.GetTarget(425, DamageType.Magical, ObjManager.Soldier_Nearest_Enemy); if (target.IsValid()) { SpecialVector.AttackOtherObject(); } } //if (ObjManager.All_Basic_Is_Ready) //{ // var target = TargetSelector.GetTarget(1000, DamageType.Magical); // if (target != null && target.IsValid && target.HealthPercent <= 15 // && !target.IsUnderHisturret() && target.CountEnemiesInRange(875) <= 1 // && Config.ComboMenu.Checked(target.ChampionName) // && Config.ComboMenu.Checked("Q") // && Config.ComboMenu.Checked("W") // && Config.ComboMenu.Checked("E")) // { // var time = (Player.Instance.Distance(target) / Spells.E.Speed) * (750 - Game.Ping); // var pred = Prediction.Position.PredictUnitPosition(target, (int)time).To3D(); // Flee(pred); // } //} }