Algorithm wise isnt the issue. More because I am new to the api and its pretty rare to get a genie to debug code. Rather have someone's snippet if they are experienced and have used it many times.
Is there a faster way to interact two items with each other, similar to dart fletching or using a chisel on a full inventory. Been using interact() function, have also tried using mouse to click certain square. Is there any way to speed up the interaction ?
I have an object I an clicking by doing
obstacle = objects.closest(27985);
obstacle.interact("Climb");
However, this object is directly next to another object and it often misclicks the wrong obstacle. How can I stop from misclicking the wrong object? I have tried to have the code stop and stand still before trying to interact with the object, but it still can misclick. Any snippets to help?