/*Interrupter*/ /*AntiGapCloser*/ private static void AntiGapCloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs gap) { if (_misc["Wgap"].Cast <CheckBox>().CurrentValue&& _w.IsReady() && gap.End.Distance(Sona) <= 250) { _w.Cast(); } if (_misc["Egap"].Cast <CheckBox>().CurrentValue&& _e.IsReady() && gap.End.Distance(Sona) <= 250) { _e.Cast(); } if (!_misc["Rgap"].Cast <CheckBox>().CurrentValue || !sender.IsEnemy || !sender.IsValidTarget(1000) || !(gap.End.Distance(Sona) <= 250)) { return; } if (_r.IsReady() && _r.IsInRange(sender.Position)) { _r.Cast(sender.Position); } }
public static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if (sender.IsMe || sender.IsAlly || sender == null) { return; } if (getCheckBoxItem(miscMenu, "wgap") && SpellManager.W.IsReady()) { if (sender.IsValidTarget(SpellManager.W.Range)) { if (!sender.ServerPosition.UnderTurret(true)) { if (!fightingLogic || getCheckBoxItem(comboMenu, "w" + sender.ChampionName) || fightingLogic && !wrektAny()) { SpellManager.W.Cast(); } } } } }
public override void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if (Player.IsDead || !sender.IsEnemy || !sender.IsValidTarget(W.Range) || !misc.IsActive("gapcloser")) { return; } if ((Player.HasBuff("pyromania_particle") || ((Player.GetBuffCount("pyromania") >= 3 && Q.IsReady() && W.IsReady())))) { if (W.IsReady()) { W.Cast(sender); } if (Q.IsReady()) { Q.Cast(sender); } } return; }
private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { try { if (sender == null || sender.IsAlly || !Value.Use("misc.w.gapcloser")) { return; } if (_w.IsReady() && _w.IsInRange(sender)) { _w.Cast(sender); } } catch (Exception a) { Console.WriteLine(a); Chat.Print( "<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code Gapcloser)</font>"); } }
private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { var GapcloserQ = miscMenu["GapcloserQ"].Cast <CheckBox>().CurrentValue; if (HasRBuff()) { return; } if (!e.Sender.IsValidTarget()) { return; } if (!GapcloserQ) { return; } Q.Cast(e.Sender); }
private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if (sender.IsEnemy && sender.IsValid) { if (EliseMenu.CheckBox(EliseMenu.Misc, "Gapcloser")) { if (CheckForm()) { if (E.IsReady()) { var EPred = E.GetPrediction(sender); if (EPred.HitChancePercent >= EliseMenu.Slider(EliseMenu.Principal, "EPred")) { E.Cast(EPred.UnitPosition); } } } } } }
private static void OnGapClose(AIHeroClient Sender, Gapcloser.GapcloserEventArgs args) { if (!menuIni.Get <CheckBox>("Saver").CurrentValue || Sender == null) { return; } if (Saver["allywgapclose"].Cast <CheckBox>().CurrentValue&& Sender.IsAlly && Sender.IsValidTarget(W.Range)) { W.Cast(Sender); } if (Saver["Enemywgapclose"].Cast <CheckBox>().CurrentValue&& Sender.IsEnemy && Sender.IsValidTarget(W.Range)) { W.Cast(Sender); } if (Saver.Get <CheckBox>("gapcloserR").CurrentValue) { if (R.IsReady()) { foreach (var ally in EntityManager.Heroes.Allies) { if (ally.IsValidTarget(R.Range) && !Saver["DontUlt" + ally.BaseSkinName].Cast <CheckBox>().CurrentValue&& Sender.IsEnemy) { if (ally.Distance(Sender, true) < 300 * 300 && ally.HealthPercent <= 25) { R.Cast(ally); } } } if (Player.Distance(Sender, true) < 300 * 300 && Sender.IsEnemy && Player.HealthPercent <= 20) { R.Cast(Player); } } } }
private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if (!sender.IsEnemy || sender == null || e == null || IsCastingR) { return; } if (Misc["Qgap"].Cast <CheckBox>().CurrentValue&& (e.End.IsInRange(Player.Instance, Q.Range) || sender.IsValidTarget(Q.Range))) { Q.Cast(sender); } if (Misc["blockR"].Cast <CheckBox>().CurrentValue&& Player.Instance.IsUnderEnemyturret()) { return; } if (Misc["Rgap"].Cast <CheckBox>().CurrentValue&& (e.End.IsInRange(Player.Instance, R.Range) || sender.IsValidTarget(R.Range))) { R.Cast(sender); } }
private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if (!sender.IsEnemy || !SpellFactory.Q.IsReady()) { return; } if (Config.ReturnBoolMenu("Protector", "GapClose") && sender.IsValidTarget(SpellFactory.Q.Range)) { SpellFactory.Q.Cast(sender); } else if (Config.ReturnBoolMenu("Protector", "GapCloseAllies")) { foreach (var ally in EntityManager.Heroes.Allies.Where( x => x.IsAlly && Program._Player.IsInRange(x, SpellFactory.Q.Range))) { if (sender.IsValidTarget(SpellFactory.Q.Range) && ally.IsAlly) { SpellFactory.Q.Cast(sender); } } } }
private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { // Chat.Print(sender.ChampionName); if (MiscMenu["EG"].Cast <CheckBox>().CurrentValue) { if (sender.Distance(player, false) <= E.Range) { if (E.IsReady() && sender.IsEnemy) { E.Cast(sender.Position); } } } /* if (MiscMenu["QG"].Cast<CheckBox>().CurrentValue) * { * if (Ally.Distance(e.End, true) > Ally.Distance(e.Start, true)) * { * Q.Cast(sender); * } * }*/ }
internal static void Gapcloser_OnGapCloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs gapcloser) { if (Program.ModesMenu3["AntiGapW"].Cast <CheckBox>().CurrentValue) { string[] herogapcloser = { "Braum", "Ekko", "Elise", "Fiora", "Kindred", "Lucian", "Yi", "Nidalee", "Quinn", "Riven", "Shaco", "Sion", "Vayne", "Yasuo", "Graves", "Azir", "Gnar", "Irelia", "Kalista" }; if (sender.IsEnemy && sender.GetAutoAttackRange() >= ObjectManager.Player.Distance(gapcloser.End) && !herogapcloser.Any(sender.ChampionName.Contains)) { var diffGapCloser = gapcloser.End - gapcloser.Start; W.Cast(ObjectManager.Player.ServerPosition + diffGapCloser); } } if (Program.ModesMenu3["AntiGapR"].Cast <CheckBox>().CurrentValue) { if (gapcloser.End.Distance(ObjectManager.Player.Position) <= 200 && gapcloser.Sender.IsValidTarget(R.Range)) { R.Cast(gapcloser.Sender); } } }
private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if (!sender.IsEnemy || sender == null || e == null || IsCastingR) { return; } if (MiscMenu.checkbox("Qgap") && (e.End.IsInRange(user, Q.Range) || sender.IsKillable(Q.Range))) { Q.Cast(sender, Q.hitchance(Menuini)); } if (MiscMenu.checkbox("blockR") && user.IsUnderEnemyturret()) { return; } if (MiscMenu.checkbox("Rgap") && (e.End.IsInRange(user, R.Range) || sender.IsKillable(R.Range))) { R.Cast(sender); } }
public static void OnGapCloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if (!sender.IsValidTarget() || sender.IsAlly) { return; } if (Init.MiscMenu["gapcloserE"].Cast <CheckBox>().CurrentValue) { var direction = (e.End + Player.ServerPosition).To2D().Normalized(); for (var step = 0f; step < 360; step += 30) { for (var a = 200; a < 450; a += 50) { var currentAngle = step * (float)Math.PI / 90; var currentCheckPoint = Player.ServerPosition.To2D() + a * direction.Rotated(currentAngle); if (!Helpers.IsSafePosition((Vector3)currentCheckPoint) || NavMesh.GetCollisionFlags(currentCheckPoint).HasFlag(CollisionFlags.Wall) || NavMesh.GetCollisionFlags(currentCheckPoint).HasFlag(CollisionFlags.Building)) { continue; } { Spells.E.Cast((Vector3)currentCheckPoint); } } } } if (Init.MiscMenu["gapcloserW"].Cast <CheckBox>().CurrentValue&& Spells.W.IsReady() && Player.Distance(e.End) <= Spells.W.Range) { Spells.W.Cast(e.End); } }
public static void Gapcloser_OnGapCloser(AIHeroClient who, Gapcloser.GapcloserEventArgs e) { if (Config.MiscMenu["useEAG"].Cast <CheckBox>().CurrentValue && who.IsEnemy && e.End.Distance(ObjectManager.Player) < 200) { Spells.E.Cast(); } if (Config.MiscMenu["useWAG"].Cast <CheckBox>().CurrentValue && who.IsEnemy && e.End.Distance(ObjectManager.Player) < 200) { Spells.W.Cast(); } if (Config.MiscMenu["useQAG"].Cast <CheckBox>().CurrentValue && who.IsEnemy && e.End.Distance(ObjectManager.Player) < 200) { Spells.Q.Cast(e.End); } }
private static void Gapcloser_OnGapCloser(AIHeroClient target, Gapcloser.GapcloserEventArgs args) { if (!MiscMenu.GetCheckBoxValue("antiGapDash") || target.IsMe) { return; } // Only trigger if target is enemy, within AA range and in gapcloser list if (!target.IsEnemy || !args.End.WithinRange(target.GetEffectiveRange()) || DangerousGapClosers.Any(target.ChampionName.Contains)) { return; } // Predict best flee position var predictedPosition = Logic.Dash.Flee(target).Position; // Flee if E is ready and position is good if (E.IsReady() && predictedPosition != Self.ServerPosition) { Player.CastSpell(SpellSlot.E, predictedPosition); } }
private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if (sender.IsMe || sender.IsAlly || sender == null) { return; } if (!RivenMenu.CheckBox(RivenMenu.Misc, "Gapcloser")) { return; } if (RivenMenu.CheckBox(RivenMenu.Misc, "GapcloserW")) { if (sender.IsValidTarget(W.Range)) { if (W.IsReady()) { W.Cast(); } } } }
private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if (sender.IsAlly || !SpellFactory.W.IsReady()) { return; } if (Config.ReturnBoolMenu("Protector", "GapClose") && sender.IsValidTarget(SpellFactory.W.Range)) { SpellFactory.W.Cast(sender); //Console.WriteLine("(Me) Gapclose Prevented on Target: " + sender.ChampionName); } else if (Config.ReturnBoolMenu("Protector", "GapCloseAllies")) { foreach (var ally in EntityManager.Heroes.Allies.Where(x => x.IsAlly && Program._Player.IsInRange(x, SpellFactory.W.Range))) { if (sender.IsValidTarget(SpellFactory.W.Range)) { SpellFactory.W.Cast(sender); // Console.WriteLine("(Ally) Gapclose Prevented on Target: " + sender.ChampionName); } } } }
private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if (sender.IsValidTarget() && sender.IsEnemy) { if (Util.MyHero.Distance(e.Start, true) < Util.MyHero.Distance(e.SenderMousePos, true)) { if (MenuManager.GetSubMenu("Automatic").CheckBox("W.Spells")) { SpellManager.CastW(sender); } } else { if (Util.MyHero.Distance(e.SenderMousePos, true) < (sender.GetAutoAttackRange(Util.MyHero) * 1.5f).Pow()) { ShouldWaitTime = Core.GameTickCount; } if (MenuManager.GetSubMenu("Automatic").CheckBox("E.Antigapcloser")) { SpellManager.E.Cast(e.End); } } } }
private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if (sender.IsValidTarget() && sender.IsEnemy) { if (Util.MyHero.Distance(e.Start, true) < Util.MyHero.Distance(e.SenderMousePos, true)) { if (MenuManager.Menu.GetCheckBoxValue("W.Spells")) { SpellManager.CastW(sender); } } else { if (Util.MyHero.Distance(e.SenderMousePos, true) < (sender.GetAutoAttackRange(Util.MyHero) * 1.5f).Pow()) { ShouldWaitTime = Core.GameTickCount; } if (MenuManager.Menu.GetCheckBoxValue("E.Antigapcloser") && MenuManager.AntiGapcloserMenu != null && MenuManager.AntiGapcloserHashSet.Contains(sender.ChampionName + e.Slot) && MenuManager.AntiGapcloserMenu.GetCheckBoxValue(sender.ChampionName + e.Slot)) { SpellManager.E.Cast(e.End); } } } }
/// <summary> /// On Gapcloser /// </summary> /// <param name="sender">The Sender</param> /// <param name="args">The Args</param> private void OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs args) { try { if (!args.Sender.IsValidTarget() || args.Sender.Type != GameObjectType.AIHeroClient || !Config.Misc.GetBool("E.Gap") || !args.Sender.IsEnemy || Extensions.Player.IsDead) { return; } if (E.IsReady() && args.Sender.IsMelee && Extensions.Player.Distance(args.End) <= 350f) { E.Cast(Extensions.Player.ServerPosition.Extend(args.Sender.ServerPosition, -E.Range).To3D()); } } catch (Exception e) { Logging.AddEntry(LoggingEntryType.Error, "@Events.cs: Can't run OnGapcloser - {0}", e); throw; } }
/// <summary> /// Called when Sender can be Gapclosed /// </summary> /// <param name="sender">The Victim</param> /// <param name="e">The Spell Information</param> private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if (sender == null || sender.IsAlly) { return; } if (GapcloserMenu["useQ"].Cast <CheckBox>().CurrentValue) { if (Q.IsInRange(sender) && Q.IsReady()) { var pred = Q.GetPrediction(sender); if (pred.HitChance >= GetHitChance()) { Q.Cast(pred.CastPosition); } } } if (!GapcloserMenu["useE"].Cast <CheckBox>().CurrentValue) { return; } if (!E.IsInRange(sender) || !E.IsReady()) { return; } var ePrediction = E.GetPrediction(sender); if (ePrediction.HitChance >= GetHitChance()) { E.Cast(ePrediction.CastPosition); } }
private static void OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if (!sender.IsEnemy || !Config.Settings.AntiGapcloser.AntiGap || Player.Instance.IsRecalling()) { return; } foreach ( var ally in EntityManager.Heroes.Allies.Where(ally => sender.IsFacing(ally) && Q.IsInRange(sender.Position))) { if (Config.Settings.Humanizer.QCastDelayEnabled) { Core.DelayAction(() => { Q.Cast(Q.GetPrediction(sender).CastPosition); }, Config.Settings.Humanizer.QRndmDelay ? new Random().Next(250, Config.Settings.Humanizer.QCastDelay) : Config.Settings.Humanizer.QCastDelay); } else { Q.Cast(Q.GetPrediction(sender).CastPosition); } } }
private static void AntiGapCloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { try { if (!e.Sender.IsValidTarget() || !Value.Use("misc.e.gapcloser") || e.Sender.Type != Player.Instance.Type || !e.Sender.IsEnemy || Player.Instance.ManaPercent <= Value.Get("misc.e.gapcloser.mana")) return; if (_e.IsReady() && _e.IsInRange(sender) && Value.Use("misc.e.gapcloser")) { var pred = _e.GetPrediction(sender); _e.Cast(pred.CastPosition); } } catch (Exception a) { Console.WriteLine(a); Chat.Print( "<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code ANTIGAP)</font>"); } }
protected override void OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs args) { return; }
private static void GapcloserOnOnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs gapcloserEventArgs) { }
public virtual void OnGapCloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if(sender.IsAlly) return; }
private static void OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { throw new NotImplementedException(); }
private static void OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { //Desenvolvimento }
private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if (sender.IsValidTarget() && sender.IsEnemy) { } }
public virtual void OnGapCloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { throw new NotImplementedException(); }