Ejemplo n.º 1
0
        // AntiGap

        private static void Gapcloser_OnGapCloser(AIHeroClient sender, Gapcloser.GapcloserArgs args)
        {
            if (Misc["antiGap"].GetValue <MenuBool>().Enabled&& sender.IsEnemy && sender.Distance(_Player.Position) <= 325 && Q.IsReady())
            {
                Q.Cast(sender);
            }
        }
Ejemplo n.º 2
0
 private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserArgs e)
 {
     if (Misc["AntiGap"].GetValue <MenuBool>().Enabled&& sender.IsEnemy && sender.Distance(_Player) < 300)
     {
         E.Cast(sender.Position);
     }
 }
Ejemplo n.º 3
0
        private static void OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserArgs args)
        {
            if (ObjectManager.Player.IsDead || ObjectManager.Player.IsRecalling())
            {
                return;
            }

            if (MenuGUI.IsChatOpen || MenuGUI.IsShopOpen)
            {
                return;
            }
            if (!autoGap.Enabled)
            {
                return;
            }
            try
            {
                if (w.IsReady() && sender.IsValidTarget(w.Range))
                {
                    w.SPredictionCast(sender, HitChance.Medium);
                }
                if (q.IsReady() && sender.IsValidTarget(q.Range))
                {
                    q.SPredictionCast(sender, HitChance.Medium);
                }
            }
            catch
            {
                //error
            }
        }
Ejemplo n.º 4
0
        private static void StopDashingAtMeBro(AIHeroClient sender, Gapcloser.GapcloserArgs args)
        {
            var UseShotgunAntiGapCloser = Config["combat"]["Use.ShotgunAntiGapCloser"].GetValue <MenuBool>().Enabled;
            var UseTrapAntiGapCloser    = Config["combat"]["Use.TrapAntiGapCloser"].GetValue <MenuBool>().Enabled;

            if (ObjectManager.Player.IsDead || sender == null)
            {
                return;
            }

            var targetpos = Drawing.WorldToScreen(sender.Position);

            if (sender.IsValidTarget(Shotgun.Range))
            {
                Render.Circle.DrawCircle(sender.Position, sender.BoundingRadius,
                                         System.Drawing.Color.DeepPink);
                Drawing.DrawText(targetpos[0] - 40, targetpos[1] + 20, System.Drawing.Color.DodgerBlue, "GAPCLOSER");
            }

            if (Shotgun.IsReady() && sender.IsValidTarget(Shotgun.Range) && !Mounted() && UseShotgunAntiGapCloser && args.EndPosition.Distance(ObjectManager.Player.Position) < 350)
            {
                Shotgun.Cast(sender);
            }

            if (Trap.IsReady() && sender.IsValidTarget(Trap.Range) && Mounted() && UseTrapAntiGapCloser && args.EndPosition.Distance(ObjectManager.Player.Position) < 350)
            {
                Trap.Cast(sender);
            }
        }
Ejemplo n.º 5
0
 private static void Gapcloser_OnGapCloser(AIHeroClient sender, Gapcloser.GapcloserArgs args)
 {
     if (ComboMenu["antiGap"].GetValue <MenuBool>().Enabled&& Q.IsReady() && sender.Distance(_Player) < 325)
     {
         Q.Cast(sender);
     }
 }
Ejemplo n.º 6
0
 private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserArgs e)
 {
     if (E.IsReady() && Misc["AntiGap"].GetValue <MenuBool>().Enabled&& sender.IsEnemy && sender.Distance(_Player) <= 375)
     {
         //E.Cast(sender);
     }
 }
Ejemplo n.º 7
0
 private static void AntiGapcloser_OnEnemyGapcloser(AIBaseClient sender, Gapcloser.GapcloserArgs args)
 {
     if (_w.IsReady() && sender.IsValidTarget(_w.Range) && _config["misc"]["Gap_W"].GetValue <MenuBool>().Enabled)
     {
         _w.Cast(sender, Packets());
     }
 }
Ejemplo n.º 8
0
 private static void AntiGapcloser_OnEnemyGapcloser(AIHeroClient sender, Gapcloser.GapcloserArgs gapcloser)
 {
     if (E.IsReady() && sender.IsValidTarget(200) && getMenuBoolItem(emenu, "Gap_E") && sender.IsEnemy)
     {
         E.Cast(sender);
     }
 }
Ejemplo n.º 9
0
 private void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserArgs args)
 {
     if (Q.IsReady() && sender.IsValidTarget(Q.Range) && Config[Player.CharacterName]["QConfig"]["qgap"]["qgaplist"].GetValue <MenuBool>("QGCchampion" + sender.CharacterName).Enabled)
     {
         Q.Cast(sender.PreviousPosition);
     }
 }
