User Tools

Site Tools


statics_func

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 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 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

statics_func.txt · Last modified: 2020/03/01 08:11 (external edit)