Jump to content

Bank booths


botlyfe

Recommended Posts

My script at the moment is at a bank with 4 booths in a row. It usually clicks the one that is at least 1 square away instead of the one in front of it, causing it to walk back and forth a lot because it is a banking skill that I am testing.

 

Is there a way to restrict it to just 1 bank booth only so the character does not move every 2 inventories to a new bank booth?

 

Thanks

  • Like 1
Link to comment
Share on other sites

The distance calculation is currently rounding itself off so diagonal entities appear closer than vertical/horizontal. I would change it in the API however I remember asking @Laz about this awhile ago and he liked it how it was.

To op: use the real distance. So objects.closest(name, Boolean real distance);

Just how swiz said tile are round off, when using the Boolean real distance it will calculate which is the closest without rounding

Edited by josedpay
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...