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

Loot Order

tozededao

Community Developer
Joined
Jan 15, 2010
Messages
1,225
Reaction score
5
This issue is something that is present since I can remember but it is really annoying and maybe it is time to work on it :p

If the bot is walking to pick loot and meanwhile it engages a new target when that new target also drops loot the bot goes to the first loot instead of grabbing the closest loot first and then picks the second loot. It is really annoying. The loot is probably being added in a FIFO queue and should be reordered based on closest first after you finish combat.
 
On Mobile, so,
Lootitemtask is exposed, do it yourself. That Com Dev title isn't for show, is it?

Edit

Code:
if (_itemLocation == null)
			{
				var myPos = LokiPoe.MyPosition;

				_itemLocation =
					AreaStateCache.Current.ItemLocations.Where(
						i => !Blacklist.Contains(i.Id) &&
							(_leashRange == -1 ||
							(i.Position.Distance(myPos) < _leashRange && ExilePather.PathDistance(myPos, i.Position) < _leashRange)))
						.OrderBy(l => myPos.Distance(l.Position))
						.FirstOrDefault();

				_itemStopwatch.Reset();
				_interactStopwatch.Reset();

				_interactTries = 0;

				if (_itemLocation != null)
				{
					Log.InfoFormat("[{0}] _itemLocation set to: {1} with id {2} at {3}.", Name, _itemLocation.Name, _itemLocation.Id,
						_itemLocation.Position);
				}
			}

From LootItemTask.cs

Working as intended, you gon goof bud.
 
Last edited:
This issue is something that is present since I can remember but it is really annoying and maybe it is time to work on it :p

Won't change, as what you are asking for, was the main source of the back-and-forth loops in older EB, which were even worse. You're free to try and code something that works better though, not saying the current code is perfect, but picking something, then doing it is the best way to avoid even worse issues. :)
 
Back
Top