Jump to content

Is there an event with which you can indicate that the player walks from a position?


Recommended Posts

Posted (edited)

Example being in the position

Position lumbridge = new Position (3222, 3218, 0);

to the position
 

Position chicken = new Position (3177, 3295, 0);

Or do you have to indicate, manually, position to position until you reach the place?

First of all, Thanks.

Edited by trainux
error in language
Posted
17 minutes ago, trainux said:

Example being in the position


Position lumbridge = new Position (3222, 3218, 0);

to the position
 


Position chicken = new Position (3177, 3295, 0);

Or do you have to indicate, manually, position to position until you reach the place?

First of all, Thanks.

From my understanding as long as the second position isn't outside the players local area (minimap I think) a simple walk to position will do, if it is quite far then you can either use the webwalker which makes it's own path but is quite resource heavy, or you can make your own path made up of multiple positions for it to walk, I highly recommend using @Explv's map tool (https://explv.github.io/) for this since it makes it easier.

Posted
15 minutes ago, ScummyBotter said:

From my understanding as long as the second position isn't outside the players local area (minimap I think) a simple walk to position will do, if it is quite far then you can either use the webwalker which makes it's own path but is quite resource heavy, or you can make your own path made up of multiple positions for it to walk, I highly recommend using @Explv's map tool (https://explv.github.io/) for this since it makes it easier.

I was just looking at that tool, but it gave me an error that I do not know :(

osbot.org explvs.png

Posted
22 minutes ago, Dab in a Lab said:

Still learning myself, but if you haven't figured it out, I think this works:

If (!myPlayer().getPosition().equals(chicken)

      getWalking().webWalk(chicken)

wow! in 2 lines! thanks thanks.
Is there a disadvantage to using this? It seems very good to be true.

Posted
1 minute ago, trainux said:

wow! in 2 lines! thanks thanks.
Is there a disadvantage to using this? It seems very good to be true.

Hahaha no problem. I honestly don't know though. I've only been scripting for 4 days, and I'm using an identical statement in my code. Just haven't been able to test it since the script won't start up for some reason

Posted
6 minutes ago, Dab in a Lab said:

Hahaha no problem. I honestly don't know though. I've only been scripting for 4 days, and I'm using an identical statement in my code. Just haven't been able to test it since the script won't start up for some reason

Thanks brother. Problem solved.
 

Posted (edited)
3 hours ago, trainux said:

wow! in 2 lines! thanks thanks.
Is there a disadvantage to using this? It seems very good to be true.

Its just that webwalking is quite resource heavy if your looking to farm - have multiple accs - If you used paths you could get more accs for the same amount of CPU. Resulting in more money

Edited by Luke Reading

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...