Example #1
0
        private void Combo()
        {
            var UseQ     = Config.Item("ComboUseQ").GetValue <bool>();
            var UseW     = Config.Item("ComboUseW").GetValue <bool>();
            var UseE     = Config.Item("ComboUseE").GetValue <bool>();
            var UseR     = Config.Item("ComboUseRComboMode").GetValue <bool>();
            var UseItems = Config.Item("ComboUseItems").GetValue <bool>();

            var target = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Magical);

            if ((target == null) || !target.IsValidTarget())
            {
                return;
            }
            if (UseR && target.IsValidTarget(R.Range) && R.Instance.IsReady())
            {
                BubbKushGo(target);
            }
            if (UseQ && Q.Instance.IsReady() && target.IsValidTarget(Q.Range) && Player.IsFacing(target) &&
                (Player.Mana < 80))
            {
                Q.Cast();
            }
            if (UseE && E.Instance.IsReady() && target.IsValidTarget(E.Range) && (Player.Mana < 80))
            {
                SebbySpell(E, target);
            }
            if (UseW && W.Instance.IsReady() && (Player.CountEnemiesInRange(E.Range) > 0) && (Player.HealthPercent < 80))
            {
                W.Cast();
            }
            if ((target.CountEnemiesInRange(1000) <= 0) && R.Instance.IsReady() && target.IsValidTarget(700) &&
                Config.Item("ComboUseRSolo").GetValue <bool>())
            {
                switch (target.IsFacing(Player))
                {
                case true:
                    R.Cast(target.ServerPosition, Player.ServerPosition);
                    break;

                case false:
                    R.Cast(Player.ServerPosition, target.ServerPosition);
                    break;
                }
            }

            if (UseItems)
            {
                if (GLP800.IsReady() && target.IsValidTarget(GLP800.Range))
                {
                    GLP800.Cast(target.ServerPosition);
                }
                if (Protobelt.IsReady() && target.IsValidTarget(Protobelt.Range))
                {
                    Protobelt.Cast(target.ServerPosition);
                }
            }
        }
Example #2
0
        private void HarassMode()
        {
            var UseQ              = Config.Item("HarassQ").GetValue <bool>();
            var UseE              = Config.Item("HarassE").GetValue <bool>();
            var UseItems          = Config.Item("HarassItems").GetValue <bool>();
            var HarassManaManager = Config.Item("HarassManaManager").GetValue <Slider>().Value;

            if (Player.ManaPercent < HarassManaManager)
            {
                return;
            }

            var target = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Magical);

            if ((target == null) || !target.IsValidTarget())
            {
                return;
            }

            if (target.IsValidTarget(E.Range) && UseE && E.Instance.IsReady() && (Player.Mana < 90))
            {
                SebbySpell(E, target);
            }

            if (target.IsValidTarget(Q.Range) && UseQ && Q.Instance.IsReady() && Player.IsFacing(target) &&
                (Player.Mana < 80))
            {
                Q.Cast();
            }

            if (UseItems)
            {
                if (GLP800.IsReady() && target.IsValidTarget(GLP800.Range))
                {
                    GLP800.Cast(target.ServerPosition);
                }
                if (Protobelt.IsReady() && target.IsValidTarget(Protobelt.Range))
                {
                    Protobelt.Cast(target.ServerPosition);
                }
            }
        }
