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

how to set overpower activation every 6 seconds?

demonD

Member
Joined
Jun 6, 2015
Messages
248
Reaction score
5
I would like my barb to activate overpower every 6 seconds instead of on every cool down because it eats away my zodic procs too much, how?
 
in Plugins/Trinity/Combat/Abilities you should have a file called BarbarianCombat.cs open it and find this...

Remeber bot should closed when you edit this code...


You should find this around line 500~
Code:
public static bool CanUseOverPower
        {
            get
            {
                return !UseOOCBuff && CanCast(SNOPower.Barbarian_Overpower) && !Player.IsIncapacitated &&
                    (Hotbar.Contains(SNOPower.Barbarian_BattleRage) && GetHasBuff(SNOPower.Barbarian_BattleRage) || !Hotbar.Contains(SNOPower.Barbarian_BattleRage)) &&
                    (CurrentTarget.RadiusDistance <= V.F("Barbarian.OverPower.MaxRange") ||
                        (
                        TargetUtil.AnyMobsInRange(V.F("Barbarian.OverPower.MaxRange")) &&
                        (CurrentTarget.IsEliteRareUnique || CurrentTarget.IsMinion || CurrentTarget.IsBoss || GetHasBuff(SNOPower.Barbarian_WrathOfTheBerserker) ||
                        (CurrentTarget.IsTreasureGoblin && CurrentTarget.Distance <= V.F("Barbarian.OverPower.MaxRange")) || Hotbar.Contains(SNOPower.Barbarian_SeismicSlam))
                        )
                    );
            }
        }

and replace with:

Code:
public static bool CanUseOverPower
        {
            get
            {
                return !UseOOCBuff && CanCast(SNOPower.Barbarian_Overpower) && !Player.IsIncapacitated && Trinity.TimeSinceUse(SNOPower.Barbarian_Overpower) > [COLOR=#ff0000][B]6000[/B][/COLOR] &&
                    (Hotbar.Contains(SNOPower.Barbarian_BattleRage) && GetHasBuff(SNOPower.Barbarian_BattleRage) || !Hotbar.Contains(SNOPower.Barbarian_BattleRage)) &&
                    (CurrentTarget.RadiusDistance <= V.F("Barbarian.OverPower.MaxRange") ||
                        (
                        TargetUtil.AnyMobsInRange(V.F("Barbarian.OverPower.MaxRange")) &&
                        (CurrentTarget.IsEliteRareUnique || CurrentTarget.IsMinion || CurrentTarget.IsBoss || GetHasBuff(SNOPower.Barbarian_WrathOfTheBerserker) ||
                        (CurrentTarget.IsTreasureGoblin && CurrentTarget.Distance <= V.F("Barbarian.OverPower.MaxRange")) || Hotbar.Contains(SNOPower.Barbarian_SeismicSlam))
                        )
                    );
            }
        }

This should work but i havnt tried it.. got no barbarian
 
I'll handle that. Just one question: this is because of the Killing Spree rune, correct?
 
Ok, it should auto detect your rune now and if it's killing spree or crushing advance it will only cast OP to refresh the buff (every five seconds that is). This change will be in the next official release.

Lmk how it goes
 

Attachments

got it running and it works! As you stated, every 5 seconds now instead of spamming, saves me 5-6 seconds for wotb. Great job Sir! thank alot and keep it up!
 
Back
Top