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

if Ignore elite/rare is on

jackus

New Member
Joined
Sep 4, 2012
Messages
428
Reaction score
0
If ignore is on, is there a way to tell Trinity to kill the elite/rare if the are below x% life? I know that there aint in the options, but is there a CODE I could input somewhere?

I ask coz normaly when my barb runs around killing white mobs he also attacks the elite/rare ofc. Some of them are quite fast and keeps up with him, but he dont kill them coz IGNORE is on. So is there a way to add: KILL elite/rare if below 30% hp? So that Trinity dont ignore them when they reach xx% hp left.
 
its in Weighting.cs, when you scroll down and find the if statement for ignoring elites you can add
Code:
cacheObject.HitPointsPct >= 0.30

so it could be something like
Code:
if (Settings.Combat.Misc.IgnoreElites && cacheObject.IsEliteRareUnique && cacheObject.HitPointsPct >= 0.30)
which means it will ignore the elite if ([you are ignoring elites] and [object is an elite] and [objects health is >= 30%])
 
Thank you for helping Polyester:
But I need some more help. I am very bad at this coding stuff.
the if statement for ignoring elites i can only find this:
// Ignore elite option, except if trying to town portal
if (Settings.Combat.Misc.IgnoreElites && (cacheObject.IsEliteRareUnique) && !TownRun.IsTryingToTownPortal())
and
// ignore non-legendaries and gold near elites if we're ignoring elites
// not sure how we should safely determine this distance
if (Settings.Combat.Misc.IgnoreElites && cacheObject.ItemQuality < ItemQuality.Legendary &&

but as far as I can see it has something to do with TP to town and picking up leg items
 
edit the first line you found to be
Code:
if (Settings.Combat.Misc.IgnoreElites && (cacheObject.IsEliteRareUnique) && !TownRun.IsTryingToTownPortal() && cacheObject.HitPointsPct >= 0.30)
which in english means if ([ignoring elites] and [object is an elite] and [not trying to town run] and [object health >= 30%])
 
Thanks. Testing now.

Edit: Works like a charm
 
Last edited:
Back
Top