Ejemplo n.º 10
0
 private void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserArgs args)
 {
     if (Player.Mana > RMANA + WMANA)
     {
         if (E.IsReady() && sender.IsValidTarget(E.Range) && Config[Player.CharacterName]["EConfig"]["egap"]["egaplist"].GetValue <MenuBool>("EGCchampion" + sender.CharacterName).Enabled)
         {
             var EmodeGC = Config[Player.CharacterName]["EConfig"]["egap"].GetValue <MenuList>("EmodeGC").Index;
             if (EmodeGC == 0)
             {
                 E.Cast(args.EndPosition);
             }
             else if (EmodeGC == 1)
             {
                 E.Cast(Game.CursorPosRaw);
             }
             else
             {
                 E.Cast(sender.PreviousPosition);
             }
         }
         else if (W.IsReady() && sender.IsValidTarget(W.Range) && Config[Player.CharacterName]["WConfig"]["wgap"]["wgaplist"].GetValue <MenuBool>("WGCchampion" + sender.CharacterName).Enabled)
         {
             var WmodeGC = Config[Player.CharacterName]["WConfig"]["wgap"].GetValue <MenuList>("WmodeGC").Index;
             if (WmodeGC == 0)
             {
                 W.Cast(args.EndPosition);
             }
             else
             {
                 W.Cast(Player.PreviousPosition);
             }
         }
     }
 }
Ejemplo n.º 11
0
 private void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserArgs args)
 {
     if (E.IsReady() && sender.IsValidTarget(E.Range) && Config[Player.CharacterName]["EConfig"].GetValue <MenuBool>("gapE").Enabled&& Config[Player.CharacterName]["EConfig"]["egap"]["egaplist"].GetValue <MenuBool>("gap" + sender.CharacterName).Enabled)
     {
         E.Cast(sender);
     }
 }
Ejemplo n.º 12
0
 private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserArgs e)
 {
     if (Drawings["AntiGap"].GetValue <MenuBool>().Enabled&& sender.IsEnemy && sender.Distance(_Player) < 300 && !sender.CharacterName.ToLower().Contains("MasterYi"))
     {
         Q.Cast(sender);
     }
 }
Ejemplo n.º 13
0
        /// <summary>
        ///     Fired on an incoming gapcloser.
        /// </summary>

        /// <param name="args">The <see cref="Gapcloser.GapcloserArgs" /> instance containing the event data.</param>
        public void OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserArgs args)
        {
            if (UtilityClass.Player.IsDead)
            {
                return;
            }

            var enabledOption = MenuClass.Gapcloser["enabled"];

            if (enabledOption == null || !enabledOption.As <MenuBool>().Enabled)
            {
                return;
            }

            if (sender == null || !sender.IsEnemy() || args.Type != Gapcloser.Type.Targeted)
            {
                return;
            }

            var spellOption = MenuClass.SubGapcloser[$"{sender.CharName.ToLower()}.{args.SpellName.ToLower()}"];

            if (spellOption == null || !spellOption.As <MenuBool>().Enabled)
            {
                return;
            }

            /// <summary>
            ///     The Anti-Gapcloser E.
            /// </summary>
            if (SpellClass.E.Ready &&
                args.Target.IsMe())
            {
                SpellClass.E.Cast();
            }
        }
Ejemplo n.º 14
0
 private static void AntiGapCloser_OnEnemyGapcloser(AIHeroClient sender, Gapcloser.GapcloserArgs gapcloser)
 {
     if (R.IsReady() && sender.IsValidTarget(E.Range) && Config["Misc"].GetValue <MenuBool>("antigap"))
     {
         R.CastOnUnit(sender);
     }
 }
Ejemplo n.º 15
0
 private static void OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserArgs args)
 {
     if (MenuWrapper.Misc.WA.Enabled && W.IsReady() && args.EndPosition.DistanceToPlayer() < 600)
     {
         W.Cast(sender.Position);
     }
 }
Ejemplo n.º 16
0
        private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserArgs args)
        {
            if (!Menu["Misc"].GetValue <MenuBool>("OnGapYellowCard"))
            {
                return;
            }
            Orbwalker.AttackState = true;
            if (w.IsReady() && sender != null && sender.IsValidTarget(w.Range))
            {
                if (sender.IsMelee)
                {
                    if (sender.IsValidTarget(sender.AttackRange + sender.BoundingRadius + 100))
                    {
                        SelectACard(Cards.Yellow);
                    }
                }

                if (sender.IsDashing())
                {
                    if (args.EndPosition.DistanceToPlayer() <= 250 ||
                        sender.PreviousPosition.DistanceToPlayer() <= 300)
                    {
                        SelectACard(Cards.Yellow);
                    }
                }

                if (sender.IsCastingImporantSpell())
                {
                    if (sender.PreviousPosition.DistanceToPlayer() <= 300)
                    {
                        SelectACard(Cards.Yellow);
                    }
                }
            }
        }