Example #3
0
        private static void ItemsChecks()
        {
            if (GLP800.IsReady())
            {
                var t = TargetSelector.GetTarget(GLP800.Range, TargetSelector.DamageType.Magical);
                if (t.IsValidTarget())
                {
                    if (Menu.Item("GLP800").GetValue <bool>() &&
                        (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo))
                    {
                        GLP800.Cast(Prediction.GetPrediction(t, 0.5f).CastPosition);
                    }
                }
            }

            if (Protobelt.IsReady())
            {
                var t = TargetSelector.GetTarget(Protobelt.Range, TargetSelector.DamageType.Magical);
                if (t.IsValidTarget())
                {
                    if (Menu.Item("Protobelt").GetValue <bool>() &&
                        (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo))
                    {
                        Protobelt.Cast(Prediction.GetPrediction(t, 0.5f).CastPosition);
                    }
                }
            }

            if (Hextech.IsReady())
            {
                var t = TargetSelector.GetTarget(Hextech.Range, TargetSelector.DamageType.Magical);
                if (t.IsValidTarget())
                {
                    if (Menu.Item("Hextech").GetValue <bool>() &&
                        (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo))
                    {
                        Hextech.Cast(t);
                    }
                }
            }
        }
        /// <summary>
        ///     Pro/Hex/GLP Usage, Perfect.
        /// </summary>
        public void ProHexGLPUsage()
        {
            if (GLP800.IsReady())
            {
                var t = TargetSelector.GetTarget(GLP800.Range, TargetSelector.DamageType.Magical);
                if (t.IsValidTarget())
                {
                    if (Config.GLP800.GetValue <bool>())
                    {
                        GLP800.Cast(Prediction.GetPrediction(t, 0.5f).CastPosition);
                    }
                }
            }

            if (Protobelt.IsReady())
            {
                var t = TargetSelector.GetTarget(Protobelt.Range, TargetSelector.DamageType.Magical);
                if (t.IsValidTarget())
                {
                    if (Config.Protobelt.GetValue <bool>())
                    {
                        Protobelt.Cast(Prediction.GetPrediction(t, 0.5f).CastPosition);
                    }
                }
            }

            if (Hextech.IsReady())
            {
                var t = TargetSelector.GetTarget(Hextech.Range, TargetSelector.DamageType.Magical);
                if (t.IsValidTarget())
                {
                    if (Config.Hextech.GetValue <bool>())
                    {
                        Hextech.Cast(t);
                    }
                }
            }
        }
Example #5
0
        private void KillStealCheck()
        {
            if (Config.Item("EnableKS").GetValue <bool>())
            {
                var target = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Magical);
                if ((target == null) || !target.IsValidTarget())
                {
                    return;
                }

                if (Config.Item("KSQ").GetValue <bool>() && Player.IsFacing(target) && target.IsValidTarget(Q.Range) &&
                    Q.Instance.IsReady() &&
                    (target.Health < OktwCommon.GetKsDamage(target, Q)))
                {
                    Q.Cast();
                }
                if (Config.Item("KSE").GetValue <bool>() && target.IsValidTarget(E.Range) && E.Instance.IsReady() &&
                    (target.Health < OktwCommon.GetKsDamage(target, E)))
                {
                    SebbySpell(E, target);
                }
                if (Config.Item("KSItems").GetValue <bool>())
                {
                    if (GLP800.IsReady() && target.IsValidTarget(GLP800.Range) &&
                        (target.Health < OktwCommon.GetIncomingDamage(target) + (100 + Player.TotalMagicalDamage) * 100))
                    {
                        GLP800.Cast(target.ServerPosition);
                    }
                    if (Protobelt.IsReady() && target.IsValidTarget(Protobelt.Range) &&
                        (target.Health < OktwCommon.GetIncomingDamage(target) + (75 + Player.TotalMagicalDamage) * 100))
                    {
                        Protobelt.Cast(target.ServerPosition);
                    }
                }
            }
        }
