Jump to content

Troubles with walking on a ship


Recommended Posts

Posted (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 by BoBP
Posted

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.

  • Like 1
Posted
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!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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