Bredz 6 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.
AsBakedAsCake 204 Posted July 3, 2019 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.
NovaGTX 106 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 6 Author 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.
NovaGTX 106 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.