Table of Contents

Scripting - Statics data and function

Here can find some information about Enhanced Scripting function and data for Statics and Map Information.

Land Information

Get Land ID
Syntax Statics.GetLandID(int, int, int)
Description:
Get ID of tile in X, Y coordinates and specific map.
Returns Int
In Object: Statics
Parameters: mapID

Get Land Name
Syntax Statics.GetLandName(int LandID)
Description:
Get Name of the land identified by LandID.
Returns Int
In Object: Statics
Parameters: LandID

Get Land X Level
Syntax Statics.GetLandZ(int, int, int)
Description:
Get Z Level of tile in X, Y coordinates and specific map.
Returns Int
In Object: Statics
Parameters: mapID

Get Land tile flag information
Syntax Statics.GetLandFlag(int, string)
Description:
Get true or false if flag is present for specific land itemID.
Returns bool
In Object: Statics
Parameters: int itemid, string flagname
Possible flag to check:

  • None
  • Translucent
  • Wall
  • Damaging
  • Impassable
  • Surface
  • Bridge
  • Window
  • NoShoot
  • Foliage
  • HoverOver
  • Roof
  • Door
  • Wet

Statics Information

Get Static information on tile
Syntax Statics.GetStaticsTileInfo(int, int, int)
Description:
Get tiles info in a certain map at X, Y coordinates. Tileinfo list contain all static item in specific tile whit this information: StaticID (Static item Grapics), StaticHue (Static item color), StaticZ (Static item Z Level).
Returns List(TileInfo)
In Object: Statics
Parameters: int coordX, int coordY, int mapID

Get Static tile name
Syntax Statics.GetTileName(int)
Description:
Get a tile name. Tileinfo list contain all static item in specific tile with this information: StaticID (Static item Graphics), StaticHue (Static item color), StaticZ (Static item Z Level).
Returns string
In Object: Statics
Parameters: int TileID

Get Static tile flag information
Syntax Statics.GetTileFlag(int, string)
Description:
Get true or false if flag is present for specific itemID.
Returns bool
In Object: Statics
Parameters: int itemid, string flagname
Possible flag to check:

  • None
  • Translucent
  • Wall
  • Damaging
  • Impassable
  • Surface
  • Bridge
  • Window
  • NoShoot
  • Foliage
  • HoverOver
  • Roof
  • Door
  • Wet

Deed Information

Check if exist deed house
Syntax Statics.CheckDeedHouse(int, int)
Description:
Get true or false if exist deed house in specific X, Y.
Returns Bool
In Object: Statics
Parameters: coordY