Statics
The Statics class provides access to informations about the Map, down to the individual tile.
When using this function it's important to remember the distinction between Land and Tile:
Land
----
For a given (X,Y,map) there can be only 1 (0 zero) Land item, and has 1 specific Z coordinate.
Tile
----
For a given (X,Y,map) there can be any number of Tile items.
TODO: Statics Constructors
Methods
Statics.CheckDeedHouse(x, y)
Statics.CheckDeedHouse(x, y)
Check if the given Tile is occupied by a private house.
Need to be in-sight, on most servers the maximum distance is 18 tiles.
Parameters
xInt32X coordinate.
yInt32Y coordinate.
Return
BooleanTrue: The tile is occupied - False: otherwise
Statics.GetItemData(StaticID)
Statics.GetItemData(StaticID)
Statics.GetLandFlag(staticID, flagname)
Statics.GetLandFlag(staticID, flagname)
Land: Check Flag value of a given Land item.
Parameters
staticIDInt32StaticID of a Land item.
flagnameStringNone
Translucent
Wall
Damaging
Impassable
Surface
Bridge
Window
NoShoot
Foliage
HoverOver
Roof
Door
Wet
Return
BooleanTrue: if the Flag is active - False: otherwise
Statics.GetLandID(x, y, map)
Statics.GetLandID(x, y, map)
Land: Return the StaticID of the Land item, give the coordinates and map.
Parameters
xInt32X coordinate.
yInt32Y coordinate.
mapInt320 = Felucca
1 = Trammel
2 = Ilshenar
3 = Malas
4 = Tokuno
5 = TerMur
Return
Int32Return the StaticID of the Land tile
Statics.GetLandName(StaticID)
Statics.GetLandName(StaticID)
Land: Get the name of a Land item given the StaticID.
Parameters
StaticIDInt32Land item StaticID.
Return
StringThe name of the Land item.
Statics.GetLandZ(x, y, map)
Statics.GetLandZ(x, y, map)
Land: Return the Z coordinate (height) of the Land item, give the coordinates and map.
Parameters
xInt32X coordinate.
yInt32Y coordinate.
mapInt320 = Felucca
1 = Trammel
2 = Ilshenar
3 = Malas
4 = Tokuno
5 = TerMur
Statics.GetStaticsLandInfo(x, y, map)
Statics.GetStaticsLandInfo(x, y, map)
Land: Return a TileInfo representing the Land item for a given X,Y, map.
Parameters
xInt32X coordinate.
yInt32Y coordinate.
mapInt320 = Felucca
1 = Trammel
2 = Ilshenar
3 = Malas
4 = Tokuno
5 = TerMur
Return
Statics.TileInfoA single TileInfo related a Land item.
Statics.GetStaticsTileInfo(x, y, map)
Statics.GetStaticsTileInfo(x, y, map)
Tile: Return a list of TileInfo representing the Tile items for a given X,Y, map.
Parameters
xInt32X coordinate.
yInt32Y coordinate.
mapInt320 = Felucca
1 = Trammel
2 = Ilshenar
3 = Malas
4 = Tokuno
5 = TerMur
Return
List[Statics.TileInfo]A list of TileInfo related to Tile items.
Statics.GetTileFlag(StaticID, flagname)
Statics.GetTileFlag(StaticID, flagname)
Tile: Check Flag value of a given Tile item.
Parameters
StaticIDInt32StaticID of a Tile item.
flagnameStringNone
Translucent
Wall
Damaging
Impassable
Surface
Bridge
Window
NoShoot
Foliage
HoverOver
Roof
Door
Wet
Return
BooleanTrue: if the Flag is active - False: otherwise
Statics.GetTileHeight(StaticID)
Statics.GetTileHeight(StaticID)
Tile: Get hight of a Tile item, in Z coordinate reference.
Parameters
StaticIDInt32Tile item StaticID.
Return
Int32Height of a Tile item.
Statics.GetTileName(StaticID)
Statics.GetTileName(StaticID)
Tile: Get the name of a Tile item given the StaticID.
Parameters
StaticIDInt32Tile item StaticID.
Return
StringThe name of the Land item.