示例#1
0
文件: Program.cs 项目: lessn/FIXSKO
        private static void Farm()
        {
            var target     = SimpleTs.GetTarget(QC.Range, SimpleTs.DamageType.Magical);
            var allminions = MinionManager.GetMinions(Player.ServerPosition, Q.Range, MinionTypes.All, MinionTeam.Enemy, MinionOrderTypes.Health);

            if (Config.Item("UseQLane").GetValue <bool>())
            {
                if (IsHuman)
                {
                    R.Cast();
                }
                foreach (var minion in allminions)
                {
                    if (QC.IsReady() && minion.IsValidTarget() && Player.Distance(minion) <= QC.Range)
                    {
                        QC.Cast(minion);
                    }
                    if (WC.IsReady() && minion.IsValidTarget() && Player.Distance(minion) <= WC.Range)
                    {
                        WC.Cast(minion);
                    }
                    if (EC.IsReady() && minion.IsValidTarget() && Player.Distance(minion) <= EC.Range)
                    {
                        EC.Cast(minion);
                    }
                }
            }
        }
示例#2
0
        private static void Farm()
        {
            foreach (
                Obj_AI_Minion Minion in
                    ObjectManager.Get<Obj_AI_Minion>()
                        .Where(
                            minion =>
                                minion.Team != Player.Team && !minion.IsDead &&
                                Vector2.Distance(minion.ServerPosition.To2D(), Player.ServerPosition.To2D()) < 600f)
                        .OrderBy(minion => Vector2.Distance(minion.Position.To2D(), Player.Position.To2D())))
            {
                if (IsCougar)
                {
                    if (QC.IsReady() && Config.Item("UseQLane").GetValue<bool>() && Player.Distance(Minion) < QC.Range)
                        QC.Cast();
                    else if (WC.IsReady() && Config.Item("UseWLane").GetValue<bool>() && Player.Distance(Minion) > 200f)
                        WC.Cast(Minion);
                    else if (EC.IsReady() && Config.Item("UseELane").GetValue<bool>() &&
                             Player.Distance(Minion) < EC.Range)
                        EC.Cast(Minion);
                }

                else if (R.IsReady() && Config.Item("farm_R").GetValue<KeyBind>().Active)
                    R.Cast();
                else if (E.IsReady() && !Config.Item("farm_R").GetValue<KeyBind>().Active &&
                         Config.Item("farm_E1").GetValue<bool>() &&
                         (100*(Player.Mana/Player.MaxMana)) > Config.Item("Lane").GetValue<Slider>().Value)
                    E.CastOnUnit(Player);
                return;
            }
        }
