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

Minor Tweaks to the Barb HotA Code Block

hsyuts

New Member
Joined
Jul 16, 2012
Messages
4
Reaction score
0
When trying to cast HotA on a fleeing enemy, the bot would try to get in range to cast the skill.

However, I find that the enemy would often get out of range before the HotA can be casted.

This can occur many times consecutively until the enemy stops fleeing.

What I observe on my screen:
My bot catches up to the enemy to cast HotA, but the enemy gets out of range.
Again, my bot catches up to the enemy to cast HotA, but the enemy gets out of range.
Again, my bot catches up to the enemy to cast HotA, but the enemy gets out of range.
Again, my bot catches up to the enemy to cast HotA, but the enemy gets out of range.
...
Finally, the enemy stops fleeing and got owned.

I found a very simple solution to fix this glitch. Increase the skill range from 12f to 14f and decrease iForceWaitLoopsBefore from 1 to 0. The changes are underlined as shown below.

Code:
                    if (!bOOCBuff && !bCurrentlyAvoiding && !bWaitingForSpecial && hashPowerHotbarAbilities.Contains(SNOPower.Barbarian_HammerOfTheAncients) && !playerStatus.bIsIncapacitated &&
                        playerStatus.dCurrentEnergy >= 20 &&
                       (
                        // More than 75 energy... *OR* 55 energy and target is high on health... 
                            playerStatus.dCurrentEnergy >= 75 || (playerStatus.dCurrentEnergy >= 55 && targetCurrent.iThisHitPoints >= 0.50) ||
                        // OR... target is elite/goblin/boss...
                            targetCurrent.bThisEliteRareUnique || targetCurrent.bThisTreasureGoblin || targetCurrent.bThisBoss ||
                        // OR... player WOTB is active... OR player is low on health...
                            GilesHasBuff(SNOPower.Barbarian_WrathOfTheBerserker) || playerStatus.dCurrentHealthPct <= 0.38
                       ) &&
                       GilesUseTimer(SNOPower.Barbarian_HammerOfTheAncients))
                    {
                        return new GilesPower(SNOPower.Barbarian_HammerOfTheAncients, [B][U]14f[/U][/B], vNullLocation, -1, targetCurrent.iThisACDGUID, [B][U]0[/U][/B], 1, USE_SLOWLY);
                    }

I hope I am not making bad suggestions. If I do, please flame me for it. :-)
 
Back
Top