Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package coords;
- import java.util.Random;
- public class InventorySlots {
- }
- //row 1 slot 1, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 876;
- int y = ran.nextInt(7) + 310;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 1 slot 2, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 919;
- int y = ran.nextInt(7) + 308;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 1 slot 3, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 964;
- int y = ran.nextInt(7) + 307;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 1 slot 4, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 1004;
- int y = ran.nextInt(7) + 308;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 2 slot 1, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 877;
- int y = ran.nextInt(7) + 346;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 2 slot 2, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 918;
- int y = ran.nextInt(7) + 345;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 2 slot 3, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 964;
- int y = ran.nextInt(7) + 381;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row2 slot 4, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 1003;
- int y = ran.nextInt(7) + 343;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 3 slot 1, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 880;
- int y = ran.nextInt(7) + 380;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 3 slot 2, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 923;
- int y = ran.nextInt(7) + 381;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 3 slot 3, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 962;
- int y = ran.nextInt(7) + 381;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 3 slot 4, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 1003;
- int y = ran.nextInt(7) + 381;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 4 slot 1, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 876;
- int y = ran.nextInt(7) + 414;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 4 slot 1, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 919;
- int y = ran.nextInt(7) + 414;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 4 slot 3, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 964;
- int y = ran.nextInt(7) + 414;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 4 slot 4, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 1004;
- int y = ran.nextInt(7) + 414;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 5 slot 1, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 876;
- int y = ran.nextInt(7) + 450;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 5 slot 2, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 919;
- int y = ran.nextInt(7) + 450;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 5 slot 3, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 964;
- int y = ran.nextInt(7) + 450;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 5 slot 4, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 1004;
- int y = ran.nextInt(7) + 450;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 6 slot 1, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 876;
- int y = ran.nextInt(7) + 487;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 6 slot 2 , goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 919;
- int y = ran.nextInt(7) + 487;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 6 slot 3, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 964;
- int y = ran.nextInt(7) + 487;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 6 slot 4, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 1004;
- int y = ran.nextInt(7) + 487;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 7 slot 1, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 876;
- int y = ran.nextInt(7) + 523;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 7 slot 2, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 919;
- int y = ran.nextInt(7) + 523;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 7 slot 3, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 964;
- int y = ran.nextInt(7) + 523;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
- //row 7 slot 4, goes left to right
- Point startLocation = MouseInfo.getPointerInfo().getLocation();
- int X = startLocation.x;
- int Y = startLocation.y;
- for (int i = 0; i < 100; i++) {
- Random ran = new Random();
- int speed = ran.nextInt(1) + 3;
- int delay = ran.nextInt(200) + 300;
- int x = ran.nextInt(7) + 1004;
- int y = ran.nextInt(7) + 523;
- int mov_x1 = ((x * i) / 100) + (X * (100 - i) / 100);//First x, second x is previous x
- int mov_y1 = ((y * i) / 100) + (Y * (100 - i) / 100);//^Diddo
- robot.mouseMove(mov_x1, mov_y1);
- robot.delay(speed);
- }
Add Comment
Please, Sign In to add comment