private void Gapcloser_OnGapCloser(ActiveGapcloser gapcloser) { if (!Enable) { return; } if (gapcloser.Sender.IsEnemy && E.IsReady() && autogapinter) { if (gapcloser.Sender.IsValidTarget(E.Range)) { E.Cast(gapcloser.Sender.Position); } if (StunAbleOrb.Any()) { var i = StunAbleOrb.First(x => x.Key.NetworkId == gapcloser.Sender.NetworkId); if (i.Value != null) { E.Cast(i.Value.Position.To2D()); } } } }
private void InterruptableSpell_OnInterruptableTarget(Obj_AI_Base Sender, Interrupter2.InterruptableTargetEventArgs args) { if (!Enable) { return; } if (Sender.IsEnemy && E.IsReady() && autogapinter) { if (Sender.IsValidTarget(E.Range)) { E.Cast(Sender.Position); } if (StunAbleOrb.Any()) { var i = StunAbleOrb.First(x => x.Key.NetworkId == Sender.NetworkId); if (i.Value != null) { E.Cast(i.Value.Position.To2D()); } } } }
private void Gapcloser_OnGapCloser(object sender, Gapcloser.GapCloserEventArgs e) { if (!Enable) { return; } if (e.Sender.IsEnemy && E.IsReady() && autogapinter) { if (e.Sender.IsValidTarget(E.Range)) { E.Cast(e.Sender.Position); } if (StunAbleOrb.Any()) { var i = StunAbleOrb.First(x => x.Key.NetworkId == e.Sender.NetworkId); if (i.Value != null) { E.Cast(i.Value.Position.ToVector2()); } } } }
private static void Combo() { // Use R if (R.IsReady() && combor) { foreach ( var target in HeroManager.Enemies.Where( x => castRtarget(x) && x.IsValidTarget(W.Range) && !x.IsZombie && SyndraHalfDamage(x) < x.Health && SyndraDamage(x) > x.Health)) { R.Cast(target); } } // final cases; //else if (Utils.GameTimeTickCount > ecount) { { if (R.IsReady() && E.IsReady() && combor && comboe) { var target = HeroManager.Enemies.Where(x => castRtarget(x) && x.IsValidTarget() && !x.IsZombie) .OrderByDescending(x => x.Distance(Player.Position)) .LastOrDefault(); if (target.IsValidTarget(R.Range) && !target.IsZombie) { var count = target.CountEnemiesInRange(400); if (count >= 3) { R.Cast(target); Q.Cast(target); LeagueSharp.Common.Utility.DelayAction.Add(500, () => E.Cast(target.Position)); ecount = Utils.GameTimeTickCount + 510; return; } } } } { if (Q.IsReady() && comboq) { var target = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical); if (target.IsValidTarget() && !target.IsZombie) { var x = Q.GetPrediction(target).CastPosition; if (Q.Cast(target) == Spell.CastStates.SuccessfullyCasted && E.IsReady() && x.Distance(Player.Position) <= E.Range - 100 && comboe) { LeagueSharp.Common.Utility.DelayAction.Add(250, () => E.Cast(x)); ecount = Utils.GameTimeTickCount + 350; } } } if (E.IsReady() && StunAbleOrb.Any() && Utils.GameTimeTickCount >= wcount + 500 && comboe) { var targetE = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Magical); var Orb = StunAbleOrb.Any(x => x.Key == targetE) ? StunAbleOrb.First(x => x.Key == targetE).Value : StunAbleOrb.First().Value; if (Orb != null) { if (E.Cast(Orb.Position.To2D())) { ecount = Utils.GameTimeTickCount + 100; } } } if (W.IsReady() && combow) { foreach (var enemy in HeroManager.Enemies.Where(x => x.IsValidTarget(W.Range + W.Width) && W.GetPrediction(x).Hitchance >= HitChance.High)) { UseW(enemy, enemy); } } if (Utils.GameTimeTickCount > ecount && E.IsReady() && Q.IsReady() && Utils.GameTimeTickCount >= wcount + 500 && comboqe && Player.Mana >= E.Instance.SData.Mana + Q.Instance.SData.Mana) { var target = HeroManager.Enemies.FirstOrDefault( x => x.IsValidTarget() && !x.IsZombie && CanEQtarget(x)); if (target.IsValidTarget() && !target.IsZombie) { var pos = PositionEQtarget(target); if (pos.IsValid()) { if (Q.Cast(pos)) { if (pos.Distance(Player.Position.To2D()) < E.Range - 200) { LeagueSharp.Common.Utility.DelayAction.Add(250, () => E.Cast(pos)); ecount = Utils.GameTimeTickCount + 350; } else { LeagueSharp.Common.Utility.DelayAction.Add(150, () => E.Cast(pos)); ecount = Utils.GameTimeTickCount + 250; } } } } } } } }
private static void Harass() { if (Utils.GameTimeTickCount > ecount) { if (Q.IsReady() && harassq) { var target = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical); if (target.IsValidTarget() && !target.IsZombie) { if (Q.Cast(target) == Spell.CastStates.SuccessfullyCasted) { ecount = Utils.GameTimeTickCount + 100; } } } if (E.IsReady() && StunAbleOrb.Any() && Utils.GameTimeTickCount >= wcount + 500 && harassE) { var targetE = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Magical); var Orb = StunAbleOrb.Any(x => x.Key == targetE) ? StunAbleOrb.First(x => x.Key == targetE).Value : StunAbleOrb.First().Value; if (Orb != null) { if (E.Cast(Orb.Position.To2D())) { ecount = Utils.GameTimeTickCount + 100; } } } if (W.Instance.Name != "SyndraW" && harassw) { var target = TargetSelector.GetTarget(W.Range, TargetSelector.DamageType.Magical); if (target.IsValidTarget() && !target.IsZombie) { if (Wobject() != null && Utils.GameTimeTickCount >= w1cast + 250) { W.UpdateSourcePosition(Wobject().Position, Player.Position); W.Cast(target); } } } if (W.IsReady() && Utils.GameTimeTickCount >= ecount + 500 && harassw) { var target = TargetSelector.GetTarget(W.Range, TargetSelector.DamageType.Magical); if (target.IsValidTarget() && !target.IsZombie) { if (W.Instance.Name != "SyndraW") { if (Wobject() != null && Utils.GameTimeTickCount >= w1cast + 250) { W.UpdateSourcePosition(Wobject().Position, Player.Position); W.Cast(target); } } else { if (PickableOrb != null || PickableMinion != null) { if (W.Cast(PickableOrb != null ? PickableOrb.Position.To2D() : PickableMinion.Position.To2D())) { wcount = Utils.GameTimeTickCount + 100; ecount = Utils.GameTimeTickCount + 100; } } } } } } }
private static void Combo() { // Use R if (R.IsReady() && combor) { foreach ( var target in GameObjects.EnemyHeroes.Where( x => castRtarget(x) && x.IsValidTarget(W.Range) && !x.IsZombie && SyndraHalfDamage(x) < x.Health && SyndraDamage(x) > x.Health)) { R.Cast(target); } } // final cases; //else if (Variables.TickCount > ecount) { { if (R.IsReady() && E.IsReady() && combor && comboe) { var target = GameObjects.EnemyHeroes.Where(x => castRtarget(x) && x.IsValidTarget() && !x.IsZombie) .OrderByDescending(x => x.Distance(Player.Position)) .LastOrDefault(); if (target.IsValidTarget(R.Range) && !target.IsZombie) { var count = target.CountEnemiesInRange(400); if (count >= 3) { R.Cast(target); Q.Cast(Q.GetPrediction(target).UnitPosition.ToVector2()); DelayAction.Add(1000, () => E.Cast(target.Position)); ecount = Variables.TickCount + 1010; return; } } } } { if (Q.IsReady() && comboq) { var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical); if (target.IsValidTarget() && !target.IsZombie) { var x = Q.GetPrediction(target).UnitPosition.ToVector2(); Q.Cast(x); if (E.IsReady() && x.Distance(Player.Position) <= E.Range - 100 && comboe) { DelayAction.Add(250, () => E.Cast(x)); ecount = Variables.TickCount + 350; } } } if (E.IsReady() && StunAbleOrb.Any() && Variables.TickCount >= wcount + 500 && comboe) { var targetE = TargetSelector.GetTarget(E.Range, DamageType.Magical); var Orb = StunAbleOrb.Any(x => x.Key == targetE) ? StunAbleOrb.First(x => x.Key == targetE).Value : StunAbleOrb.First().Value; if (Orb != null) { E.Cast(Orb.Position.ToVector2()); ecount = Variables.TickCount + 100; } } if (W.Instance.Name != "SyndraW" && combow) { var target = TargetSelector.GetTarget(W.Range, DamageType.Magical); if (target.IsValidTarget() && !target.IsZombie) { if (Wobject() != null && Variables.TickCount >= w1cast + 250) { W.UpdateSourcePosition(Wobject().Position, Player.Position); W.Cast(target); } } } if (W.IsReady() && Variables.TickCount >= ecount + 500 && combow) { var target = TargetSelector.GetTarget(W.Range, DamageType.Magical); if (target.IsValidTarget() && !target.IsZombie) { if (W.Instance.Name != "SyndraW") { if (Wobject() != null && Variables.TickCount >= w1cast + 250) { W.UpdateSourcePosition(Wobject().Position, Player.Position); W.Cast(W.GetPrediction(target).UnitPosition.ToVector2()); } } else { if (PickableOrb != null || PickableMinion != null) { W.Cast(PickableOrb != null ? PickableOrb.Position.ToVector2() : PickableMinion.Position.ToVector2()); wcount = Variables.TickCount + 100; ecount = Variables.TickCount + 100; } } } } if (Variables.TickCount > ecount && E.IsReady() && Q.IsReady() && Variables.TickCount >= wcount + 500 && comboqe && Player.Mana >= E.Instance.ManaCost + Q.Instance.ManaCost) { var target = GameObjects.EnemyHeroes.FirstOrDefault( x => x.IsValidTarget() && !x.IsZombie && CanEQtarget(x)); if (target.IsValidTarget() && !target.IsZombie) { var pos = PositionEQtarget(target); if (pos.IsValid()) { Q.Cast(pos); if (pos.Distance(Player.Position.ToVector2()) < E.Range - 200) { DelayAction.Add(250, () => E.Cast(pos)); ecount = Variables.TickCount + 350; } else { DelayAction.Add(150, () => E.Cast(pos)); ecount = Variables.TickCount + 250; } } } } } } }
private static void Harass() { if (Variables.TickCount > ecount) { if (Q.IsReady() && harassq) { var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical); if (target.IsValidTarget() && !target.IsZombie) { Q.Cast(Q.GetPrediction(target).UnitPosition.ToVector2()); ecount = Variables.TickCount + 100; } } if (E.IsReady() && StunAbleOrb.Any() && Variables.TickCount >= wcount + 500 && harassE) { var targetE = TargetSelector.GetTarget(E.Range, DamageType.Magical); var Orb = StunAbleOrb.Any(x => x.Key == targetE) ? StunAbleOrb.First(x => x.Key == targetE).Value : StunAbleOrb.First().Value; if (Orb != null) { E.Cast(Orb.Position.ToVector2()); ecount = Variables.TickCount + 100; } } if (W.Instance.Name != "SyndraW" && harassw) { var target = TargetSelector.GetTarget(W.Range, DamageType.Magical); if (target.IsValidTarget() && !target.IsZombie) { if (Wobject() != null && Variables.TickCount >= w1cast + 250) { W.UpdateSourcePosition(Wobject().Position, Player.Position); W.Cast(target); } } } if (W.IsReady() && Variables.TickCount >= ecount + 500 && harassw) { var target = TargetSelector.GetTarget(W.Range, DamageType.Magical); if (target.IsValidTarget() && !target.IsZombie) { if (W.Instance.Name != "SyndraW") { if (Wobject() != null && Variables.TickCount >= w1cast + 250) { W.UpdateSourcePosition(Wobject().Position, Player.Position); W.Cast(W.GetPrediction(target).UnitPosition.ToVector2()); } } else { if (PickableOrb != null || PickableMinion != null) { W.Cast(PickableOrb != null ? PickableOrb.Position.ToVector2() : PickableMinion.Position.ToVector2()); wcount = Variables.TickCount + 100; ecount = Variables.TickCount + 100; } } } } } }