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

Is it possible to cast Boulder Toss ONLY at Maximum Fury?

monakian

Member
Joined
Aug 24, 2013
Messages
98
Reaction score
6
If it is, then how do i do that?.

Cheers and keep up the good work!

JDM
 
Open ...\Plugins\Trinity\Combat\Abilities\BarbarianCombat.cs and search for "CanUseAncientSpear" until you find that section:

Code:
public static bool CanUseAncientSpear
{
	get
	{
		return !UseOOCBuff && !IsCurrentlyAvoiding && CanCast(SNOPower.X1_Barbarian_AncientSpear) && Player.PrimaryResource >= 25 &&
			CurrentTarget.HitPointsPct >= V.F("Barbarian.AncientSpear.MinHealthPct");
	}
}

Change "Player.PrimaryResource >= 25" to the minimum fury you want to use Ancient Spear at, like "Player.PrimaryResource >= 150" to only use it when at 150 fury or above. I'm not sure how to access maximum fury value in Trinity (to not have to edit the code everytime you change gear/paragon/... if you want to be at absolute maximum fury for Berserker Rage), but someone else might be able to help.
 
Hello, I have a similar issue.
I want my barb use HOTA at max fury (or at least at 100). I tryed to follow your advice logically, but encountered problem.

I went into barbariancombat.cs untril strings:
----------
public static bool CanUseHammerOfTheAncients
{
get
{
return !UseOOCBuff && !IsCurrentlyAvoiding && !Player.IsIncapacitated && !IsWaitingForSpecial && CanCast(SNOPower.Barbarian_HammerOfTheAncients) &&
(Player.PrimaryResource >= V.F("Barbarian.HammerOfTheAncients.MinFury >= 100") || LastPowerUsed == SNOPower.Barbarian_HammerOfTheAncients) &&
(!Hotbar.Contains(SNOPower.Barbarian_Whirlwind) || (Player.CurrentHealthPct >= Settings.Combat.Barbarian.MinHotaHealth && Hotbar.Contains(SNOPower.Barbarian_Whirlwind)));
}
}
------------

And I tried to replace "(Player.PrimaryResource >= V.F" with a value of 100. But this breaks the trinity and preventing it from showing up in the addons tab.
So what am I doing wrong and how to make the hammer to be cast at 100 rage?
 
Revert the file to the original version then open trinity settings, click on "variables" tab then on "open trinity variable configuration".

Then you can scroll down until you find the line with "Barbarian.HammerOfTheAncients.MinFury" and change the value there (default should be 45 if it makes it easier to find it). And remember to press "save" button before closing it.

Then you can tweak it anytime without having to edit the source code and restart bot ;)
 
Last edited:
Back
Top