botlyfe Posted August 25, 2014 Share Posted August 25, 2014 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 1 Link to comment Share on other sites More sharing options...
thepecher Posted August 25, 2014 Share Posted August 25, 2014 pos.interact(sI.bot, "Bank"); Where pos is your bank booth position. You can grab that position in your onStart(). Link to comment Share on other sites More sharing options...
Swizzbeat Posted August 25, 2014 Share Posted August 25, 2014 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. Link to comment Share on other sites More sharing options...
Joseph Posted August 26, 2014 Share Posted August 26, 2014 (edited) 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 August 26, 2014 by josedpay Link to comment Share on other sites More sharing options...