Tiles map commands - Hotride/OrionUO GitHub Wiki

Command format:

ReturnType NameSpace.name(requiredParameters, [optionalParameters=defaultValue]);

  • ReturnType - the return value of the function (void - the function returns nothing);

  • NameSpace - the scope of the function;

  • name - the name of the function;

  • requiredParameters - required parameters;

  • optionalParameters - optional parameters, the default value is indicated after the = sign


tileFlags can take the following values:

  • 'mine' - will search only cave tiles;

  • 'tree' - will search only trees;

  • 'water' - will search only water tiles;

  • 'land' - will include terrain tiles in the search;

  • 'any' - searches for any static tiles;

tileFlags can be combined from regular tile indices: tileFlags = '0x0654|0x03FD|0x78AE';


TileObjectList Orion.GetTiles('tileFlags', x, y, [startZ=255, endZ=255]);

Get a list of tiles in the specified coordinates.

If the value of startZ or endZ is 255, this parameter is ignored.

Result: A list of TileObjects.


TileObjectList Orion.GetTilesInRect('tileFlags', startX, startY, endX, endY);

Get a list of tiles in the specified range of coordinates (rectangle).

Result: A list of TileObjects.


TileObjectList Orion.GetTilesInRect('tileFlags', startX, startY, startZ, endX, endY, endZ);

Get a list of tiles in the specified coordinate range (rectangle) with a filter by Z coordinate.

If the value of startZ or endZ is 255, this parameter is ignored.

Result: A list of TileObjects.