What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Use Sprint For movement ONLY

blacula

New Member
Joined
Feb 22, 2013
Messages
115
Reaction score
0
Have been working on this bit of code:

Code:
        public static bool CanUseSprint
        {
            get
            {
                return !UseOOCBuff && CanCast(SNOPower.Barbarian_Sprint, CanCastFlags.NoTimer) && !Player.IsIncapacitated &&
                    (
                    // last power used was whirlwind and we don't have sprint up
                        (LastPowerUsed == SNOPower.Barbarian_Whirlwind && !GetHasBuff(SNOPower.Barbarian_Sprint)) ||
                    // Fury Dump Options for sprint: use at max energy constantly
                        (Settings.Combat.Barbarian.FuryDumpWOTB && Player.PrimaryResourcePct >= V.F("Barbarian.WOTB.FuryDumpMin") && GetHasBuff(SNOPower.Barbarian_WrathOfTheBerserker)) ||
                        (Settings.Combat.Barbarian.FuryDumpAlways && Player.PrimaryResourcePct >= V.F("Barbarian.WOTB.FuryDumpMin")) ||
                    // or on a timer
                        (
                         (SNOPowerUseTimer(SNOPower.Barbarian_Sprint) && !GetHasBuff(SNOPower.Barbarian_Sprint)) &&
                    // Always keep up if we are whirlwinding, if the target is a goblin, or if we are more than 16 feet away from the target
                         (Hotbar.Contains(SNOPower.Barbarian_Whirlwind) || CurrentTarget.IsTreasureGoblin ||
                          (CurrentTarget.CentreDistance >= V.F("Barbarian.Sprint.SingleTargetRange") && Player.PrimaryResource >= V.F("Barbarian.Sprint.SingleTargetMinFury"))
                         )
                        )
                    ) &&
                    // minimum time between uses
                    TimeSincePowerUse(SNOPower.Barbarian_Sprint) >= V.I("Barbarian.Sprint.MinUseDelay") &&
                    // If they have battle-rage, make sure it's up
                    (!Hotbar.Contains(SNOPower.Barbarian_BattleRage) || (Hotbar.Contains(SNOPower.Barbarian_BattleRage) && GetHasBuff(SNOPower.Barbarian_BattleRage))) &&
                    // Check for minimum energy
                    Player.PrimaryResource >= V.F("Barbarian.Sprint.MinFury");
            }
        }

Have tried several different ways of doing this, but I cannot make it stop spamming sprint during combat. Sprint is totally useless for combat now, and all it does is uselessly waste fury. So I am trying to get it to use sprint for movement only and nothing else.
 
Figured it out, removing this:

Code:
            // Sprint
            if (IsNull(power) && CanUseSprint)
                power = PowerSprint;

And this:

Code:
        public static bool CanUseSprint
        {
            get
            {
                return !UseOOCBuff && CanCast(SNOPower.Barbarian_Sprint, CanCastFlags.NoTimer) && !Player.IsIncapacitated &&
                    (
                    // last power used was whirlwind and we don't have sprint up
                        (LastPowerUsed == SNOPower.Barbarian_Whirlwind && !GetHasBuff(SNOPower.Barbarian_Sprint)) ||
                    // Fury Dump Options for sprint: use at max energy constantly
                        (Settings.Combat.Barbarian.FuryDumpWOTB && Player.PrimaryResourcePct >= V.F("Barbarian.WOTB.FuryDumpMin") && GetHasBuff(SNOPower.Barbarian_WrathOfTheBerserker)) ||
                        (Settings.Combat.Barbarian.FuryDumpAlways && Player.PrimaryResourcePct >= V.F("Barbarian.WOTB.FuryDumpMin")) ||
                    // or on a timer
                        (
                         (SNOPowerUseTimer(SNOPower.Barbarian_Sprint) && !GetHasBuff(SNOPower.Barbarian_Sprint)) &&
                    // Always keep up if we are whirlwinding, if the target is a goblin, or if we are more than 16 feet away from the target
                         (Hotbar.Contains(SNOPower.Barbarian_Whirlwind) || CurrentTarget.IsTreasureGoblin ||
                          (CurrentTarget.CentreDistance >= V.F("Barbarian.Sprint.SingleTargetRange") && Player.PrimaryResource >= V.F("Barbarian.Sprint.SingleTargetMinFury"))
                         )
                        )
                    ) &&
                    // minimum time between uses
                    TimeSincePowerUse(SNOPower.Barbarian_Sprint) >= V.I("Barbarian.Sprint.MinUseDelay") &&
                    // If they have battle-rage, make sure it's up
                    (!Hotbar.Contains(SNOPower.Barbarian_BattleRage) || (Hotbar.Contains(SNOPower.Barbarian_BattleRage) && GetHasBuff(SNOPower.Barbarian_BattleRage))) &&
                    // Check for minimum energy
                    Player.PrimaryResource >= V.F("Barbarian.Sprint.MinFury");
            }
        }

Will cause it to only use sprint out of combat, since sprinting in combat no longer has any effect. EXP and GPH both went up after changing this.
 
Last edited:
Will make an option for Sprint OOC only.

I think, sprint is useful in combat in some scenarios and builds (e.g. chasing Summoners and fleeing mobs).
 
Will make an option for Sprint OOC only.

I think, sprint is useful in combat in some scenarios and builds (e.g. chasing Summoners and fleeing mobs).

Totally, but the problem is it's spamming sprint so much it uses up all fury. Even when it's not checked in the options, it still spams sprint in combat even when not in WOTB I guess to dump fury for WW/hurricane tornados but that build is toast anyway. I was using a HOTA build with sprint/marathon for movement, but before I made these changes I had to take sprint out completely because it would cast sprint the instant there was enough fury to do so, leaving no fury for anything else.
 
Sprint with tornado is still effective though, and it is not spammed without haxxing the code.
 
Sprint with tornado is still effective though, and it is not spammed without haxxing the code.

I'm not too sure about this, it feels to me they nerfed it terribly, since every bot and noob in the world was using a RLTW/WW build.
 
Well it's still hitting for 60% weapon dmg each pop, when wearing a high dmg item like skorn it adds up, for show I'm using firewalkers too :)
 
Back
Top