Examples of RSObject


Examples of org.rsbot.script.wrappers.RSObject

    }
    if (getMyPlayer().getAnimation() != -1 || getMyPlayer().isMoving()) {
      return random(500, 1000);
    }
    if (readyToLeave) {
      final RSObject portal = objects.getNearest(PORTAL_ID);
      if (portal != null) {
        final RSTile portalLocation = portal.getLocation();
        if (portal.isOnScreen()) {
          portal.interact("Enter");
          return random(3000, 4000);
        } else {
          walking.walkTileMM(portalLocation.randomize(2, 2));
          return random(1500, 2000);
        }
View Full Code Here

Examples of org.rsbot.script.wrappers.RSObject

    if (interfaces.getComponent(236, 2).getText().contains("No")) {
      interfaces.getComponent(236, 2).doClick();
      talkDone = true;
      return random(200, 650);
    } else if (talkDone) {//We have finished talking to reaper
      final RSObject portal = objects.getNearest(45803);//get portal
      camera.turnTo(portal);//turn
      if (calc.distanceTo(portal) <= 4) {
        portal.interact("Enter");//Leave
        return random(1200, 1400);
      } else {
        walking.walkTileMM(portal.getLocation()); //walk portal
        return random(1000, 1300);
      }
    }
    return random(200, 400);
  }
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.