Examples of interact()


Examples of org.rsbot.script.wrappers.RSObject.interact()

              if (walking.walkTileMM(portal.getLocation())) {
                sleep(800, 1000);
              }
            }
          }
          if (portal.interact("Enter")) {
            return random(3000, 3500);
          }
        }
        break;
View Full Code Here

Examples of org.rsbot.script.wrappers.RSObject.interact()

        break;

      case OPEN_CHEST:
        final RSObject chest = objects.getNearest(ARNAV_CHEST);
        if (chest != null) {
          if (chest.interact("Open")) {
            return random(1000, 1300);
          }
        }
        break;
View Full Code Here

Examples of org.rsbot.script.wrappers.RSObject.interact()

                return random(500, 700);
              }
              return random(700, 1500);
            }
            camera.turnTo(depo, 20);
            if (depo.interact("Deposit")) {
              sleep(random(1600, 2000));
              if (getMyPlayer().isMoving()) {
                sleep(random(200, 500));
              }
              if (interfaces.get(Bank.INTERFACE_DEPOSIT_BOX)
View Full Code Here

Examples of org.rsbot.script.wrappers.RSObject.interact()

          }
          if (!getMyPlayer().isMoving()
              && calc.tileOnScreen(lever.getLocation())) {
            // if (tiles.doAction(lever.getLocation(), 0.5, 0.5, 170,
            // "Pull")) {
            if (lever.interact("Pull")) {
              sleep(random(1400, 1600));
              if (atLever()) {
                if (balloonToPop != null
                    && interfaces.get(273).getComponent(4)
                    .interact("Close")) {
View Full Code Here

Examples of org.rsbot.script.wrappers.RSObject.interact()

          return random(400, 500);
        }
        if (calc.tileOnScreen(doorTile)) {
          final RSObject gate = objects.getNearest(11177, 11178);
          if (gate != null) {
            gate.interact("Open");
          }
          // tiles.doAction(new RSTile(2085, 4459), 1, 0, 30, "Open");
          return random(500, 600);
        }
        return random(200, 400);
View Full Code Here

Examples of org.rsbot.script.wrappers.RSObject.interact()

      if (depo != null) {
        if (!calc.tileOnScreen(depo.getLocation())) {
          walking.getPath(depo.getLocation()).traverse();
          camera.turnTo(depo);
        } else {
          depo.interact("Deposit");
        }
      }
      if (interfaces.get(Bank.INTERFACE_DEPOSIT_BOX).isValid()) {
        for (int i = 27; i > 23; i--) {
          interfaces.get(11).getComponent(17).getComponent(i).interact("Deposit-All");
View Full Code Here

Examples of org.rsbot.script.wrappers.RSObject.interact()

      return random(1000, 1300);
    }
    RSObject interactionObject;
    if (!removedGraves && (interactionObject = objects.getNearest(FILLED_GRAVES)) != null) {
      getObjectInView(interactionObject);
      interactionObject.interact("Take-coffin");
      return random(1200, 2000);
    } else {
      removedGraves = true;
    }
    int undecidedID;
View Full Code Here

Examples of org.rsbot.script.wrappers.RSObject.interact()

    }
    int undecidedID;
    if ((undecidedID = getUndecidedGrave()) != -1) {
      final RSObject theGrave = objects.getNearest(undecidedID);
      getObjectInView(theGrave);
      if (theGrave.interact("Read")) {
        final long systemTime = System.currentTimeMillis();
        while (System.currentTimeMillis() - systemTime < 8000 && !interfaces.get(INTERFACE_GRAVE).isValid()) {
          sleep(50, 150);
        }
        sleep(1200, 2500);
View Full Code Here

Examples of org.rsbot.script.wrappers.RSObject.interact()

    }
    if (getScore() >= 10) {
      final RSObject exit = objects.getNearest(15010);
      if (exit != null) {
        if (calc.tileOnScreen(exit.getLocation())) {
          if (exit.interact("Exit")) {
            return random(4000, 4200);
          }
        } else {
          camera.setCompass('s');
          walking.walkTileOnScreen(exit.getLocation());
View Full Code Here

Examples of org.rsbot.script.wrappers.RSObject.interact()

    if (pillar != null) {
      if (calc.distanceTo(pillar) > 2 && !pillar.isOnScreen()) {
        walking.walkTileOnScreen(pillar.getLocation());
        return random(500, 600);
      }
      if (pillar.interact("Tag")) {
        final int before = getScore();
        for (int i = 0; i < 50; i++) {
          if (getScore() > before) {
            return random(50, 100);
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.