Jump to content

Walking around under runescape


Recommended Posts

Posted

I've been writing a script that requires some walking underground (through doors as well). To do this, obviously webwalk cannot be used, so I've been using walkPath instead.

Now here comes the problem. I want the bot to be able to pick up where it left off. If there is a disconnect, it should be able to pick up even if it is in the middle of running somewhere.

I've tried a state model which was absolutely horrid to work with and I've tried a procedural approach which works but is really unreliable. Does anyone have any ideas on possible methods/improvements?

Posted
On 10/14/2018 at 8:30 AM, dynamicninja said:

I've been writing a script that requires some walking underground (through doors as well). To do this, obviously webwalk cannot be used, so I've been using walkPath instead.

Now here comes the problem. I want the bot to be able to pick up where it left off. If there is a disconnect, it should be able to pick up even if it is in the middle of running somewhere.

I've tried a state model which was absolutely horrid to work with and I've tried a procedural approach which works but is really unreliable. Does anyone have any ideas on possible methods/improvements?

I'm assuming this is an instance?

You can try using local positions - failing that I'd find some static object that is always there and use that as an anchor point to build your pathing. You can translate a local position to an absolute position by:

x = localX + baseX
y = localY + baseY
z = localZ + baseZ

 

Posted

"If you didn't want to use web walking and still support disconnecting, I don't see why you can't just use walkPath" 

Firstly; I honestly didn't know about the web-walking links - I'm going to have to have a look into this for future projects.

Second; After trying a few things, I found webwalk was not working with what I wanted. Specifically moving from Edgeville to the chaos druids. Now that you've mentioned the links I can see why this wouldn't have worked. But still, I even tried webWalking along one of the corridors underground (taking points on the same plane with no obstacles in between )and got an error message saying no path can be found.

http://prntscr.com/l6jp8q

Either way, I ended up using walkPath with a few conditionals to determine which path segment is currently being traversed when moving from the bank to the druids and to handle the obstacles between.

 

Posted

Before I submit any bug reports I'll try it again and see if I can replicate the same Issue. 

Yes that is correct. At first the issue was the whole path and figured webWalker couldn't do it. Then did some tests underground, progressively shortening the path and not including obstacles. 

I'll send you a PM with the code source. It is nowhere near complete and is full of bad practice & a few nitty gritty tings I have to sort out. I'd much rather not share it around at this stage.

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