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.
Return
Boolean
True: The tile is occupied - False: otherwise
Statics
.
GetLandFlag
(
staticID
,
flagname
)
Statics
.
GetLandFlag
(
staticID
,
flagname
)
Land: Check Flag value of a given Land item.
Parameters
staticID
Int32
StaticID of a Land item.
flagname
String
None
Translucent
Wall
Damaging
Impassable
Surface
Bridge
Window
NoShoot
Foliage
HoverOver
Roof
Door
Wet
Return
Boolean
True: 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
map
Int32
0 = Felucca
1 = Trammel
2 = Ilshenar
3 = Malas
4 = Tokuno
5 = TerMur
Return
Int32
Return the StaticID of the Land tile
Statics
.
GetLandName
(
StaticID
)
Statics
.
GetLandName
(
StaticID
)
Land: Get the name of a Land item given the StaticID.
Parameters
StaticID
Int32
Land item StaticID.
Return
String
The 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
map
Int32
0 = 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
map
Int32
0 = Felucca
1 = Trammel
2 = Ilshenar
3 = Malas
4 = Tokuno
5 = TerMur
Return
Statics.TileInfo
A 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
map
Int32
0 = 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
StaticID
Int32
StaticID of a Tile item.
flagname
String
None
Translucent
Wall
Damaging
Impassable
Surface
Bridge
Window
NoShoot
Foliage
HoverOver
Roof
Door
Wet
Return
Boolean
True: 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
StaticID
Int32
Tile item StaticID.
Return
Int32
Height of a Tile item.
Statics
.
GetTileName
(
StaticID
)
Statics
.
GetTileName
(
StaticID
)
Tile: Get the name of a Tile item given the StaticID.
Parameters
StaticID
Int32
Tile item StaticID.
Return
String
The name of the Land item.