Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • 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/Crypto gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • Adding Custom Web Nodes


    Nuclear Nezz
     Share

    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!

     

    Link to comment
    Share on other sites

    • 9 months later...

    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.

    Link to comment
    Share on other sites

    • 2 months later...

    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?

    Link to comment
    Share on other sites

    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
     Share

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.