Example #6
0
        private void Offensive()
        {
            if (Botrk.IsReady() && Config.Item("Botrk").GetValue <bool>())
            {
                var t = TargetSelector.GetTarget(Botrk.Range, TargetSelector.DamageType.Physical);
                if (t.IsValidTarget())
                {
                    if (Config.Item("BotrkKS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Physical, t.MaxHealth * 0.1) > t.Health - OktwCommon.GetIncomingDamage(t))
                    {
                        Botrk.Cast(t);
                    }
                    if (Config.Item("BotrkLS").GetValue <bool>() && Player.Health < Player.MaxHealth * 0.5 - OktwCommon.GetIncomingDamage(Player))
                    {
                        Botrk.Cast(t);
                    }
                    if (Config.Item("BotrkCombo").GetValue <bool>() && Program.Combo)
                    {
                        Botrk.Cast(t);
                    }
                }
            }

            if (GLP800.IsReady() && Config.Item("GLP800").GetValue <bool>())
            {
                var t = TargetSelector.GetTarget(GLP800.Range, TargetSelector.DamageType.Magical);
                if (t.IsValidTarget())
                {
                    if (Config.Item("GLP800KS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Magical, 200 + Player.FlatMagicDamageMod * 0.35) > t.Health - OktwCommon.GetIncomingDamage(t))
                    {
                        GLP800.Cast(Prediction.GetPrediction(t, 0.5f).CastPosition);
                    }
                    if (Config.Item("GLP800Combo").GetValue <bool>() && Program.Combo)
                    {
                        Program.debug("PRO");
                        GLP800.Cast(Prediction.GetPrediction(t, 0.5f).CastPosition);
                    }
                }
            }

            if (Protobelt.IsReady() && Config.Item("Protobelt").GetValue <bool>())
            {
                var t = TargetSelector.GetTarget(Protobelt.Range, TargetSelector.DamageType.Magical);
                if (t.IsValidTarget())
                {
                    if (Config.Item("ProtobeltKS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Magical, 150 + Player.FlatMagicDamageMod * 0.35) > t.Health - OktwCommon.GetIncomingDamage(t))
                    {
                        Protobelt.Cast(Prediction.GetPrediction(t, 0.5f).CastPosition);
                    }
                    if (Config.Item("ProtobeltCombo").GetValue <bool>() && Program.Combo)
                    {
                        Program.debug("PRO");
                        Protobelt.Cast(Prediction.GetPrediction(t, 0.5f).CastPosition);
                    }
                }
            }

            if (Hextech.IsReady() && Config.Item("Hextech").GetValue <bool>())
            {
                var t = TargetSelector.GetTarget(Hextech.Range, TargetSelector.DamageType.Magical);
                if (t.IsValidTarget())
                {
                    if (Config.Item("HextechKS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Magical, 150 + Player.FlatMagicDamageMod * 0.4) > t.Health - OktwCommon.GetIncomingDamage(t))
                    {
                        Hextech.Cast(t);
                    }
                    if (Config.Item("HextechCombo").GetValue <bool>() && Program.Combo)
                    {
                        Hextech.Cast(t);
                    }
                }
            }

            if (Program.Combo && FrostQueen.IsReady() && Config.Item("FrostQueen").GetValue <bool>() && Player.CountEnemiesInRange(800) > 0)
            {
                FrostQueen.Cast();
            }

            if (Cutlass.IsReady() && Config.Item("Cutlass").GetValue <bool>())
            {
                var t = TargetSelector.GetTarget(Cutlass.Range, TargetSelector.DamageType.Magical);
                if (t.IsValidTarget())
                {
                    if (Config.Item("CutlassKS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Magical, 100) > t.Health - OktwCommon.GetIncomingDamage(t))
                    {
                        Cutlass.Cast(t);
                    }
                    if (Config.Item("CutlassCombo").GetValue <bool>() && Program.Combo)
                    {
                        Cutlass.Cast(t);
                    }
                }
            }

            if (Youmuus.IsReady() && Config.Item("Youmuus").GetValue <bool>() && Program.Combo)
            {
                var t = Orbwalker.GetTarget();

                if (t.IsValidTarget() && t is AIHeroClient)
                {
                    if (Config.Item("YoumuusKS").GetValue <bool>() && t.Health < Player.MaxHealth)
                    {
                        Youmuus.Cast();
                    }
                    if (Config.Item("YoumuusCombo").GetValue <bool>())
                    {
                        Youmuus.Cast();
                    }
                }
            }

            if (Config.Item("Hydra").GetValue <bool>())
            {
                if (Hydra.IsReady() && Player.CountEnemiesInRange(Hydra.Range) > 0)
                {
                    Hydra.Cast();
                }
                else if (Hydra2.IsReady() && Player.CountEnemiesInRange(Hydra2.Range) > 0)
                {
                    Hydra2.Cast();
                }
            }
        }
Example #7
0
        private void Offensive()
        {
            var botrk = Config["activator"]["offensives"]["botrk"];

            if (Botrk.IsReady && botrk.GetValue <MenuBool>("Botrk").Value)
            {
                var t = Variables.TargetSelector.GetTarget(Botrk.Range, DamageType.Magical);
                if (t.IsValidTarget())
                {
                    if (botrk.GetValue <MenuBool>("BotrkKS").Value&& Player.CalculateDamage(t, DamageType.Magical, 100) > t.Health - OktwCommon.GetIncomingDamage(t))
                    {
                        Botrk.Cast(t);
                    }
                    if (botrk.GetValue <MenuBool>("BotrkCombo").Value&& Program.Combo)
                    {
                        Botrk.Cast(t);
                    }
                }
            }

            var glp800 = Config["activator"]["offensives"]["glp800"];

            if (GLP800.IsReady && glp800.GetValue <MenuBool>("GLP800").Value)
            {
                var t = Variables.TargetSelector.GetTarget(GLP800.Range, DamageType.Magical);
                if (t.IsValidTarget())
                {
                    if (glp800.GetValue <MenuBool>("GLP800KS").Value&& Player.CalculateDamage(t, DamageType.Magical, 100 + 100f / 17 * (Player.Level - 1) + 0.2 * Player.TotalMagicalDamage) > t.Health - OktwCommon.GetIncomingDamage(t))
                    {
                        GLP800.Cast(Movement.GetPrediction(t, 0.5f).CastPosition);
                    }
                    if (glp800.GetValue <MenuBool>("GLP800Combo").Value&& Program.Combo)
                    {
                        GLP800.Cast(Movement.GetPrediction(t, 0.5f).CastPosition);
                    }
                }
            }

            var protobelt = Config["activator"]["offensives"]["protobelt"];

            if (Protobelt.IsReady && protobelt.GetValue <MenuBool>("Protobelt").Value)
            {
                var t = Variables.TargetSelector.GetTarget(Protobelt.Range, DamageType.Magical);
                if (t.IsValidTarget())
                {
                    if (protobelt.GetValue <MenuBool>("ProtobeltKS").Value&& Player.CalculateDamage(t, DamageType.Magical, 75 + 75f / 17 * (Player.Level - 1) + 0.25 * Player.TotalMagicalDamage) > t.Health - OktwCommon.GetIncomingDamage(t))
                    {
                        Protobelt.Cast(Movement.GetPrediction(t, 0.5f).CastPosition);
                    }
                    if (protobelt.GetValue <MenuBool>("ProtobeltCombo").Value&& Program.Combo)
                    {
                        Protobelt.Cast(Movement.GetPrediction(t, 0.5f).CastPosition);
                    }
                }
            }

            var hextech = Config["activator"]["offensives"]["hextech"];

            if (Hextech.IsReady && hextech.GetValue <MenuBool>("Hextech").Value)
            {
                var t = Variables.TargetSelector.GetTarget(Hextech.Range, DamageType.Magical);
                if (t.IsValidTarget())
                {
                    if (hextech.GetValue <MenuBool>("HextechKS").Value&& Player.CalculateDamage(t, DamageType.Magical, 175 + 78f / 17 * (Player.Level - 1) + 0.3 * Player.TotalMagicalDamage) > t.Health - OktwCommon.GetIncomingDamage(t))
                    {
                        Hextech.Cast(t);
                    }
                    if (hextech.GetValue <MenuBool>("HextechCombo").Value&& Program.Combo)
                    {
                        Hextech.Cast(t);
                    }
                }
            }

            var cutlass = Config["activator"]["offensives"]["cutlass"];

            if (Cutlass.IsReady && cutlass.GetValue <MenuBool>("Cutlass").Value)
            {
                var t = Variables.TargetSelector.GetTarget(Cutlass.Range, DamageType.Magical);
                if (t.IsValidTarget())
                {
                    if (cutlass.GetValue <MenuBool>("CutlassKS").Value&& Player.CalculateDamage(t, DamageType.Magical, 100) > t.Health - OktwCommon.GetIncomingDamage(t))
                    {
                        Cutlass.Cast(t);
                    }
                    if (cutlass.GetValue <MenuBool>("CutlassCombo").Value&& Program.Combo)
                    {
                        Cutlass.Cast(t);
                    }
                }
            }

            var youmuus = Config["activator"]["offensives"]["youmuus"];

            if (Youmuus.IsReady && youmuus.GetValue <MenuBool>("Youmuus").Value&& Program.Combo)
            {
                var t = Variables.Orbwalker.GetTarget();
                if (t.IsValidTarget() && t is AIHeroClient)
                {
                    if (youmuus.GetValue <MenuBool>("YoumuusKS").Value&& t.Health < Player.MaxHealth)
                    {
                        Youmuus.Cast();
                    }
                    if (youmuus.GetValue <MenuBool>("YoumuusCombo").Value)
                    {
                        Youmuus.Cast();
                    }
                }
            }

            if (Config["activator"]["offensives"]["hydra"].GetValue <MenuBool>("Hydra").Value)
            {
                if (Hydra.IsReady && Player.CountEnemyHeroesInRange(Hydra.Range) > 0)
                {
                    Hydra.Cast();
                }
                else if (Hydra2.IsReady && Player.CountEnemyHeroesInRange(Hydra2.Range) > 0)
                {
                    Hydra2.Cast();
                }
            }
        }