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

Companion Ability

Husley

New Member
Joined
Nov 12, 2012
Messages
10
Reaction score
0
My Demon Hunter doesnt use his companion abilitys, anyway to change that?

Thanks.
 
You might want to look at the file DemonHunter.cs under \Plugins\Trinity\Combat\Abilities\

That file has the criteria for when abilities are used; my punishment/preperation was not being used and i hacked it by changing

//(Player.PrimaryResource <= 12 && hasPunishment))

into

(Player.PrimaryResource <= 20))

and i think you need to reset demonbuddy after making changes to get it to reload and pick up your modifications.

good luck
 
Hi, Companion script is quite lengthy
I guess following should work
old

if (!Player.IsIncapacitated && CombatBase.CanCast(SNOPower.X1_DemonHunter_Companion) && TargetUtil.EliteOrTrashInRange(30f) &&
Player.SecondaryResource >= 10)
{
return new TrinityPower(SNOPower.X1_DemonHunter_Companion, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 2, 1, WAIT_FOR_ANIM);
}


Into

new
if (!Player.IsIncapacitated && CombatBase.CanCast(SNOPower.X1_DemonHunter_Companion) &&
Player.SecondaryResource >= 10 &&
Player.PrimaryResource <= 100)
{
return new TrinityPower(SNOPower.X1_DemonHunter_Companion, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 2, 1, WAIT_FOR_ANIM);
}
 
Last edited:
Weird that when i post the script
the word Companion will have extra spacing in between
 
Back
Top