BoBP Posted September 27, 2023 Share Posted September 27, 2023 (edited) Hey, Ive been working on a fishing trawler script, but I cant seem to figure out how to walk on the ship. The script is finished, but when I wanted to reposition the character after his contribution was reached, I hit a wall. The positions I get from Explv's Location Assistant can't be found by webwalk or walk. Anyone know what the right approach is here? Thanks in advance. Edited September 27, 2023 by BoBP Quote Link to comment Share on other sites More sharing options...
Czar Posted September 27, 2023 Share Posted September 27, 2023 The best way would be to interact with a tile or to use getWalking().walk to the tile. I personally prefer: Position yourTargetTile = new Position(…,…,…); and then in your onLoop do yourTargetTile.interact(“Walk here”); or the easy way is just getWalking().walk(yourTargetTile) and to find the coordinates for the tile you must use entity debugger tool in osbot right-side panel and hover over the tile you want to explore. if the area is instanced then you will need to find an anchor object (any object that is always there for every game e.g. ladders), get its x/y and then find the difference in x/y to the tile you want to walk to. 1 Quote Link to comment Share on other sites More sharing options...
BoBP Posted September 27, 2023 Author Share Posted September 27, 2023 13 minutes ago, Czar said: if the area is instanced then you will need to find an anchor object (any object that is always there for every game e.g. ladders), get its x/y and then find the difference in x/y to the tile you want to walk to. This seems like something that could work. I'l give that a try. Thanks! Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted September 27, 2023 Share Posted September 27, 2023 (edited) 15 minutes ago, BoBP said: This seems like something that could work. I'l give that a try. Thanks! Use local coordinates instead of world coordinates as it's always on the same place ina certain region To go from local to world again, script.getMap().getBaseX() and Y Edited September 27, 2023 by Khaleesi 1 Quote Link to comment Share on other sites More sharing options...
BoBP Posted September 27, 2023 Author Share Posted September 27, 2023 Both approaches worked. Thanks! Quote Link to comment Share on other sites More sharing options...