Bredz 6 Share Posted July 3, 2019 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 More sharing options...
AsBakedAsCake 200 Share Posted July 3, 2019 (edited) 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 July 3, 2019 by AsBakedAsCake Link to comment Share on other sites More sharing options...
NovaGTX 106 Share Posted July 4, 2019 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. Bredz 1 Link to comment Share on other sites More sharing options...
Bredz 6 Author Share Posted July 4, 2019 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. AsBakedAsCake 1 Link to comment Share on other sites More sharing options...
NovaGTX 106 Share Posted July 4, 2019 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now