コード例 #1
0
ファイル: Nidalee.cs プロジェクト: Zypppy/AimTec
        private void Game_OnUpdate()
        {
            if (Player.IsDead || MenuGUI.IsChatOpen() || Player.IsRecalling())
            {
                return;
            }

            switch (Orbwalker.Mode)
            {
            case OrbwalkingMode.Combo:
                OnCombo();
                break;

            case OrbwalkingMode.Mixed:
                OnHarass();
                break;

            case OrbwalkingMode.Laneclear:
                Jungle();
                break;
            }
            Killsteal();
            if (Menu["misc"]["autoq"].Enabled && Player.SpellBook.GetSpell(SpellSlot.Q).Name == "JavelinToss")
            {
                foreach (var target in GameObjects.EnemyHeroes.Where(
                             t => (t.HasBuffOfType(BuffType.Charm) || t.HasBuffOfType(BuffType.Stun) ||
                                   t.HasBuffOfType(BuffType.Fear) || t.HasBuffOfType(BuffType.Snare) ||
                                   t.HasBuffOfType(BuffType.Taunt) || t.HasBuffOfType(BuffType.Knockback) ||
                                   t.HasBuffOfType(BuffType.Suppression)) && t.IsValidTarget(QH.Range) &&
                             !Invulnerable.Check(t, DamageType.Magical)))
                {
                    QH.Cast(target);
                }
            }
            if (Menu["misc"]["autow"].Enabled && Player.SpellBook.GetSpell(SpellSlot.W).Name == "Bushwhack")
            {
                foreach (var target in GameObjects.EnemyHeroes.Where(
                             t => (t.HasBuffOfType(BuffType.Charm) || t.HasBuffOfType(BuffType.Stun) ||
                                   t.HasBuffOfType(BuffType.Fear) || t.HasBuffOfType(BuffType.Snare) ||
                                   t.HasBuffOfType(BuffType.Taunt) || t.HasBuffOfType(BuffType.Knockback) ||
                                   t.HasBuffOfType(BuffType.Suppression)) && t.IsValidTarget(WH.Range) &&
                             !Invulnerable.Check(t, DamageType.Magical)))
                {
                    WH.Cast(target);
                }
            }
            float hp = Menu["misc"]["autoeh"].As <MenuSlider>().Value;

            if (Menu["misc"]["autoe"].Enabled && EH.Ready && Player.SpellBook.GetSpell(SpellSlot.E).Name == "PrimalSurge" && Player.HealthPercent() <= hp)
            {
                EH.Cast(Player);
            }
            if (Menu["flee"]["key"].Enabled)
            {
                Flee();
            }
        }
