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
  • McGrubbor's Wood web nodes messing up pathing


    Dorkinator
     Share

    Recommended Posts

    The web nodes for McGrubbors wood aren't working. The client tries to use the South gate which will never work. It also wont path inside even though it does appear to be webbed.

    Link to comment
    Share on other sites

    Is there any way to get in there now that our local finder supports?

    If I path to an area inside it walks to the south gate and gets stuck, even if I start next to the north entrance. I'm sure there's a way but the documentation for the web code is MIA and not very self explanatory, there's not any good examples as far as I can tell.
    Link to comment
    Share on other sites

    You should be able to add your own obstacle (object name + action) through the local walker, I'm sure there's a snippet around here somewhere.

     

    This looks right:

    getWalking().getAStarPathFinder().addObstacle(new PassableObstacle("Object Name", "Action", null, null, null));
    

    Call that in onStart and it *should* work :)

    Link to comment
    Share on other sites

    You should be able to add your own obstacle (object name + action) through the local walker, I'm sure there's a snippet around here somewhere.

     

    This looks right:

    getWalking().getAStarPathFinder().addObstacle(new PassableObstacle("Object Name", "Action", null, null, null));
    
    Call that in onStart and it *should* work :)

     

    new PassableObstacle("Loose Railing", "Squeeze-through", new Tile(2661, 3500, 0), new Tile(2662, 3500, 0), new Tile(2662, 3500, 0))
    That will fix it if you want to add it to the API.

     

    For future people wondering how to do this here you go.

     

    public class SuplementaryWeb {
    	public SuplementaryWeb(Walking wf){
    		AbstractWebNode webNode0 = new BasicWebNode(2757, 3477);
    		AbstractWebNode webNode1 = new BasicWebNode(2765, 3476);
    		AbstractWebNode webNode2 = new BasicWebNode(2773, 3476);
    		AbstractWebNode webNode3 = new BasicWebNode(2784, 3478);
    		AbstractWebNode webNode4 = new BasicWebNode(2793, 3473);
    		AbstractWebNode webNode5 = new BasicWebNode(2802, 3477);
    		AbstractWebNode webNode6 = new BasicWebNode(2806, 3481);
    		AbstractWebNode webNode7 = new BasicWebNode(2813, 3482);
    		AbstractWebNode webNode8 = new BasicWebNode(2816, 3487);
    		AbstractWebNode webNode9 = new BasicWebNode(2820, 3487);
    
    
    		webNode1.addConnections(webNode0);
    		webNode2.addConnections(webNode1);
    		webNode3.addConnections(webNode2);
    		webNode4.addConnections(webNode3);
    		webNode5.addConnections(webNode4);
    		webNode6.addConnections(webNode5);
    		webNode7.addConnections(webNode6);
    		webNode8.addConnections(webNode7);
    		webNode9.addConnections(webNode8);
    		AbstractWebNode[] nodes = {webNode0, webNode1, webNode2, webNode3, webNode4, webNode5, webNode6, webNode7, webNode8, webNode9, };
    		for(AbstractWebNode i:nodes){
    			wf.getWebPathFinder();
    		}
    
    		PathObstacle[] obstacles = {
    				new PassableObstacle("Loose Railing", "Squeeze-through", new Tile(2661, 3500, 0), new Tile(2662, 3500, 0), new Tile(2662, 3500, 0))
    		};
    		for(PathObstacle i:obstacles){
    			wf.getAStarPathFinder().addObstacle(i);
    		}
    	}
    }
    
    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.