示例#3
0
文件: Nidalee.cs 项目: Zypppy/AimTec
        private void Jungle()
        {
            foreach (var jungle in GameObjects.Jungle.Where(m => m.IsValidTarget(QH.Range)).ToList())
            {
                if (!jungle.IsValidTarget() || !jungle.IsValidSpellTarget())
                {
                    return;
                }

                float manapercent = Menu["jungleclear"]["manaj"].As <MenuSlider>().Value;
                if (Player.ManaPercent() >= manapercent)
                {
                    bool useQ = Menu["jungleclear"]["usejq"].Enabled;
                    if (useQ)
                    {
                        switch (Menu["jungleclear"]["qo"].As <MenuList>().Value)
                        {
                        case 0:
                            if (QH.Ready && Player.SpellBook.GetSpell(SpellSlot.Q).Name == "JavelinToss" && jungle.IsValidTarget(QH.Range))
                            {
                                QH.Cast(jungle);
                            }
                            else if (QC.Ready && Player.SpellBook.GetSpell(SpellSlot.Q).Name == "Takedown" && jungle.IsValidTarget(QC.Range))
                            {
                                QC.Cast();
                            }
                            break;

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

                        case 2:
                            if (QC.Ready && Player.SpellBook.GetSpell(SpellSlot.Q).Name == "Takedown" && jungle.IsValidTarget(QC.Range))
                            {
                                QC.Cast();
                            }
                            break;
                        }
                    }
                    bool useW = Menu["jungleclear"]["usejw"].Enabled;
                    if (useW)
                    {
                        switch (Menu["jungleclear"]["wo"].As <MenuList>().Value)
                        {
                        case 0:
                            if (WH.Ready && Player.SpellBook.GetSpell(SpellSlot.W).Name == "Bushwhack" && jungle.IsValidTarget(WH.Range))
                            {
                                WH.Cast(jungle);
                            }
                            else if (WC.Ready && Player.SpellBook.GetSpell(SpellSlot.W).Name == "Pounce" && jungle.IsValidTarget(WC.Range))
                            {
                                WC.Cast(jungle);
                            }
                            break;

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

                        case 2:
                            if (WC.Ready && Player.SpellBook.GetSpell(SpellSlot.W).Name == "Pounce" && jungle.IsValidTarget(WC.Range))
                            {
                                WC.Cast(jungle);
                            }
                            else if (WCL.Ready && Player.SpellBook.GetSpell(SpellSlot.W).Name == "Pounce" && jungle.IsValidTarget(WCL.Range) && jungle.HasBuff("NidaleePassiveHunted"))
                            {
                                WCL.Cast(jungle);
                            }
                            break;
                        }
                    }
                    bool useE = Menu["jungleclear"]["usejce"].Enabled;
                    if (useE && Player.SpellBook.GetSpell(SpellSlot.E).Name == "Swipe" && EC.Ready && jungle.IsValidTarget(EC.Range))
                    {
                        EC.Cast(jungle);
                    }
                    bool useR = Menu["jungleclear"]["usejr"].Enabled;
                    if (useR)
                    {
                        switch (Menu["combo"]["ro"].As <MenuList>().Value)
                        {
                        case 0:
                            if (R.Ready && !QH.Ready && Player.SpellBook.GetSpell(SpellSlot.Q).Name == "JavelinToss" && jungle.IsValidTarget(QC.Range))
                            {
                                R.Cast();
                            }
                            else if (R.Ready && !QC.Ready && Player.SpellBook.GetSpell(SpellSlot.Q).Name == "Takedown" && jungle.IsValidTarget(QH.Range))
                            {
                                R.Cast();
                            }
                            else if (R.Ready && !jungle.IsValidTarget(WCL.Range) && Player.SpellBook.GetSpell(SpellSlot.Q).Name != "JavelinToss" || jungle == null)
                            {
                                R.Cast();
                            }
                            break;
                        }
                    }
                }
            }
        }
示例#4
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;
                }
            }
        }
示例#5
0
        private static void Combo()
        {
            var target = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical);

            Orbwalker.SetAttack((!Q.IsReady() || W.IsReady()));
            var itemsDfg    = Config.Item("UseItemsdfg").GetValue <bool>();
            var itemsIgnite = Config.Item("UseItemsignite").GetValue <bool>();

            if (target != null)
            {
                if (_dfg.IsReady() && target.HasBuff("nidaleepassivehunted", true) && Player.Distance(target as AttackableUnit) <= _dfg.Range && itemsDfg &&
                    target.Health <= ComboDamage(target))
                {
                    _dfg.Cast(target);
                }
                if (itemsIgnite && IgniteSlot != SpellSlot.Unknown &&
                    Player.Spellbook.CanUseSpell(IgniteSlot) == SpellState.Ready)
                {
                    if (ComboDamage(target) > target.Health)
                    {
                        Player.Spellbook.CastSpell(IgniteSlot, target);
                    }
                }
                if (Q.IsReady() && IsHuman && Player.Distance(target) <= Q.Range && Config.Item("UseQCombo").GetValue <bool>())
                {
                    var prediction = Q.GetPrediction(target);
                    if (prediction.Hitchance >= QHitChanceCombo())
                    {
                        Q.Cast(prediction.CastPosition);
                    }
                }
                if (W.IsReady() && IsHuman && Player.Distance(target) <= W.Range && Config.Item("UseWCombo").GetValue <bool>())
                {
                    W.Cast(target);
                }

                if (R.IsReady() && IsHuman && Config.Item("UseRCombo").GetValue <bool>() && Player.Distance(target) <= 625)
                {
                    if (IsHuman)
                    {
                        R.Cast();
                    }

                    if (IsCougar)
                    {
                        if (WC.IsReady() && Config.Item("UseWComboCougar").GetValue <bool>() && Player.Distance(target) <= WC.Range)
                        {
                            WC.Cast(target);
                        }
                        if (EC.IsReady() && Config.Item("UseEComboCougar").GetValue <bool>() && Player.Distance(target) <= EC.Range)
                        {
                            EC.Cast(target);
                        }
                        if (QC.IsReady() && Config.Item("UseQComboCougar").GetValue <bool>() && Player.Distance(target) <= QC.Range)
                        {
                            Orbwalker.SetAttack(true);
                            QC.Cast();
                        }
                    }
                }

                if (IsCougar && Player.Distance(target) < 625)
                {
                    if (IsHuman && R.IsReady())
                    {
                        R.Cast();
                    }

                    if (IsCougar)
                    {
                        if (WC.IsReady() && Config.Item("UseWComboCougar").GetValue <bool>() && Player.Distance(target) <= WC.Range)
                        {
                            WC.Cast(target);
                        }
                        if (EC.IsReady() && Config.Item("UseEComboCougar").GetValue <bool>() && Player.Distance(target) <= EC.Range)
                        {
                            EC.Cast(target);
                        }
                        if (QC.IsReady() && Config.Item("UseQComboCougar").GetValue <bool>() && Player.Distance(target) <= QC.Range)
                        {
                            Orbwalker.SetAttack(true);
                            QC.Cast();
                        }
                    }
                }

                if (R.IsReady() && IsCougar && Config.Item("UseRCombo").GetValue <bool>() && Player.Distance(target) > WC.Range)
                {
                    R.Cast();
                }
                if (R.IsReady() && IsCougar && Player.Distance(target) > EC.Range && Config.Item("UseRCombo").GetValue <bool>())
                {
                    R.Cast();
                }
            }

            UseItemes(target);
        }
