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

Demon Hunter Friendly - M6 Sentry build changes

Well even with current spelldelay on Trinity it takes alot to cast the Sentry.

And after enter the game , it takes 3 second to detect it is in-game and reload everything , that should be improved by DB team.

I don't understand, because i have 27% CDR and set Sentry delay to 4400 , and trinity use it correctly right after it goes off cooldown..
 
HTML:
Changed settings like recommended and now trinity doesnt work lol. Can somebody please upload their demonhunter.cs file with edited cluster + multishot + elemental arrow thanks.
 
Please

HTML:
Changed settings like recommended and now trinity doesnt work lol. Can somebody please upload their demonhunter.cs file with edited cluster + multishot + elemental arrow thanks.

Yea same thing happens to me lol
I suck at coding...

I was able to stop spamming Cluster and Multishots by changing only those two,

but could not do anything with sentry and Elemental Arrows lol

Can someone do this for us please?
 
Last edited:
Yea same thing happens to me lol
I suck at coding...

I was able to stop spamming Cluster and Multishots by changing only those two,

but could not do anything with sentry and Elemental Arrows lol

Can someone do this for us please?

Here I figured it out for you.

1. Delete this section
if (Hotbar.Contains(SNOPower.DemonHunter_ElementalArrow) && Player.PrimaryResource >= 100)
return new TrinityPower(SNOPower.DemonHunter_ElementalArrow, 400f, CurrentTarget.ACDGuid);

2. Find the old // Elemental arrow section that is in green writing and replace its whole context with the following

// Elemental Arrow
bool disableElementalArrowSpender = true;
if (!UseOOCBuff && !IsCurrentlyAvoiding && CombatBase.CanCast(SNOPower.DemonHunter_ElementalArrow) && !Player.IsIncapacitated && Player.PrimaryResource >= 75){
if(!disableElementalArrowSpender)
return new TrinityPower(SNOPower.DemonHunter_ElementalArrow, V.F("DemonHunter.ElementalArrow.UseRange"), CurrentTarget.ACDGuid);
}



Would appreciate it if you could teach me how to set the bot up so it doesn't sit in melee range all the time and how to make it avoid abom/Molten explosions. Also not sure how to stop the bot auto attacking with normal attacks. I want to stop it auto attacking because its not possible for a player to white auto attack without the bot interacting with the game to do so.
 
Last edited:
Thanks for the help bobjoe123 works good for me :)

Now someone have an idea how to "spam" Sentry everytime is up (every 6 seconds) please ? i'm a noob in coding too :p
 
Quote:And replace it in DemonHunter.cs which can be found in Plugins\Trinity\Combat\Abilities
Hi, I'm new here, my bot for demon hunter is running okay..in t4 doing rifts, and I tried to follow these instructions but when I tried to open the DemonHunter.cs file, it came up with the whole " windows can not open this file" and tells me to use a web service to find the correct program. Is there a program I need to have before being able to go further? and what is it? Cheers :)
 
Quote:And replace it in DemonHunter.cs which can be found in Plugins\Trinity\Combat\Abilities
Hi, I'm new here, my bot for demon hunter is running okay..in t4 doing rifts, and I tried to follow these instructions but when I tried to open the DemonHunter.cs file, it came up with the whole " windows can not open this file" and tells me to use a web service to find the correct program. Is there a program I need to have before being able to go further? and what is it? Cheers :)

Ye you must open it with a text editor like notepad or notepad++ (great for coding)

For Sentry spam i found on search but this freeze my game if someone interesed : https://www.thebuddyforum.com/demonbuddy-forum/172539-dh-spam-sentry-cd.html?highlight=spam+sentry
 
can anyone upload a working Demonhunter.cs fpr trinity 2.1.5? need one for disable spam stuff like Elemental Arrow/Cluster Arrow/Multishot
but the code changes from this thread dont work with trinity 2.1.5!
 
can anyone upload a working Demonhunter.cs fpr trinity 2.1.5? need one for disable spam stuff like Elemental Arrow/Cluster Arrow/Multishot
but the code changes from this thread dont work with trinity 2.1.5!

It may not be a good idea to disable these altogether. I'd leave EA enabled for use when you are above a certain amount of hatred. Just to proc Life on Hit when running higher difficulties as sentires do *not* proc this.
 
even when u set ele arrow to 75 in both lines now it doesnt stop spammin it till ur hatred is zero'd... [even below min hatred count]

still waiting on verification since the codings changed to stop it from happening
 
Compiler Error: c:\Users\ZTJY\Desktop\Demonbuddy\Plugins\Trinity\Combat\Abilities\DemonHunter.cs(70,96) : error CS0103: The name 'SentryCoolDown' does not exist in the current context
Compiler Error: c:\Users\ZTJY\Desktop\Demonbuddy\Plugins\Trinity\Combat\Abilities\WizardCombat.cs(29,26) : warning CS0219: The variable 'power' is assigned but its value is never used
Compiler Error: c:\Users\ZTJY\Desktop\Demonbuddy\Plugins\Trinity\Coroutines\DeathBehavior.cs(19,41) : warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

errors =(
 
Compiler Error: c:\Users\ZTJY\Desktop\Demonbuddy\Plugins\Trinity\Combat\Abilities\DemonHunter.cs(70,96) : error CS0103: The name 'SentryCoolDown' does not exist in the current context
Compiler Error: c:\Users\ZTJY\Desktop\Demonbuddy\Plugins\Trinity\Combat\Abilities\WizardCombat.cs(29,26) : warning CS0219: The variable 'power' is assigned but its value is never used
Compiler Error: c:\Users\ZTJY\Desktop\Demonbuddy\Plugins\Trinity\Coroutines\DeathBehavior.cs(19,41) : warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

errors =(

1. open your DemonHunter.cs
2. find //sentry turret and put this line to top of it

like this

int sentryCoolDown = SpellHistory.SpellUseCountInTime(SNOPower.DemonHunter_Sentry, TimeSpan.FromSeconds(24)) >= 4 ? 12 : 6;

// Sentry Turret
if (!UseOOCBuff && !Player.IsIncapacitated && CombatBase.CanCast(SNOPower.DemonHunter_Sentry, CombatBase.CanCastFlags.NoTimer) &&
Player.PrimaryResource >= 30 &&
(SpellHistory.TimeSinceUse(SNOPower.DemonHunter_Sentry) > TimeSpan.FromSeconds(sentryCoolDown) || SpellHistory.DistanceFromLastUsePosition(SNOPower.DemonHunter_Sentry) > 7.5))
{

return new TrinityPower(SNOPower.DemonHunter_Sentry, 65f, TargetUtil.GetBestClusterPoint());
}
 
Last edited:
anybody found a way to turn off the default attack yet so you aren't just shooting normal attacks? especially when you have enough hatred for a skill....
 
add most important changes
- add MinEnergyReserve = 70; use Kridershot; Sentry Turret; Cluster Arrow; Multi Shot; Elemental Arrow = PrimaryResource change
now Sentry build work like charm DemonHunter.cs
-update Fix for DH spamming Mark on already Marked target
 
Last edited:
could someone upload a wohl demonhunter.cs with working sentry ? that would be very helpfull :/
 
Back
Top