Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void fill() {
- status = "Filling "+filling +"s";
- RSObject pump = objects.getNearest(waterSource);
- if(!areBusy() && players.getMyPlayer().getAnimation() != 832) {
- sleep(500, 700);
- inventory.selectItem(fill_ID);
- camera.turnTo(pump);
- camera.setPitch(100);
- sleep(400);
- if(inventory.isItemSelected()) {
- pump.interact("Use");
- sleep(2000);
- }
- while(inventory.contains(fill_ID) && !players.getMyPlayer().isIdle()) {
- sleep(random(1000,1500));
- if (random(1, 2) == 2) {
- antiBan();
- sleep(2500, 3000);
- }
- }
- }
- }
- //////////////////////Walking?
- private void toBank() {
- status = "Walking to bank";
- if (!atBank()) {
- if (falador == true) {
- sleep(random(600,800));
- walking.walkTo(inBank);
- } else
- if(varrock = true) {
- if (calc.distanceTo(walking.getDestination()) < 2 && !getMyPlayer().isMoving()
- && walking.getDestination() == null) {
- walking.walkTo(toBank);
- sleep(random(450,500));
- }while (players.getMyPlayer().isMoving()) {
- sleep(random(500, 550));
- if (random(1,2) == 2) {
- antiBan();
- }
- }
- camera.moveRandomly(50);
- RSObject booth = objects.getNearest(bank_ID);
- if (playerStuck() && !players.getMyPlayer().isMoving()) {
- toBank();
- }
- }
- }
- }
- private void toPump() {
- status = "Walking to " +source;
- RSObject pump = objects.getNearest(waterSource);
- if (!atPump()) {
- if (falador == true) {
- sleep(random(600,800));
- walking.walkTo(atPump);
- }
- else {
- if (varrock == true) {
- walking.walkTo(toFountain);
- sleep(random(350,550));
- if (calc.distanceTo(walking.getDestination()) < 2) {
- walking.walkTo(toFountain);
- }
- while (players.getMyPlayer().isMoving()) {
- sleep(random(500, 550));
- if (random(1,2) == 2) {
- antiBan();
- }
- }
- if (!players.getMyPlayer().isMoving() && walking.getDestination() == null) {
- walking.walkTo(toFountain);
- }
- }
- camera.moveRandomly(random(800, 900));
- }
- if (pump.isOnScreen()) {
- fill();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment