Jump to content

Welcome to DreamBot!

Download for Free

Supercharge Your Bots

Run unlimited bots today using DreamBot's Covert Mode and
stay more protected.

Upgrade Now
Frequently Asked Questions
  • Are you not able to open the client? Make sure you have Java 8 installed
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
OSRS Gambling

Interested in advertising your business? Reach out today!

Download the DreamBot client today!
Nuclear Nezz

Adding Custom Web Nodes

Recommended Posts

Hello everyone!

In the recent client update (2.9.8.3) I added the ability to add in your own custom web nodes, that you can make do quite literally anything.

Note that handling teleport tab nodes is still going to be pretty rough for you to add in on your own, as they don't really have any "start" tiles of their own, so if you can make them work great, but it's probably easier for you to just check the teleports on your own, in your own logic.

So we already had a class, CustomWebPath, that you could give an array of Tiles to create a basic list of BasicWebNode's, then connect it where ever you needed it to be.

I've taken that class and added in being able to give it a list of your own AbstractWebNode's.

So to start, making your own custom web node.

https://pastebin.com/cXQKwbej

This is a custom "Dungeon entrance" node. I've included a fair amount of comments on the things you should override.

 

Now to add these nodes into the web.

https://pastebin.com/KRJTRrBd

It was easier for me to just use pastebin for these. If anyone has any questions, feel free to ask them. I'm also open to suggestions on ways to make this process easier. There is no addToBeginning yet, which I could add in if that sounds useful.

 

In future updates, I plan on adding in a tracker to see which nodes you're adding into the web, then on script stop it would remove them. This prevents duplicate nodes from being created.

 

Also note, if you're adding in a single individual node, you'll have to do several things (outside of custom path, I mean)

1. Create the node

2. Find the node you want to add it to

3. Add the connections for both of the nodes

4. call webPathFinder.addWebNode(yourNewNode)

#4 is the important part people don't think about, you still have to add it in to our web node list.

You don't have to handle 3 and 4 if you're using the custom web path.

 

Thanks everyone!

 

Share this post


Link to post
Share on other sites

Thread is old, but trying to revive it with a new question.

Since the web nodes only accept the tile X and Y positions,  this works well for dungeons who have their Y positions jump to >9000. How about if you want to do a custom web node for walking through different stories, e.g., different Z values but around the same X-Y tile areas.

Share this post


Link to post
Share on other sites

Do somebody know how to properly use EntranceWebNodes? A buch of code (abstract one will be good enough).

I tied to find some info about native implementation of nodes other than BasicWebNode and i fail to find any usefull information.

I dont even know pourpose of them becouse AgilityWebBode isnt valid at all, it contains only nessesery info for solver?

Share this post


Link to post
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.

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.


×
×
  • Create New...