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

DH m6 Combat Routine for 2.1.2 for Kridershot with working Preperation ability

Syn-Ack

Member
Joined
Jun 15, 2012
Messages
849
Reaction score
5
UPDATE@1/23/15: PLEASE USE LATEST TRINITY VERSION 2.3.3 FOR A UP TO DATE DEMONHUNTER COMBAT ROUTINE FIXED BETTER THEN THIS. Way better working routine with clean code!



I have seen a lot of people asking about how to make X work with kridershot and how to get prep punishment to be used by the bot, Mostly I have been showing people how to do it by copy pasting snippets of code into their combat routine .cs file. I am by no means an expert on this, But it was simple enough to fix a few things. Anyone who can improve upon it please do(ie clean up the prep code to get rid of shadowpower junk in it that isn't used, just looks ugly but still functions 100% fine).

Here are a few things to know or understand if you are using m6 set with a kridershot in 2.1.2 and wondering why your bot wont fire CA and just spams elemental arrow. It is because in the DH combat routine, EA comes before CA. So to fix this, I simply put CA right above EA. To fix the bot to use prep punishment, I simply rewrote a few pieces of the shadow power code that no one uses so that instead of using Preperation for discipline(in 2.1.2 everyone uses Punishment rune, +75 hatred so the discipline doesn't matter) So basically I changed secondaryresource(disc) to primaryresource(hatred) and changed the value to use prep when you get to 40 hatred or lower. NOW I have it set to 40 because I have 125 hatred(+25 hatred via paragon pts) so if you DO NOT have any para points into hatred I suggest you manually edit this number to 25 or 30 for best use but it should not be too big of a difference at 40.

Onto the upload, simply open your bot folder and go to Plugins -> Trinity -> Combat -> Abilities folder, and replace this demonhuntercombat.cs file over your old one.

*For non-kridershot users, This should work just fine as bug works in reverse it seems. It detects if you have a kridershot equipped, and if you do it will only shoot EA nonstop instead of using CA. This fixes it so it uses CA as its primary spender and EA as a generator/backup shooter.

How to change the value if you wish to use prep - punishment at a lower hatred +75 hatred @ 40 remaining = total of 115 so you may occasionally waste 1-15 hatred if you leave it at 40 if you have no paragon points into this but primarily it is not a big issue because you will barely ever land exactly on 40 hatred while the bot is spamming attack spenders. But regardless, if you want to change it open up the DemonHunterCombat.cs file

Search for this line of code. Simply change 2 the number 40s, to 25. or copy paste this entire code over the existing one there.

// Spam Shadow Power - fixed for prep punishment
if (Settings.Combat.DemonHunter.SpamShadowPower && CanCast(SNOPower.DemonHunter_ShadowPower) && !Player.IsIncapacitated &&
(!GetHasBuff(SNOPower.DemonHunter_ShadowPower) || Player.CurrentHealthPct <= Trinity.PlayerEmergencyHealthPotionLimit) && // Uses Preparation when equal or less then 40 hatred
((!Runes.DemonHunter.Punishment.IsActive && Player.PrimaryResource <= 40) || (Runes.DemonHunter.Punishment.IsActive && Player.PrimaryResource <= 40)) &&
(Settings.Combat.DemonHunter.SpamShadowPower && Player.SecondaryResource <= 25))
{
return new TrinityPower(SNOPower.DemonHunter_ShadowPower);
}


If anyone more experienced can think of or make any more improvements would certainly be nice. Sentries work pretty good atm, but with custom engineering the bot still drops them pretty constantly, usually if its a long fight or a multiple high hp elite/unique packs. the bot will recast a sentry again that has been u p for maybe 20 seconds and doesn't expire for ~40 more. I don't know if changing this to detect custom eng would be better or leaving it alone would though. For when its not stuck on high hp grift targets where it can drop 5 sentries in one spot, in a normal t6 rift for instance it is VERY efficient in the method it works.


questions? opinions? any feedback, criticism is welcome!
 

Attachments

Last edited:
Working perfect, just one thing that needs to get fixed. Its the dimensional channeling buff :/ He keeps spamming Sentry and nothing else...... :S that buff is so epic and the bot completely waste it.
 
Working perfect, just one thing that needs to get fixed. Its the dimensional channeling buff :/ He keeps spamming Sentry and nothing else...... :S that buff is so epic and the bot completely waste it.
´

Vouch!
 
Thanks for the file Syn-Ack. I've incorporated the ideas into the next Trinity (in that "cleaner way" you were thinking), supporting both kridershot and non-kridershot builds.
 
Cool rrrix, thats nice to know. I have been trying to help back in any way possible I can but I am slowly learning, Profiles I am still very unfamiliar with. combat routines aren't too hard for me to look at a pre made one and change a few abilities and values around. The most im trying to do so far is record any bugs/issues and find out what/why they happen. I might start video recording certain new ones that pop up to make it easier for you to see a long with a possible log to go with it. But I Am pretty sure you know any of the current bugs and are working on them.

I used to code C++ quite well, and could dive into this stuff and pick it up quickly. Sadly the high doses of opiates for pain management, and the benzos I take for sleep kill any actual GOOD thoughts and even my entire process of being able to code for the last few years now just doesn't work when my mind is so foggy.

´

Vouch!

Best thing I would suggest about the channeling pylons would to simply disable them in the shrines for now. Although I did not do that and have had very limited issues with it(Guess you majorly mean the grift ones not the norm rift ones). I have yet to bot grift's so I can't speak for that.

One thing I am trying to do is figure out if theres any way I can cut down on the goblin pack spam. It is kind of like the old days where using a boon dropped so many stacks of gold it overwhelmed the bot, eventually causing it to give system memory errors that would cause it to skip various craft mats, gems, and on rare occasions a legendary. The goblin packs basically do this on a much larger scale, to the point when the bot knocks them dead, so much stuff drops the bot gets spun around and can either pickup the legs, and half the gems, a bit of craft mats. or stand there all altogether til timer trips you out of game. Having tons of craft mats already myself, I disabled picking up dust/crystals/marquise only imperial and higher gems. But unfortunately the bot still processes all the drops, So it doesn't seem to matter whether you have it set to pick up or avoid although the less you pick up the higher chance of success it seems.
 
Last edited:
Hey,

I have a Kridershot pre 2.1.2, but is a good version.
Your file "DemonHunterCombat.cs" dosent work for me. My bot use only the Sentry and ElementalArrow.
Any idea?^^

Thank you :)
 
muqq, place Cluster Arrow section before Elemental Arrow like this:

// Cluster Arrow
if (CanCast(SNOPower.DemonHunter_ClusterArrow) && !Player.IsIncapacitated &&
((Player.PrimaryResource >= 40 && !IsWaitingForSpecial) || Player.PrimaryResource > minEnergyReserve))
{
return new TrinityPower(SNOPower.DemonHunter_ClusterArrow, V.F("DemonHunter.ClusterArrow.UseRange"), CurrentTarget.ACDGuid);
}

// Elemental Arrow for kridershot
if (CanCast(SNOPower.DemonHunter_ElementalArrow) && !Player.IsIncapacitated && Legendary.Kridershot.IsEquipped)
{
return new TrinityPower(SNOPower.DemonHunter_ElementalArrow, 65f, CurrentTarget.ACDGuid);
}

// Elemental Arrow for non-kridershot
if (CanCast(SNOPower.DemonHunter_ElementalArrow) && !Player.IsIncapacitated && !Legendary.Kridershot.IsEquipped &&
((Player.PrimaryResource >= 10 && !IsWaitingForSpecial) || Player.PrimaryResource >= minEnergyReserve))
{
return new TrinityPower(SNOPower.DemonHunter_ElementalArrow, 65f, CurrentTarget.ACDGuid);
}

// Elemental Arrow for Lightning DH
if (CanCast(SNOPower.DemonHunter_ElementalArrow) && !Player.IsIncapacitated && Runes.DemonHunter.BallLightning.IsActive &&
Passives.DemonHunter.NightStalker.IsActive && Legendary.MeticulousBolts.IsEquipped && Player.PrimaryResource >= 10)
{
var bestTarget = TargetUtil.GetBestPierceTarget(40f);

if (bestTarget != null)
return new TrinityPower(SNOPower.DemonHunter_ElementalArrow, 10f, bestTarget.Position);
return new TrinityPower(SNOPower.DemonHunter_ElementalArrow, 10f, CurrentTarget.Position);
}
 
This combat.CS is not working withe the new DB!

By the way i like to use the Multishot and vengeance with the rune seethe and not EA with CA!.. i think is bether.. can some one help me with DH.CS?? ( i have kridershot and cindercot ).
 
Last edited:
bump for update, new trinity release has all these issues fixed and working great.
 
With a Kridershot equipped, sometimes the bot will stop casting elemental arrow which is configured as primary attack. The bot will continue to cast nothing until the bot makes a secondary skill cast. The bot looks like he is attacking but no elemental arrow is cast.

Anyone else seen this behavior?
 
There could be a few reasons behind this, Mostly I have seen its caused by a player issue since the bot usually sends the command to start attacking with the new ability HOWEVER if for some reason the bot is mid cast or mid shot or doing whatever at the same time, Your bot will fire regular arrows(even with EA/kridershot) and its not fixed until it casts another ability and refreshes. This should rarely happen though. It is kind of like if you are playing manually, you spam CA down to 0 hatred once your out you start shooting regular arrows, no special type just plain old shoot. I noticed this a few times on my regular manual play when I swap back and forth between CA and EA even though EA is a generator with my kridershot, if I don't properly re-click EA to shoot there is a chance at me shooting regular arrows and gaining no hatred per shot(makes it quite annoying) but this is pretty much a game bug.
 
skills all revolve around your build, preferences, and gear. Personally I run a +40% fire cindercoat multishot:arsenal for botting T6 with kridershot because put simply, it gets the job done, MS cost around 10-11 hatred per cast of its original 25 and shoots 3 rockets per(with ballisitics +100% rocket dmg its big damage, plenty to take care of t6 or sub grift 40 with ease solo). 30% fire RCR, and 8% gloves, shoulders, 10% paragon and 10% weapon should put you well over 60% RCR for fire, and only about 32-34% for everything else. IF YOU USE VAULT, DROP TUMBLE FOR TRAIL OF CINDERS. Each vault will cost 4 disc per, as opposed to tumble rune costing the initial 8, then 4, then 8, then 4, then 8 then 4. As trail of cinders is considered fire.

For playing manually I run the normal cold CA maelstrom setup. Prides fall for 30% RCR, I have 8% RCR on gloves/shoulders and 10% on my kridershot, 10% paragon. This adds up to just about 64% RCR almost. I also use this to bot bounties because you can't use illusory boots with the t6 fire clear build I mentioned at the top and keep your set bonus or RCR intact also.

I have taken a liking to auto botting grifts and trial keystones with the top multishot build(I have a second pair of ancient boots, and an ancient quiver rolled for MS as well as ancient mara helm. This allows me to easily pull 42-43 trial keys or set the bot to bail out around wave rank 32-35 and stack up ~30 of these, and run this solely for exp and either upgrade key, or level new gems.

As far as the rest of the skills go, This goes for both fire and cold:
Vault:tumble (trail of cinders for fire if you have 30% RCR + a 30% FRCR cindercoat)
MS:arsenal - CA LFB - or CA maelstrom your choice on slot #2
Companion: Wolves(some people prefer to select no rune, Please select the wolf rune if you run with teammates as they will hear howling alerting them to the dmg buff you used. 30s cooldown)
Preperation: Punishment(+75 hatred, used in all 3 above builds, and probably every single 2.1.2 build even those with kridershots. 20s cooldown)
EA: Frost arrow(Kridershot users only), Otherwise go evasive fire:focus(7hatred per shot). This varies on your preference, You can use entangling shot: Justice Served(6 hatred gen gives extra impairment for cull the weak)
Sentry: Polar Station(with CE, you have 3 charges, drop 1 sentry ontop of the elite pack/RG or infront of the target monsters where they will be moving through, drop the other 2 sentries next to or behind you at farther distance to benefit from zei's max dmg, If you are grouping and someone in the group IE zdps wd/sader is running bane of the trapped, or someone is chilling/impairing the mobs for you whether you are fire MS or cold CA switch to spitfire rune to fire more rockets from each sentry.

I run with a HF ammy with cull the weak, My passives look like this:
Awareness, Custom engineering, Ballisitics, Steady aim(yes I know you don't get the actual 20% from steady aim, but for a 2h bow ie krider it beats archery 8% dmg by a good 5-8% more.) With no HF ammy you want to drop steady aim for cull the weak.

Any questions ask.
 
Last edited:
Hi Buddys,

Can you teach me how to replace combat.cs with new edition?
I shut down DB and overwrite combat.cs accordingly, restart DB but Trinity get malfunction.
Any help for this?

Thank you.
 
Back
Top