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.
Table of Contents
Methods
CheckDeedHouse
Statics.CheckDeedHouse(x, y, exemptSerial)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.
x(Int32)y(Int32)exemptSerial(Int32)
BooleanFindClearGroundLocations
Statics.FindClearGroundLocations(radius)Find all clear ground squares within a radius of the player's location. A clear square means: no tile items and not impassable.
radius(Int32): Search radius (1-3 tiles). Defaults to 1.
List[ValueTuple[Int32, Int32, Int32]]FindNextMiningSpot
Statics.FindNextMiningSpot(mineRadius)Find the next mining spot (8x8 square with resources) adjacent to the player or to already mined squares.
mineRadius(Int32): Search radius around player in tiles
List[ValueTuple[Int32, Int32]]GetItemData
Statics.GetItemData(StaticID)StaticID(Int32)
ItemDataGetLandFlag
Statics.GetLandFlag(staticID, flagname)Land: Check Flag value of a given Land item.
staticID(Int32): StaticID of a Land item.flagname(String): None Translucent Wall Damaging Impassable Surface Bridge Window NoShoot Foliage HoverOver Roof Door Wet
BooleanGetLandID
Statics.GetLandID(x, y, map)Land: Return the StaticID of the Land item, give the coordinates and map.
x(Int32): X coordinate.y(Int32): Y coordinate.map(Int32): 0 = Felucca 1 = Trammel 2 = Ilshenar 3 = Malas 4 = Tokuno 5 = TerMur
Int32GetLandName
Statics.GetLandName(StaticID)Land: Get the name of a Land item given the StaticID.
StaticID(Int32): Land item StaticID.
StringGetLandZ
Statics.GetLandZ(x, y, map)Land: Return the Z coordinate (height) of the Land item, give the coordinates and map.
x(Int32): X coordinate.y(Int32): Y coordinate.map(Int32): 0 = Felucca 1 = Trammel 2 = Ilshenar 3 = Malas 4 = Tokuno 5 = TerMur
Int32GetStaticsLandInfo
Statics.GetStaticsLandInfo(x, y, map)Land: Return a TileInfo representing the Land item for a given X,Y, map.
x(Int32): X coordinate.y(Int32): Y coordinate.map(Int32): 0 = Felucca 1 = Trammel 2 = Ilshenar 3 = Malas 4 = Tokuno 5 = TerMur
Statics.TileInfoGetStaticsTileInfo
Statics.GetStaticsTileInfo(x, y, map)Tile: Return a list of TileInfo representing the Tile items for a given X,Y, map.
x(Int32): X coordinate.y(Int32): Y coordinate.map(Int32): 0 = Felucca 1 = Trammel 2 = Ilshenar 3 = Malas 4 = Tokuno 5 = TerMur
List[Statics.TileInfo]GetTileFlag
Statics.GetTileFlag(StaticID, flagname)Tile: Check Flag value of a given Tile item.
StaticID(Int32): StaticID of a Tile item.flagname(String): None Translucent Wall Damaging Impassable Surface Bridge Window NoShoot Foliage HoverOver Roof Door Wet
BooleanGetTileHeight
Statics.GetTileHeight(StaticID)Tile: Get hight of a Tile item, in Z coordinate reference.
StaticID(Int32): Tile item StaticID.
Int32GetTileName
Statics.GetTileName(StaticID)Tile: Get the name of a Tile item given the StaticID.
StaticID(Int32): Tile item StaticID.
String