Finally I solved getting stuck in the second chest for good
In Combat/HandleTarget.cs replace:
Code:iInteractAttempts = HandleItemInRange();
with:
Code:if(Player.Position.Distance(CurrentTarget.Position) > 2f) { ZetaDia.Me.Movement.MoveActor(CurrentTarget.Position); PlayerMover.TimeLastUsedPlayerMover = DateTime.UtcNow; } else { iInteractAttempts = HandleItemInRange(); }
And also change 2f to 10f in the same file, a little below "private static void SetRangeRequiredForTarget()"
Code:case GObjectType.Item: { TargetRangeRequired = 2f;
This will simply click on the ground on the other side of the chest and use Diablo's built-in navigation instead of Trinity's
if you have some good fury regen, you can use the tornado rune in sprint + the speed bracers... the tornados will destroy some objects by themself and you dont waste time attacking them
btw: @stage2 why the bot runs to chest 1, opens it, going to chest 2, opens it, then goes back to check the 1. chest, checking the second chest, then running a few meters before run ends? he runs 2x to the both chests ^^ and why he doesnt port back at last chest ? he is running a few meters^
Finally I solved getting stuck in the second chest for good
In Combat/HandleTarget.cs replace:
Code:iInteractAttempts = HandleItemInRange();
with:
Code:if(Player.Position.Distance(CurrentTarget.Position) > 2f) { ZetaDia.Me.Movement.MoveActor(CurrentTarget.Position); PlayerMover.TimeLastUsedPlayerMover = DateTime.UtcNow; } else { iInteractAttempts = HandleItemInRange(); }
And also change 2f to 10f in the same file, a little below "private static void SetRangeRequiredForTarget()"
Code:case GObjectType.Item: { TargetRangeRequired = 2f;
This will simply click on the ground on the other side of the chest and use Diablo's built-in navigation instead of Trinity's
dude, you are a god... and im so stupid sometimesYou left chest opening selected in Trinity. That is why at the last location it keeps going back and forth. It should only go to each chest once and then go back if it needs to loot anything.
dude, you are a god... and im so stupid sometimescan you help me another time and tell me how to make it instaleave? im a noob
sry i didnt know about the high banchanceSorry I am against using that exploit and if you feel you must you need to do the research yourself. My FAQ can point you in the right direction if you insist on heading down that path.
sry i didnt know about the high banchance
right before the usetownportal code for instant leave<UsePower questId="1" powerId="00000" />
if a legendary drops out of a chest bot dont run straight back to chest, it runs a little loop i think, how we can fix that?
CaptainAmerica why does my bot sometimes skip the 3. chest he runs up to it and dont open it.
And he SOMETIMES skip the second chest to, the one alone where people cant loot Legendaries sometimes.
Its the one on the last spot on the top.
And for some reason the gold inactivity timer kicks in sometimes, because my char just stands still sometimes.
This is all with the latest beta and trinity .28
Every elegant solution. Utilize D3 navigation until we are within 2f of the object. I was trying to figure out a way to detect in path objects and route around but this is much simpler. Thanks for sharing.
EDIT - Just as a side note do you think it will be an issue with the sheer amount of times the bot will be clicking the item location? The refresh cycle on a loop like that has got to be really high. The default Trinity interaction is paused until item is within range, hence the 2f or 1f.
if(Player.Position.Distance(CurrentTarget.Position) > 2f)
{
if(!isMoving || DateTime.UtcNow.Subtract(PlayerMover.TimeLastUsedPlayerMover).TotalMilliseconds > 500)
{
ZetaDia.Me.Movement.MoveActor(CurrentTarget.Position);
PlayerMover.TimeLastUsedPlayerMover = DateTime.UtcNow;
}
}
else
{
iInteractAttempts = HandleItemInRange();
}
have you found any improvements for the profile too?
Looting has nothing to do with a profile. Trinity is in charge at that point and we could probably change that behavior but it will introduce other issues/challenges. Straight line pathing does not work if their is something in the way!
I'm still modyfing the profile and the OOC file, making them customized for my Demon Hunter. Will let you know when I'm done.![]()