Ejemplo n.º 17
0
 public static void OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserArgs args)
 {
     if (args != null && args.EndPosition.DistanceToPlayer() < 300)
     {
         W.Cast(objPlayer.Position);
     }
 }
Ejemplo n.º 18
0
        public static void ExecuteR(Gapcloser.GapcloserArgs args)
        {
            if (!GapCloserMenu.RBool.Enabled)
            {
                return;
            }

            if (!GapCloserMenu.RGapcloser.IsEnabled(args.SpellName))
            {
                return;
            }

            if (args.EndPosition.DistanceToPlayer() > args.StartPosition.DistanceToPlayer())
            {
                return;
            }

            switch (args.Type)
            {
            case SpellType.Targeted when args.Target.IsMe():
            case SpellType.Dash when args.EndPosition.DistanceToPlayer() <= LocalPlayer.Instance.GetAutoAttackRange():
                R.Cast(args.Sender);

                break;
            }
        }
Ejemplo n.º 19
0
        private static void OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserArgs args)
        {
            if (ObjectManager.Player.IsDead || ObjectManager.Player.IsRecalling())
            {
                return;
            }

            if (MenuGUI.IsChatOpen || MenuGUI.IsShopOpen)
            {
                return;
            }

            if (Q.IsCharging || ObjectManager.Player.HasBuff("XerathLocusOfPower2"))
            {
                return;
            }

            if (MenuWrapper.Misc.EAntiGapcloser.Enabled && E.IsReady() && args.EndPosition.DistanceToPlayer() < 250)
            {
                var pred = E.GetPrediction(sender);
                if (pred.Hitchance >= HitChance.High)
                {
                    E.Cast(pred.CastPosition);
                }
            }
        }
Ejemplo n.º 20
0
 private static void Gapcloser_OnGapCloser(AIBaseClient sender, Gapcloser.GapcloserArgs args)
 {
     if (Misc["antiGap"].GetValue <MenuBool>().Enabled&& R.IsReady() && sender.Distance(_Player) <= 325)
     {
         R.Cast(sender);
     }
 }
Ejemplo n.º 21
0
        /// <summary>
        ///     Fired on an incoming gapcloser.
        /// </summary>

        /// <param name="args">The <see cref="Gapcloser.GapcloserArgs" /> instance containing the event data.</param>
        public void OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserArgs args)
        {
            if (UtilityClass.Player.IsDead)
            {
                return;
            }

            var enabledOption = MenuClass.Gapcloser["enabled"];

            if (enabledOption == null || !enabledOption.As <MenuBool>().Enabled)
            {
                return;
            }

            if (sender == null || !sender.IsEnemy() || Invulnerable.Check(sender))
            {
                return;
            }

            var spellOption = MenuClass.SubGapcloser[$"{sender.CharName.ToLower()}.{args.SpellName.ToLower()}"];

            if (spellOption == null || !spellOption.As <MenuBool>().Enabled)
            {
                return;
            }

            /// <summary>
            ///     The Anti-Gapcloser E.
            /// </summary>
            if (SpellClass.E.Ready &&
                args.EndPosition.Distance(UtilityClass.Player.Position) <= SpellClass.E.Range)
            {
                SpellClass.E.Cast(args.EndPosition);
            }
        }
 private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserArgs args)
 {
     if (sender.IsMe)
     {
         return;
     }
     if (W.IsReady() && sender.IsValidTarget(W.Range))
     {
         if (Player.CanUseItem((int)ItemId.Tiamat) ||
             Player.CanUseItem((int)ItemId.Ravenous_Hydra) ||
             Player.CanUseItem((int)ItemId.Tiamat_Melee_Only) ||
             Player.CanUseItem((int)ItemId.Ravenous_Hydra_Melee_Only)
             )
         {
             Player.UseItem((int)ItemId.Tiamat);
             Player.UseItem((int)ItemId.Ravenous_Hydra_Melee_Only);
             Player.UseItem((int)ItemId.Ravenous_Hydra);
             Player.UseItem((int)ItemId.Tiamat_Melee_Only);
             DelayAction.Add(1, () => { W.Cast(sender); });
         }
         else
         {
             DelayAction.Add(1, () => { W.Cast(sender); });
         }
     }
 }
Ejemplo n.º 23
0
 private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserArgs e)
 {
     if (Misc["AntiGap"].GetValue <MenuBool>().Enabled&& E.IsReady() && sender.IsEnemy && sender.IsVisible && sender.IsValidTarget(E.Range))
     {
         E.Cast(sender.Position);
     }
 }
Ejemplo n.º 24
0
 private static void OnGapcloserEvent(AIHeroClient sender, Gapcloser.GapcloserArgs args)
 {
     if (Config["extra"].GetValue <MenuBool>("gapClose"))
     {
         knockAway(sender);
     }
 }