示例#6
0
文件: Program.cs 项目: lessn/FIXSKO
        private static void Combo()
        {
            var target = SimpleTs.GetTarget(Q.Range, SimpleTs.DamageType.Magical);

            Orbwalker.SetAttack((!Q.IsReady() || W.IsReady()));

            if (target != null)
            {
                if (IsHuman && Player.Distance(target) <= Q.Range && Config.Item("UseQCombo").GetValue <bool>() && Q.IsReady())
                {
                    Q.Cast(target, false);
                }
                if (IsHuman && Player.Distance(target) <= W.Range && Config.Item("UseWCombo").GetValue <bool>() && W.IsReady())
                {
                    W.Cast(target);
                }

                if (IsHuman && Config.Item("UseRCombo").GetValue <bool>() && Player.Distance(target) <= 625 && R.IsReady())
                {
                    if (IsHuman)
                    {
                        R.Cast();
                    }

                    if (IsCougar)
                    {
                        if (Config.Item("UseWComboCougar").GetValue <bool>() && Player.Distance(target) <= WC.Range)
                        {
                            WC.Cast(target);
                        }
                        if (Config.Item("UseEComboCougar").GetValue <bool>() && Player.Distance(target) <= EC.Range)
                        {
                            EC.Cast(target);
                        }
                        if (Config.Item("UseQComboCougar").GetValue <bool>() && Player.Distance(target) <= Q.Range)
                        {
                            Orbwalker.SetAttack(true);
                            QC.Cast(target);
                        }
                    }
                }

                if (IsCougar && Player.Distance(target) < 625)
                {
                    if (IsHuman)
                    {
                        R.Cast();
                    }

                    if (IsCougar)
                    {
                        if (Config.Item("UseWComboCougar").GetValue <bool>() && Player.Distance(target) <= WC.Range)
                        {
                            WC.Cast(target);
                        }
                        if (Config.Item("UseEComboCougar").GetValue <bool>() && Player.Distance(target) <= EC.Range)
                        {
                            EC.Cast(target);
                        }
                        if (Config.Item("UseQComboCougar").GetValue <bool>() && Player.Distance(target) <= Q.Range)
                        {
                            Orbwalker.SetAttack(true);
                            QC.Cast(target);
                        }
                    }
                }

                if (IsCougar && Config.Item("UseRCombo").GetValue <bool>() && Player.Distance(target) > WC.Range)
                {
                    R.Cast();
                }
                if (IsCougar && Player.Distance(target) > EC.Range && Config.Item("UseRCombo").GetValue <bool>())
                {
                    R.Cast();
                }

                if (Config.Item("UseItems").GetValue <bool>())
                {
                    BKR.Cast(target);
                    YOU.Cast();
                    BWC.Cast(target);
                    DFG.Cast(target);
                    SOD.Cast();
                    FQM.Cast(target);
                }
            }
        }