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

Targeting Priority

Hue

Member
Joined
Mar 21, 2014
Messages
34
Reaction score
0
Is it possible to choose what to attack first? If yes, how?
 
Kind of. Trinity uses a weight system to determine what to focus on.
For example with Treasure Goblin Kamikaze enabled it sets the weight for treasure goblins to 25,000.
In some cases having a certain mob weigh too much can cause deaths or other issues.

If you would like to test it out first you will need to do an Info Dump with the mob on screen that you want to add weight to.
You do that by loading DB, starting the bot, then stopping it. Switch to the Info Dump tab and go find the mob you want to add.
With the mob alive on screen click the Dump Objects button and then find the ActorSNO number for the mob.

Open Plugins\Trinity\Combat\Weightings.cs and find "// Special additional weight for corrupt growths in act 4 ONLY if they are at close range (not a standard priority thing)"
Right above that comment add the following:
Code:
                                        if ((cacheObject.ActorSNO == ########) && cacheObject.CentreDistance <= 60f)
                                            cacheObject.Weight += 30000;

That should work.
 
Thank you!! But seems not to work.

Btw, if I add a "-" before the number, it will kill summoners for last?
// Extra weight for summoners
if (cacheObject.IsSummoner)
{
cacheObject.Weight += -2500;
 
Last edited:
Thank you!! But seems not to work.

Btw, if I add a "-" before the number, it will kill summoners for last?
You can just uncheck the box in Trinity for "Force Kill Summoners".

I'd need more to go on than "but seems not to work" to tell you what's wrong.
Keep in mind, this is a weight system, it's not 100% guaranteed that it will attack whatever mob you have it set to, there are a lot of variables that get factored in to avoid unnecessary deaths and other issues.
 
Thank you!! But seems not to work.

Btw, if I add a "-" before the number, it will kill summoners for last?

You can dump object to find ActorSNO of Summoner and add it to your profile:
Code:
<TargetBlacklists>
	<TargetBlacklist actorId="ActorSNO" />
</TargetBlacklists>
 
You can dump object to find ActorSNO of Summoner and add it to your profile:
Code:
<TargetBlacklists>
	<TargetBlacklist actorId="ActorSNO" />
</TargetBlacklists>

If I do it, I will have a problem on TrinityTownPortal, if I change it to UseTownPortal bot will skip a lot of mob sometimes.
 
Back
Top