Ejemplo n.º 25
0
 private void AntiGapcloser_OnEnemyGapcloserEvent(
     AIHeroClient sender,
     Gapcloser.GapcloserArgs args
     )
 {
     AntiGapcloser_OnEnemyGapcloser(sender, args);
 }
Ejemplo n.º 26
0
        public static void OnNewGapcloser(Gapcloser.GapcloserArgs args)
        {
            if (LocalPlayer.Instance.IsDead())
            {
                return;
            }

            if (!GapCloserMenu.EBool.Enabled)
            {
                return;
            }

            var sender = args.Sender;

            if (sender == null || !sender.IsValid || !sender.IsEnemy())
            {
                return;
            }

            if (Invulnerable.IsInvulnerable(sender, false))
            {
                return;
            }

            if (E.Ready)
            {
                AntiGapcloser.ExecuteE(args);
            }
        }
 public static void OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserArgs args)
 {
     if (Heroes.Player.Distance(args.EndPosition) < 400)
     {
         Tumble.Cast(Heroes.Player.Position.Extend(args.EndPosition, -300));
     }
 }
Ejemplo n.º 28
0
        /// <summary>
        ///     Fired on an incoming gapcloser.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="args">The <see cref="Gapcloser.GapcloserArgs" /> instance containing the event data.</param>
        public void OnGapcloser(Obj_AI_Hero sender, Gapcloser.GapcloserArgs args)
        {
            if (UtilityClass.Player.IsDead)
            {
                return;
            }

            var enabledOption = MenuClass.Gapcloser["enabled"];

            if (enabledOption == null || !enabledOption.As <MenuBool>().Enabled)
            {
                return;
            }

            if (sender == null || !sender.IsEnemy || Invulnerable.Check(sender, DamageType.Magical, false))
            {
                return;
            }

            var spellOption = MenuClass.SubGapcloser[$"{sender.ChampionName.ToLower()}.{args.SpellName.ToLower()}"];

            if (spellOption == null || !spellOption.As <MenuBool>().Enabled)
            {
                return;
            }

            /// <summary>
            ///     The Anti-Gapcloser E Logic.
            /// </summary>
            if (SpellClass.E.Ready)
            {
                switch (args.Type)
                {
                case Gapcloser.Type.Targeted:
                    if (sender.IsMelee &&
                        args.Target.IsMe)
                    {
                        if (SpellClass.Q.Ready)
                        {
                            SpellClass.Q.Cast(args.EndPosition);
                        }

                        SpellClass.E.Cast(args.StartPosition);
                    }
                    break;

                default:
                    if (args.EndPosition.Distance(UtilityClass.Player.ServerPosition) <= UtilityClass.Player.AttackRange)
                    {
                        if (SpellClass.Q.Ready)
                        {
                            SpellClass.Q.Cast(args.EndPosition);
                        }

                        SpellClass.E.Cast(args.EndPosition);
                    }
                    break;
                }
            }
        }
Ejemplo n.º 29
0
        private static void AntiGapcloser_OnEnemyGapcloser(AIHeroClient sender, Gapcloser.GapcloserArgs args)

        {
            if (!MainMenu["Misc"].GetValue <MenuBool>("egapclose"))
            {
                return;
            }
            var attacker = sender;

            if (attacker.IsValidTarget(300f))
            {
                E.Cast(ObjectManager.Player);
            }

            if (!MainMenu["Misc"].GetValue <MenuBool>("qgapclose"))
            {
                return;
            }
            var attacker1 = sender;

            if (attacker.IsValidTarget(300f))
            {
                Q.Cast(ObjectManager.Player);
            }
        }
Ejemplo n.º 30
0
            public static void OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserArgs args)
            {
                if (sender.IsMe || sender.IsAlly)
                {
                    return;
                }

                if (SpellManager.Q.IsReady() && MenuManager.MiscGapcloserMenu["Q"].GetValue <MenuBool>().Enabled)
                {
                    var getPrediction = SpellManager.Q.GetPrediction(sender, true);

                    if (SpellManager.Q.SData.Name == "AurelionSolQ")
                    {
                        if (sender.IsValidTarget(SpellManager.Q.Range) && getPrediction.Hitchance >= HitChance.High && GapcloserQ && sender.IsFacing(objPlayer))
                        {
                            SpellManager.Q.Cast(getPrediction.CastPosition);
                            GapcloserQ = false; DelayAction.Add(2000, () => GapcloserQ = true);
                        }
                    }
                    else if (SpellManager.Q.SData.Name == "AurelionSolQCancelButton")
                    {
                        if (AurelionSolQMissile != null && sender.IsValidTarget(150f, false, AurelionSolQMissile.Position))
                        {
                            SpellManager.Q.Cast();
                        }
                    }
                }
            }