@rrrix: Does Cursed Chests have their own GObjectType because changing anything here does nothing. I've tried lowering the "Open Container Range" as low as 15 and he still rush for the chest through mobs/elites etc.. like there is no tomorrow.
This is really bad for a ranged class like a Wizard.
I don't think a log from me can help you with this, can it? There is no error and the script is most likely doing what it's suppose to.
I will attach the log file anyways.
View attachment 2136 2014-04-12 19.02.txt.zip
Appreciate if you could shed some light on this.
Code:
case GObjectType.Container:
{
// Need to Prioritize, forget it!
if (prioritizeCloseRangeUnits)
{
objWeightInfo += " prioritizeCloseRangeUnits";
cacheObject.Weight = 0;
break;
}
float maxRange = Settings.WorldObject.ContainerOpenRange;
if (cacheObject.InternalName.ToLower().Contains("chest_rare"))
maxRange = 250f;
if (navBlocking)
{
objWeightInfo += " NavBlocking";
cacheObject.Weight = 0;
break;
}
// Weight Containers
cacheObject.Weight = (maxRange - cacheObject.CentreDistance) / maxRange * 100d;
// Very close containers get a weight increase
//if (cacheObject.CentreDistance <= 8f)
// cacheObject.Weight += 600d;
// Was already a target and is still viable, give it some free extra weight, to help stop flip-flopping between two targets
//if (cacheObject.RActorGuid == LastTargetRactorGUID && cacheObject.CentreDistance <= 25f)
// cacheObject.Weight += 400;
// If there's a monster in the path-line to the item, reduce the weight by 50%
if (CacheData.MonsterObstacles.Any(cp => MathUtil.IntersectsPath(cp.Position, cp.Radius, Player.Position, cacheObject.Position)))
cacheObject.Weight *= 0.5;
// See if there's any AOE avoidance in that spot, if so reduce the weight to 1
if (CacheData.TimeBoundAvoidance.Any(cp => MathUtil.IntersectsPath(cp.Position, cp.Radius, Player.Position, cacheObject.Position)))
cacheObject.Weight = 1;
break;
if (TargetUtil.AnyMobsInRange(30f))
cacheObject.Weight = 1;
}
}
This is really bad for a ranged class like a Wizard.

I don't think a log from me can help you with this, can it? There is no error and the script is most likely doing what it's suppose to.
I will attach the log file anyways.
View attachment 2136 2014-04-12 19.02.txt.zip
Appreciate if you could shed some light on this.
Last edited: