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

Change chest range?

Tormiasz

Community Developer
Joined
Jun 16, 2014
Messages
701
Reaction score
5
Hello. Is it possible to chance chest find range? Right now it's finding chests from very far, Id like to adjust the range for my needs (to open them only if they are near). Was looking for this in the API, but couldn't find anything.
 
There are 2 Tasks for chests.

https://www.thebuddyforum.com/exilebuddy-forum/exilebuddy-guides/178338-basicgrindbot-guide.html

Under Tasks Spoiler

HandleBlockingChestsTask and OpenChestTask

I Will assume you are talking about OpenChestTask.

No You cannot change it, it isn't exposed to the public users or devs.
But I have an idea of how it works.
It basically Caches all unopened, non blacklisted, and Bot Routine selected chests via something like
Code:
var chests =
                LokiPoe.ObjectManager.Objects.OfType<Chest>()
                    .Where(s => !s.IsOpened && !s.IsBlackListed && !s.IsUserSelectedToOpen)
                    .OrderBy(s => s.Distance)
                    .ToList();
Something like that.

Now look at the order of the tasks.

You can simple remove OpenChestTask (no radius limit) and that will stop it from opening chests out of screen range.
But you want a custom limit, well you have to code your own, unless Pushedx will expose the values for that task for devs to access.

Long story short, ask Pushedx if you do not want to make your own task.
 
Back
Top