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

Berserk Rage when low on HP and Ignore pain active

Thrukk

Member
Joined
Apr 27, 2013
Messages
64
Reaction score
0
Battle Rage when low on HP and Ignore pain active

is it possible to change the use of battle rage. it should use it as heal when ignore pain is active. in fc build u dont have any rage problems so it should be no problem to spam it.
 
Last edited:
is it possible to change the use of bersrage. it should use it as heal when ignorepain is active. in fc build u dont have any rage problems so it shouzld be no problem to spam it.
Do you mean only if you have the Bloodthurst pasive and not berseker rage?
 
no i mean when you have ignore pain active with ignorance is bliss u gain around 5300 Health per Fury spent.
So it would be nice if Trinity could spam Battle Rage when Ignore Pain is Active and below say something like 85% HP.
 
Last edited:
I will fix that for you when i wake up im dead tierd now im gonna sleep :)
 
ok guys sorry for the delay.. :c! go to the file "Plugins\Trinity\Combat\Abilitys\BarbarianCombat.cs" open it with whatever text editor you prefer

EDIT: oh yeah when editing trinity files.. you kinda NEED to disable trinity autoupdate in the EZupdater else it wlil replace the new code you made every time you launch the bot and update it your self manually or check for updates whenever you know there is a new one :)

Seach for
Code:
public static bool CanUseBattleRage

then Replace:
Code:
        public static bool CanUseBattleRage
        {
            get
            {
                return !UseOOCBuff && !Player.IsIncapacitated && CanCast(SNOPower.Barbarian_BattleRage, CanCastFlags.NoTimer) &&
                    (!GetHasBuff(SNOPower.Barbarian_BattleRage) || ShouldFuryDump) &&
                    Player.PrimaryResource >= V.F("Barbarian.BattleRage.MinFury");
            }
        }
With:
Code:
        public static bool CanUseBattleRage
        {
            get
            {
                return !UseOOCBuff && !Player.IsIncapacitated && CanCast(SNOPower.Barbarian_BattleRage, CanCastFlags.NoTimer) &&
                    (!GetHasBuff(SNOPower.Barbarian_BattleRage) || ShouldFuryDump || (Player.CurrentHealthPct <= 0.70 && GetHasBuff(SNOPower.Barbarian_IgnorePain))) &&
                    Player.PrimaryResource >= V.F("Barbarian.BattleRage.MinFury");
            }
        }
And you can modiy what % of your health it should start using it at! Player.CurrentHealthPct <= 0.70 << means 70% 1.00 would be 100% i haven't tested the code... but it should work if not tell me :)
 
Last edited:
Tried it and works like a charm. So now i have another question.

Is it possible for trinity to check if the mobs already have a stun debuff ? So that it wont use ground stomp on targets already stunned bei FC ?
Dont know if this is possible but would be nice if you could take a look at it.
 
Last edited:
I don't know about that one cause... i don't know shit about coding i just write random stuff and hope it works to be honest hahah and it usually works but i would assume its possible but i don't know how sorry. but ill see if i can find something
 
Back
Top