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
  • Open source saltpetre script


    Hashtag

    Recommended Posts

    Posted

    Always good to have more snippets available. It's helpful to comment your code so you can explain to others exactly what is happening as well, especially new scripters :)

    Posted

    Thank you for providing the way you code scripts. I will definetely take a look at it!

    Posted

    Thank you so much! Snippets from more experienced scripters are pure gold for newbies.

    Posted
    	private boolean weKnowWhereItIs () {
    		for (int i = 0; i < areaStatus.length; i++)
    			if (areaStatus[i] == 1)
    				return true;
    		return false;
    	}
    
    	private int indexOfWhereItIs () {
    		for (int i = 0; i < areaStatus.length; i++)
    			if (areaStatus[i] == 1)
    				return i;
    		return -1;
    	}
    

    this could just be 1 function, indexOfwhereItIs, you dont need the other 1

    Posted
    	private boolean weKnowWhereItIs () {
    		for (int i = 0; i < areaStatus.length; i++)
    			if (areaStatus[i] == 1)
    				return true;
    		return false;
    	}
    
    	private int indexOfWhereItIs () {
    		for (int i = 0; i < areaStatus.length; i++)
    			if (areaStatus[i] == 1)
    				return i;
    		return -1;
    	}
    

    this could just be 1 function, indexOfwhereItIs, you dont need the other 1

     

     

    Good point! I am not exactly sure why I ended up writing it like that. Anyone who uses this is free to modify and improve the code =)

    Posted

    I've been using this script and it is great ! I found just one problem, in a specific position of the saltpetre mine it gets stuck because its too far from the mine and then the camera angle can click on it. How do I make the player go closer to the saltpetre in order to prevent this ??

    Archived

    This topic is now archived and is closed to further replies.

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