Examples of RSTile


Examples of org.rsbot.script.wrappers.RSTile

   * @param tile The destination tile.
   * @return Returns the closest tile to the destination on the minimap.
   */
  public RSTile getClosestTileOnMap(final RSTile tile) {
    if (!methods.calc.tileOnMap(tile) && methods.game.isLoggedIn()) {
      final RSTile loc = methods.players.getMyPlayer().getLocation();
      final RSTile walk = new RSTile((loc.getX() + tile.getX()) / 2, (loc.getY() + tile.getY()) / 2);
      return methods.calc.tileOnMap(walk) ? walk : getClosestTileOnMap(walk);
    }
    return tile;
  }
View Full Code Here

Examples of org.rsbot.script.wrappers.RSTile

   */
  public RSTile getDestination() {
    if (methods.client.getDestX() <= 0) {
      return null;
    }
    return new RSTile(methods.client.getDestX() + methods.client.getBaseX(), methods.client.getDestY() + methods.client.getBaseY());
  }
View Full Code Here

Examples of org.rsbot.script.wrappers.RSTile

   * @param plane The floor level.
   * @return The offset as an RSTile.
   */
  public RSTile getCollisionOffset(final int plane) {
    final org.rsbot.client.RSGroundData data = methods.client.getRSGroundDataArray()[plane];
    return new RSTile(data.getX(), data.getY());
  }
View Full Code Here

Examples of org.rsbot.script.wrappers.RSTile

   * the loaded map area.
   *
   * @return The region base tile.
   */
  public RSTile getMapBase() {
    return new RSTile(methods.client.getBaseX(), methods.client.getBaseY());
  }
View Full Code Here

Examples of org.rsbot.script.wrappers.RSTile

   * @param z   The tile to check (z).
   * @param key Keys to look for.
   * @return <tt>true</tt> if the tile contains flags.
   */
  public static boolean Flag(final int x, final int y, final int z, final int key) {
    return Flag(new RSTile(x, y, z), key);
  }
View Full Code Here

Examples of org.rsbot.script.wrappers.RSTile

    public String toString() {
      return "(" + x + "," + y + "," + z + ")";
    }

    public RSTile toRSTile() {
      return new RSTile(x, y, z);
    }
View Full Code Here

Examples of org.rsbot.script.wrappers.RSTile

        }

        return random(350, 400);
      case 4:
        // exits
        final RSTile doorTile = new RSTile(2086, 4459);
        if (unlocked <= 2 && !taskDone) {
          state = 0;
          return random(500, 600);
        }
        if (!calc.tileOnScreen(doorTile)) {
View Full Code Here

Examples of org.rsbot.script.wrappers.RSTile

      return new RSGroundItem[0];
    }

    final Deque<org.rsbot.client.RSItem> itemNL = new Deque<org.rsbot.client.RSItem>(itemNLC.getNodeList());
    for (org.rsbot.client.RSItem item = itemNL.getHead(); item != null; item = itemNL.getNext()) {
      list.add(new RSGroundItem(methods, new RSTile(x, y, methods.game.getPlane()), new RSItem(methods, item)));
    }

    return list.toArray(new RSGroundItem[list.size()]);
  }
View Full Code Here

Examples of org.rsbot.script.wrappers.RSTile

    return false;
  }

  void update() {
    if (path != null && path.length > 1) {
      RSTile startTile = path[0];
      RSTile endTile = path[path.length - 1];
      path = methods.web.generateTilePath(startTile, endTile);
      rspath = null;
    }
  }
View Full Code Here

Examples of org.rsbot.script.wrappers.RSTile

  public int loop() {
    if (!activateCondition()) {
      return -1;
    }
    if (!interfaces.get(lockInterface).isValid()) {
      RSTile CAGE_TILE = new RSTile(getMyPlayer().getLocation().getX(), getMyPlayer().getLocation().getY() + 1);
      if (objects.getTopAt(CAGE_TILE, Objects.TYPE_BOUNDARY) != null) {
        if (objects.getTopAt(CAGE_TILE, Objects.TYPE_BOUNDARY).interact("unlock")) {
          return random(1000, 1500);
        }
      }
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.