OSRS Plugin API
    Preparing search index...

    Function coord

    • Gets the current coordinates of the player.

      Returns MapCoord

      the coordinates of the player in a MapCoord class.

      local mapCoord = osrs.ClientOp.coord()
      osrs.printf("Player is currently at X: %i, Y: %i, Z: %i: ", mapCoord.x, mapCoord.level, mapCoord.z)
      local level, mapX, mapZ, tileX, tileZ = mapCoord:getMapTile()
      -- Print all of the tile map info
      osrs.printf("Map Tile - level: %d, x: %d, z: %d, x2: %d, z2: %d", level, mapX, mapZ, tileX, tileZ)