Examples of interact()


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

    }

    if (getMyPlayer().getLocation().equals(new RSTile(2911, 4576))) {
      if (getMyPlayer().getAnimation() == -1) {
        final RSObject ob = objects.getNearest(3634);
        ob.interact("Touch");
        return random(5000, 6000);
      }
    }
    if (usePath.equals("None")) {
      getPath();
View Full Code Here

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

    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.interact()

      if (doorDir != 'a' && !getMyPlayer().isMoving()) {
        if (camera.getAngle() - turnCameraTo() < 30 || camera.getAngle() - turnCameraTo() > 30) {
          camera.setAngle(turnCameraTo());
        }
        final RSObject obj = objects.getTopAt(walkToTile, Objects.TYPE_BOUNDARY);
        if (obj != null && obj.interact("Open") || atDoor(walkToTile, doorDir)) {
          return random(2750, 3250);
        }
      }
    }
View Full Code Here

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

      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);
      }
View Full Code Here

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

   * @return <tt>true</tt> if traded.
   */
  public boolean tradePlayer(final String playerName, final int tradeWait) {
    if (!inTrade()) {
      final RSPlayer targetPlayer = methods.players.getNearest(playerName);
      return targetPlayer != null && targetPlayer.interact("Trade with ", targetPlayer.getName()) && waitForTrade(TRADE_TYPE_MAIN, tradeWait);
    } else {
      return isTradingWith(playerName);
    }
  }

View Full Code Here

Examples of org.spout.api.entity.Entity.interact()

      event = new PlayerInteractEntityEvent(playerEnt, clickedEntity, clickedEntity.getPhysics().getPosition(), Action.LEFT_CLICK);
      if (Spout.getEventManager().callEvent(event).isCancelled()) {
        return;
      }
      holdingMat.onInteract(playerEnt, clickedEntity, Action.LEFT_CLICK);
      clickedEntity.interact(event);

      if (clickedEntity.get(Human.class) != null && !VanillaConfiguration.PLAYER_PVP_ENABLED.getBoolean()) {
        return;
      }
View Full Code Here

Examples of org.spout.api.entity.Entity.interact()

      event = new PlayerInteractEntityEvent(playerEnt, clickedEntity, clickedEntity.getPhysics().getPosition(), Action.LEFT_CLICK);
      if (Spout.getEventManager().callEvent(event).isCancelled()) {
        return;
      }
      holdingMat.onInteract(playerEnt, clickedEntity, Action.RIGHT_CLICK);
      clickedEntity.interact(event);
    }
  }
}
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.