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

statics_func.txt · Last modified: 2025/02/25 22:20 by 127.0.0.1

Exception: Git command failed to perform periodic pull: Warning: Permanently added 'github.com,140.82.112.4' (ECDSA) to the list of known hosts. From github.com:RazorEnhanced/razorenhanced.github.io * branch main -> FETCH_HEAD error: Your local changes to the following files would be overwritten by merge: doc/api/CUO.html doc/api/Gumps.html doc/api/Item.html doc/api/Items.html doc/api/Journal.html doc/api/Misc.html doc/api/Mobile.html doc/api/PacketLogger.html doc/api/PathFinding.html doc/api/Player.html doc/api/Spells.html doc/api/Target.html doc/api/Trade.html doc/api/Vendor.html Please commit your changes or stash them before you merge. Aborting

Exception: Git command failed to perform periodic pull: Warning: Permanently added 'github.com,140.82.112.4' (ECDSA) to the list of known hosts. From github.com:RazorEnhanced/razorenhanced.github.io * branch main -> FETCH_HEAD error: Your local changes to the following files would be overwritten by merge: doc/api/CUO.html doc/api/Gumps.html doc/api/Item.html doc/api/Items.html doc/api/Journal.html doc/api/Misc.html doc/api/Mobile.html doc/api/PacketLogger.html doc/api/PathFinding.html doc/api/Player.html doc/api/Spells.html doc/api/Target.html doc/api/Trade.html doc/api/Vendor.html Please commit your changes or stash them before you merge. Aborting

An unforeseen error has occured. This is most likely a bug somewhere. It might be a problem in the gitbacked plugin.

More info has been written to the DokuWiki error log.