Examples of interact()


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

          return buy(itemID, (count - 10));
        } else {
          return false;
        }
      } else if (count >= 5 && count < 10) {
        if (item.interact("Buy 5")) {
          sleep(random(500, 700));
          return buy(itemID, (count - 5));
        } else {
          return false;
        }
View Full Code Here

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

          return buy(itemID, (count - 5));
        } else {
          return false;
        }
      } else if (count >= 1 && count < 5) {
        if (item.interact("Buy 1")) {
          sleep(random(500, 700));
          return buy(itemID, (count - 1));
        } else {
          return false;
        }
View Full Code Here

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

        sleep(500, 800);
      }
    } else if ((undecidedID = getUndecidedCoffin()) != -1) {
      final RSItem item = inventory.getItem(undecidedID);
      if (item != null) {
        if (item.interact("Check")) {
          final long systemTime = System.currentTimeMillis();
          while (System.currentTimeMillis() - systemTime < 8000 && !interfaces.get(INTERFACE_COFFIN).isValid()) {
            sleep(50, 150);
          }
          sleep(1200, 2500);
View Full Code Here

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

        }
      }
    }
    if (!interfaces.clickContinue() && getMyPlayer().getAnimation() == -1) {
      final RSNPC demon = npcs.getNearest(demonID);
      demon.interact("Talk-to");
    }
    return random(2000, 2500);
  }

  public boolean findAndUseMat(final int signID) {
View Full Code Here

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

      }
      return random(500, 1200);
    }
    if (talkToNPC) {
      getNPCInView(theNPC);
      return theNPC.interact("Talk-to") ? random(800, 2000) : 0;
    }
    if (interfaces.get(220).isValid()) {
      return atCloseInterface(220, 16) ? random(500, 800) : 0;
    }
    if (getMyPlayer().isMoving() || getMyPlayer().getAnimation() != -1) {
View Full Code Here

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

        && door == null) {
      if (!calc.tileOnScreen(mordaut.getLocation())) {
        walking.walkTileMM(mordaut.getLocation());
      }
      if (mordaut != null) {
        mordaut.interact("Talk-to");
      }
      return random(1500, 1700);
    }
    if (interfaces.get(nextObjectInterface).isValid()) {
      log.info("Question Type: Next Object");
View Full Code Here

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

      return random(1000, 1200);
    }
    final RSNPC certer = npcs.getNearest("Giles", "Miles", "Niles");
    if (certer != null) {
      if (calc.distanceTo(certer) < 4) {
        certer.interact("Talk-to");
        return random(2500, 3000);
      } else {
        final RSTile certerLocation = certer.getLocation();
        walking.walkTileMM(certerLocation.randomize(2, 1));
        return random(3000, 3500);
View Full Code Here

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

        final RSNPC herald = npcs.getNearest("Frog Herald");
        if (calc.distanceTo(herald) < 5) {
          if (!calc.tileOnScreen(herald.getLocation())) {
            camera.turnTo(herald);
          }
          herald.interact("Talk-to");
          return random(500, 1000);
        } else {
          walking.walkTileMM(herald.getLocation());
          return random(500, 700);
        }
View Full Code Here

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

      final RSObject portal = objects.getNearest(12731, 11373);
      if (portal != null) {
        if (!calc.tileOnScreen(portal.getLocation())) {
          walking.walkTileOnScreen(portal.getLocation());
        } else {
          if (portal.interact("Enter")) {
            return random(2000, 3000);
          }
          return 200;
        }
      }
View Full Code Here

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

      if (!obj.isOnScreen()) {
        if (walking.walkTileMM(obj.getLocation())) {
          sleep(500, 750);
        }
      } else {
        if (obj.interact("Operate")) {
          sleep(1000, 1500);
        }
      }
    } catch (final Exception ignored) {
    }
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.