Item prototype. Items are described in detail in Items and Bundles article.
Dumps item attributes into an anonymous object for client response.
Parameters:
lang
Client language. Used for adding localized item name and description.
Returns:
Anonymous object with item attributes.
Returns temporary item variable value. Item variables live only until the server restart.
Parameters:
name
Variable name.
Returns:
Variable value. Returns null if the variable does not exist.
setVar (name:String, val:Dynamic):Void
Sets temporary item variable. Item variables live only until the server restart.
Parameters:
name
Variable name.
val
Variable value.
dynamic updatePost ():Void
This method is called each time after item attributes were updated in database.