コード例 #2
0
ファイル: Nidalee.cs プロジェクト: Zypppy/AimTec
        private void OnCombo()
        {
            bool useQ = Menu["combo"]["useq"].Enabled;

            if (useQ)
            {
                var QHuman  = GetBestEnemyHeroTargetInRange(QH.Range);
                var QCougar = GetBestEnemyHeroTargetInRange(QC.Range);
                switch (Menu["combo"]["qo"].As <MenuList>().Value)
                {
                case 0:
                    if (QH.Ready && Player.SpellBook.GetSpell(SpellSlot.Q).Name == "JavelinToss" && QHuman.IsValidTarget(QH.Range))
                    {
                        QH.Cast(QHuman);
                    }
                    else if (QC.Ready && Player.SpellBook.GetSpell(SpellSlot.Q).Name == "Takedown" && QCougar.IsValidTarget(QC.Range))
                    {
                        QC.Cast();
                    }
                    break;

                case 1:
                    if (QH.Ready && Player.SpellBook.GetSpell(SpellSlot.Q).Name == "JavelinToss" && QHuman.IsValidTarget(QH.Range))
                    {
                        QH.Cast(QHuman);
                    }
                    break;

                case 2:
                    if (QC.Ready && Player.SpellBook.GetSpell(SpellSlot.Q).Name == "Takedown" && QCougar.IsValidTarget(QC.Range))
                    {
                        QC.Cast();
                    }
                    break;
                }
            }
            bool useW = Menu["combo"]["usew"].Enabled;

            if (useW)
            {
                var WHuman  = GetBestEnemyHeroTargetInRange(WH.Range);
                var WCougar = GetBestEnemyHeroTargetInRange(WC.Range);
                switch (Menu["combo"]["wo"].As <MenuList>().Value)
                {
                case 0:
                    if (WH.Ready && Player.SpellBook.GetSpell(SpellSlot.W).Name == "Bushwhack" && WHuman.IsValidTarget(WH.Range))
                    {
                        WH.Cast(WHuman);
                    }
                    else if (WC.Ready && Player.SpellBook.GetSpell(SpellSlot.W).Name == "Pounce" && WCougar.IsValidTarget(WC.Range))
                    {
                        WC.Cast(WCougar);
                    }
                    break;

                case 1:
                    if (WH.Ready && Player.SpellBook.GetSpell(SpellSlot.W).Name == "Bushwhack" && WHuman.IsValidTarget(WH.Range))
                    {
                        WH.Cast(WHuman);
                    }
                    break;

                case 2:
                    if (WC.Ready && Player.SpellBook.GetSpell(SpellSlot.W).Name == "Pounce" && WCougar.IsValidTarget(WC.Range))
                    {
                        WC.Cast(WCougar);
                    }
                    else if (WCL.Ready && Player.SpellBook.GetSpell(SpellSlot.W).Name == "Pounce" && WCougar.IsValidTarget(WCL.Range) && WCougar.HasBuff("NidaleePassiveHunted"))
                    {
                        WCL.Cast(WCougar);
                    }
                    break;
                }
            }

            bool  useE  = Menu["combo"]["usee"].Enabled;
            float hpe   = Menu["combo"]["useeh"].As <MenuSlider>().Value;
            float manae = Menu["combo"]["useehm"].As <MenuSlider>().Value;

            if (useE)
            {
                var ECougar = GetBestEnemyHeroTargetInRange(EC.Range);
                switch (Menu["combo"]["eo"].As <MenuList>().Value)
                {
                case 0:
                    if (EH.Ready && Player.SpellBook.GetSpell(SpellSlot.E).Name == "PrimalSurge" && Player.ManaPercent() >= manae && Player.HealthPercent() <= hpe)
                    {
                        EH.Cast(Player);
                    }
                    else if (EC.Ready && Player.SpellBook.GetSpell(SpellSlot.E).Name == "Swipe" && ECougar.IsValidTarget(EC.Range))
                    {
                        EC.Cast(ECougar);
                    }
                    break;

                case 1:
                    if (EH.Ready && Player.SpellBook.GetSpell(SpellSlot.E).Name == "PrimalSurge" && Player.ManaPercent() >= manae && Player.HealthPercent() <= hpe)
                    {
                        EH.Cast(Player);
                    }
                    break;

                case 2:
                    if (EC.Ready && Player.SpellBook.GetSpell(SpellSlot.E).Name == "Swipe" && ECougar.IsValidTarget(EC.Range))
                    {
                        EC.Cast(ECougar);
                    }
                    break;
                }
            }
            bool  useR   = Menu["combo"]["user"].Enabled;
            float rangeR = Menu["combo"]["userr"].As <MenuSlider>().Value;

            if (useR)
            {
                var RTarget = GetBestEnemyHeroTargetInRange(rangeR);
                switch (Menu["combo"]["ro"].As <MenuList>().Value)
                {
                case 0:
                    if (R.Ready && !QH.Ready && Player.SpellBook.GetSpell(SpellSlot.Q).Name == "JavelinToss" && RTarget.IsValidTarget(WC.Range))
                    {
                        R.Cast();
                    }
                    else if (R.Ready && !QC.Ready && Player.SpellBook.GetSpell(SpellSlot.Q).Name == "Takedown" && RTarget.IsValidTarget(QH.Range))
                    {
                        R.Cast();
                    }
                    else if (R.Ready && !RTarget.IsValidTarget(WCL.Range) && Player.SpellBook.GetSpell(SpellSlot.Q).Name != "JavelinToss")
                    {
                        R.Cast();
                    }
                    break;
                }
            }
        }