Esempio n. 1
0
        private static float GetComboDamage(Obj_AI_Base target)
        {
            double DamageDealt = 0;

            var useQ    = Config.Item("combo_Q").GetValue <bool>();
            var useW    = Config.Item("combo_W").GetValue <bool>();
            var useE    = Config.Item("combo_E").GetValue <bool>();
            var useR    = Config.Item("combo_R").GetValue <bool>();
            var useRUSH = Config.Item("combo_RUSH").GetValue <bool>();
            var useTMT  = Config.Item("item_TMT").GetValue <bool>();
            var useHYD  = Config.Item("item_HYD").GetValue <bool>();

            // Q
            if (Q.IsReady() && useQ)
            {
                DamageDealt += DamageDealt += Q.GetDamage(target);
            }


            // W
            if (W.IsReady() && useW)
            {
                DamageDealt += W.GetDamage(target);
            }

            // R
            if (R.IsReady() && (useR || useRUSH))
            {
                DamageDealt += R.GetDamage(target);
            }

            //  Tiamat
            if (TMT.IsReady() && useTMT)
            {
                DamageDealt += Player.GetItemDamage(target, Damage.DamageItems.Tiamat);
            }


            // Hydra
            if (HYD.IsReady() && useHYD)
            {
                DamageDealt += Player.GetItemDamage(target, Damage.DamageItems.Hydra);
            }

            // E damage amplification
            double[] Amp = { 0, 1.03, 1.06, 1.09, 1.12, 1.15 };

            if (E.IsReady() && useE)
            {
                DamageDealt += DamageDealt * Amp[E.Level];
            }

            return((float)DamageDealt);
        }
Esempio n. 2
0
        private static void doCombo()
        {
            try
            {
                // Menu Config
                var FeroSpell = Config.Item("FeroSpellC").GetValue <StringList>();
                var ForceW    = Config.Item("ForceWC").GetValue <Slider>();
                var ForceE    = Config.Item("ForceEC").GetValue <bool>();

                var Target = TargetSelector.GetSelectedTarget() ??
                             TargetSelector.GetTarget(1600f, TargetSelector.DamageType.Physical);

                // Force Leap to target
                if (Player.HasBuff("RengarR", true))
                {
                    LXOrbwalker.ForcedTarget = Target;
                    LXOrbwalker.SetAttack(LXOrbwalker.GetPossibleTarget() == Target);
                }

                // Use Tiamat / Hydra
                if (Target.IsValidTarget(TMT.Range))
                {
                    if (TMT.IsReady())
                    {
                        TMT.Cast();
                    }
                    else if (HYD.IsReady())
                    {
                        HYD.Cast();
                    }
                }

                // Use Yommus Ghostblade
                if (YGB.IsReady() &&
                    Target.IsValidTarget(Orbwalking.GetRealAutoAttackRange(Player) +
                                         (Player.HasBuff("RengarR", true) ? Player.MoveSpeed / 2 : 0)))
                {
                    YGB.Cast();
                }

                // Cutlass
                if (BCL.IsReady() && Target.IsValidTarget(BCL.Range))
                {
                    BCL.Cast(Target);
                }

                // BORK
                if (BRK.IsReady() && Target.IsValidTarget(BRK.Range))
                {
                    BRK.Cast(Target);
                }

                // Ferocity Spell
                if (Player.Mana == 5)
                {
                    if (Player.Health / Player.MaxHealth < ForceW.Value / 100f && Target.IsValidTarget(W.Range))
                    {
                        W.CastOnUnit(Player, UsePackets);
                        return;
                    }

                    switch (FeroSpell.SelectedIndex)
                    {
                    case 1:
                        if (!Target.IsValidTarget(W.Range))
                        {
                            return;
                        }
                        W.CastOnUnit(Player, UsePackets);
                        break;

                    case 2:
                        if (!Target.IsValidTarget(E.Range) || Player.HasBuff("RengarR", true))
                        {
                            return;
                        }
                        E.Cast(Target, UsePackets);
                        break;
                    }
                    return;
                }

                // Don't cast W or E while ultimate is active (force leap)
                if (Player.HasBuff("RengarR", true))
                {
                    return;
                }

                if (E.IsReady() && Target.IsValidTarget(E.Range) &&
                    (!Target.HasBuff("RengarEFinalMAX", true) && !Target.HasBuff("rengareslow") &&
                     LastETick + 1500 < Environment.TickCount || ForceE))
                {
                    E.Cast(Target, UsePackets);
                }

                if (W.IsReady() && Target.IsValidTarget(W.Range))
                {
                    W.CastOnUnit(Player, UsePackets);
                }
            }
            catch (Exception e)
            {
                Console.WriteLine("Combo Exception: {0}", e);
            }
        }
Esempio n. 3
0
        private static void doCombo()
        {
            var useW = Config.Item("combo_W").GetValue <bool>();
            var useE = Config.Item("combo_E").GetValue <bool>();
            var useR = Config.Item("combo_R").GetValue <bool>();
            var useI = Config.Item("combo_IGN").GetValue <bool>();

            var useGB  = Config.Item("item_GB").GetValue <bool>();
            var useTMT = Config.Item("item_TMT").GetValue <bool>();
            var useHYD = Config.Item("item_HYD").GetValue <bool>();

            var useRush = Config.Item("combo_RUSH").GetValue <bool>();
            var useWE   = Config.Item("combo_WE").GetValue <bool>();

            var Target = LockedTarget ?? TargetSelector.GetTarget(1500f, TargetSelector.DamageType.Physical);

            // Ultimate Rush
            if (UltimateRush(Target) && useRush)
            {
                LockedTarget = Target;
                R.Cast();
            }

            // Items
            if (TMT.IsReady() && Target.IsValidTarget(TMT.Range) && useTMT)
            {
                TMT.Cast();
            }

            if (HYD.IsReady() && Target.IsValidTarget(HYD.Range) && useHYD)
            {
                HYD.Cast();
            }

            if (GB.IsReady() && Target.IsValidTarget(LXOrbwalker.GetAutoAttackRange(Player) + (Player.MoveSpeed / 2)) &&
                useGB)
            {
                GB.Cast();
            }

            // Spells
            if (W.IsReady() && useWE && useW && Target.IsValidTarget(W.Range) && !Player.HasBuff("TalonDisappear"))
            {
                W.Cast(Target);
            }
            else if (E.IsReady() && Target.IsValidTarget(E.Range) && useE)
            {
                E.CastOnUnit(Target);
            }
            else if (W.IsReady() && Target.IsValidTarget(W.Range) && useW)
            {
                W.Cast(Target.Position);
            }
            else if (R.IsReady() && Target.IsValidTarget(R.Range) && useR && R.GetDamage(Target) > Target.Health)
            {
                R.Cast();
            }

            // Auto Ignite
            if (!useI || Ignite == SpellSlot.Unknown || Player.Spellbook.CanUseSpell(Ignite) != SpellState.Ready)
            {
                return;
            }

            foreach (
                var enemy in
                ObjectManager.Get <Obj_AI_Hero>()
                .Where(
                    hero =>
                    hero.IsEnemy && hero.IsValidTarget(600f) && !hero.IsDead &&
                    hero.Health < Player.GetSummonerSpellDamage(hero, Damage.SummonerSpell.Ignite))
                .OrderByDescending(TargetSelector.GetPriority))
            {
                Player.Spellbook.CastSpell(Ignite, enemy);
                return;
            }
        }