Beispiel #1
0
        public static void GameObject_OnCreate(GameObject sender, EventArgs args)
        {
            if (sender.IsAlly)
            {
                if (sender.Type != GameObjectType.obj_AI_Minion)
                {
                    var Missile = (MissileClient)sender;

                    if (Missile.Target.Type == GameObjectType.obj_AI_Minion)
                    {
                        return;
                    }

                    if (!Missile.SpellCaster.IsMelee && !Missile.SpellCaster.IsEnemy)
                    {
                        if (Missile.Target.IsEnemy)
                        {
                            var Caster = (AIHeroClient)Missile.SpellCaster;

                            if (Nami.E.IsReady() && NamiMenu.CheckBox(NamiMenu.Ally, Caster.ChampionName + "/E"))
                            {
                                if (Caster.IsValidTarget(Nami.E.Range))
                                {
                                    Nami.E.Cast(Caster);
                                }
                            }
                        }
                    }
                }
            }
        }
Beispiel #2
0
        private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
        {
            if (sender.IsEnemy && sender.IsValid)
            {
                if (NamiMenu.CheckBox(NamiMenu.Misc, "Interrupter"))
                {
                    if (sender.IsValidTarget(Q.Range))
                    {
                        var QPred = Q.GetPrediction(sender);

                        if (QPred.HitChancePercent >= NamiMenu.Slider(NamiMenu.Principal, "QPred"))
                        {
                            Q.Cast(QPred.UnitPosition);
                        }
                    }

                    if (e.DangerLevel == DangerLevel.High)
                    {
                        if (sender.IsValidTarget(R.Range))
                        {
                            var RPred = R.GetPrediction(sender);

                            if (RPred.HitChancePercent >= NamiMenu.Slider(NamiMenu.Principal, "RPred"))
                            {
                                R.Cast(RPred.UnitPosition);
                            }
                        }
                    }
                }
            }
        }
Beispiel #3
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.Hero != Champion.Nami)
            {
                return;
            }

            NamiMenu.Init();
            Nami.Init();
            Drawing.OnDraw += Drawing_OnDraw;
        }
Beispiel #4
0
        public static void Init()
        {
            if (NamiMenu.CheckBox(NamiMenu.Misc, "SkinHack"))
            {
                Player.Instance.SetSkinId(NamiMenu.Slider(NamiMenu.Misc, "SkinID"));
            }

            if (NamiMenu.Keybind(NamiMenu.Misc, "Reset"))
            {
                Player.Instance.SetModel(Player.Instance.ChampionName);
            }
        }
Beispiel #5
0
 public static void Init()
 {
     foreach (var Ally in EntityManager.Heroes.Allies.Where(x => x.Distance(Player.Instance) <= Nami.W.Range))
     {
         if (NamiMenu.CheckBox(NamiMenu.Ally, Ally.ChampionName + "/W"))
         {
             if (Ally.HealthPercent <= NamiMenu.Slider(NamiMenu.Ally, "Min"))
             {
                 Nami.W.Cast(Ally);
             }
         }
     }
 }
Beispiel #6
0
        private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
        {
            if (sender.IsEnemy && sender.IsValid)
            {
                if (NamiMenu.CheckBox(NamiMenu.Misc, "Gapcloser"))
                {
                    if (sender.IsValidTarget(Q.Range))
                    {
                        var QPred = Q.GetPrediction(sender);

                        if (QPred.HitChancePercent >= NamiMenu.Slider(NamiMenu.Principal, "QPred"))
                        {
                            Q.Cast(QPred.UnitPosition);
                        }
                    }
                }
            }
        }
Beispiel #7
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (Nami.Q.IsReady() || NamiMenu.CheckBox(NamiMenu.Draw, "Q"))
            {
                Circle.Draw(Color.Pink, Nami.Q.Range, Player.Instance.Position);
            }

            if (Nami.W.IsReady() || NamiMenu.CheckBox(NamiMenu.Draw, "W"))
            {
                Circle.Draw(Color.Pink, Nami.W.Range, Player.Instance.Position);
            }

            if (Nami.E.IsReady() || NamiMenu.CheckBox(NamiMenu.Draw, "E"))
            {
                Circle.Draw(Color.Pink, Nami.E.Range, Player.Instance.Position);
            }

            if (Nami.R.IsReady() || NamiMenu.CheckBox(NamiMenu.Draw, "R"))
            {
                Circle.Draw(Color.Pink, Nami.R.Range, Player.Instance.Position);
            }
        }