OSRS Plugin API
    Preparing search index...

    Class FineCoord

    Index

    Properties

    x y z

    Methods

    Properties

    x: number
    y: number
    z: number

    Methods

    • Returns a version of this FineCoord as a Map-space (or tile-space) coordinate.

      Returns MapCoord

      local fineCoord = osrs.ClientOp.coordFine()
      local mapCoord = fineCoord:getMapCoordinate()
      osrs.printf("Map Coord - X: %d, level: %d, Z: %d", mapCoord.x, mapCoord.level, mapCoord.z)
      osrs.printf("Fine Coord - X: %d, Y: %d, Z: %d", fineCoord.x, fineCoord.y, fineCoord.z)
    • Creates a new FineCoord with the given tile coordinates.

      Parameters

      • x: number

        value of the tile x-coordinate.

      • y: number

        value of the tile z-coordinate.

      • z: number

        value of the tile y-coordinate.

      Returns any

      -- Create a new FineCoord
      local fineCoord = osrs.FineCoord.new(1, 2, 3)
      osrs.printf("Fine Coord - X: %d, Y: %d, Z: %d", fineCoord.x, fineCoord.y, fineCoord.z)