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
  • Getting (widget?) value


    Bredz

    Recommended Posts

    I'm having a lot of fun making my first script.
     need to get the amount of Pay-dirt I've dumped in the hopper at the Motherlode mine. There is a small widget displaying this. Is there anyway I can get this integer? Currently I have it programmed a bit too static.

    Link to comment
    Share on other sites

    2 hours ago, Bredz said:

    I'm having a lot of fun making my first script.
     need to get the amount of Pay-dirt I've dumped in the hopper at the Motherlode mine. There is a small widget displaying this. Is there anyway I can get this integer? Currently I have it programmed a bit too static.

    Use the game debugger to grab the widgets.

    Edited by AsBakedAsCake
    Link to comment
    Share on other sites

    if (hopper.interact()) {
    	int temp = getInventory().count(12011);
    	sleepUntil(() -> !hasDirt(), Calculations.random(2000, 4000));
    	if ((temp * 256) + getPlayerSettings().getConfig(375) >= 20000) {
    		sleepUntil(() -> getPlayerSettings().getConfig(375) >= 20000,
    				Calculations.random(5000, 10000));
    	}
    }

    Here's a snippet from a MLM script I made a long time ago. Should probably update it to do bitwise shift for the calculation of the PD but this does work AFAIK.

    Link to comment
    Share on other sites

    1 hour ago, NovaGTX said:
    if (hopper.interact()) {
    	int temp = getInventory().count(12011);
    	sleepUntil(() -> !hasDirt(), Calculations.random(2000, 4000));
    	if ((temp * 256) + getPlayerSettings().getConfig(375) >= 20000) {
    		sleepUntil(() -> getPlayerSettings().getConfig(375) >= 20000,
    				Calculations.random(5000, 10000));
    	}
    }

    Here's a snippet from a MLM script I made a long time ago. Should probably update it to do bitwise shift for the calculation of the PD but this does work AFAIK.

    Nice code. I've got mine to work as well using the game debugger.

    Link to comment
    Share on other sites

    1 hour ago, Bredz said:

    Nice code. I've got mine to work as well using the game debugger.

    Great, if you need anything else lemme know.

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