Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void registerWorkers() {
- createWorker(new Lopped() {
- public int loop() {
- if(!isLoggedin()){
- return random (1000,3000);
- }
- if(inventory.isFull()){
- inventory.dropAllExcept(pickAxeID);
- }
- ig (getMyPlayer().getAnimation() != -1) {
- if (random(0, 30) < 27)
- mouse.moveMouseRandomly(random(235,734));
- return random(200,1500);
- }
- PhysicalObject miningRocks = objects.getClosestObject(2, ironrockID);
- if (miningRocks != null){
- if(calculations.onScreen(miningRocks.getScreenPos())){
- miningRocks.doAction("Mine");
- }
- else {
- walkin.walkToMM(miningrocks.getLocation());
- }
- }
- return 1000;
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement