Jump to content

Walking around under runescape


dynamicninja

Recommended Posts

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?

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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