-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Metatable:Item
No description available at the moment.
clone()
decay()
getActionId()
getArticle()
getAttribute(key)
getCharges()
getCount()
getDescription(distance)
getFluidType()
getId()
getName()
getParent()
getPluralName()
getPosition()
getSubType()
getTile()
getTopParent()
getType()
getUniqueId()
getWeight()
hasAttribute(key)
hasProperty(property)
isContainer()
isCreature()
isItem()
isPlayer()
isTeleport()
isTile()
moveTo(position or cylinder)
remove(count = -1)
removeAttribute(key)
setActionId(actionId)
setAttribute(key, value)
split(count = 1)
transform(itemId, count/subType = -1)
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:clone()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:decay()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getActionId()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getArticle()
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- key - No description
Example:
local item = Item(...)
item:getAttribute(ITEM_ATTRIBUTE_DESCRIPTION)
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getCharges()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getCount()
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- distance - No description
Example:
local item = Item(...)
item:getDescription(1)
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getFluidType()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getId()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getName()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getParent()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getPluralName()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getPosition()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getSubType()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getTile()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getTopParent()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getType()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getUniqueId()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getWeight()
Added in version: 1.1
Description: N/A
Parameters:Returns: N/A
- key - No description
Example:
local item = Item(...)
item:hasAttribute(ITEM_ATTRIBUTE_DESCRIPTION)
Added in version: 1.1
Description: N/A
Parameters:Returns: N/A
- property - No description
Example:
local item = Item(...)
item:hasProperty(unknown)
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:isContainer()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:isCreature()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:isItem()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: false
Example:
local item = Item(...)
item:isPlayer()
Added in version: 1.1
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:isTeleport()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: false
Example:
local item = Item(...)
item:isTile()
Added in version: 1.1
Description: N/A
Parameters:Returns: N/A
- position or cylinder - Supported cylinders are: Container, Player and Tile.
Example:
local item = Item(...)
item:moveTo(Position())
Added in version: 1.0 (only position), extended with support for cylinders in 1.1
Description: N/A
Parameters:Returns: N/A
- count - (optional, default: -1)
Example:
local item = Item(...)
item:remove(-1)
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- key - No description
Example:
local item = Item(...)
item:removeAttribute(ITEM_ATTRIBUTE_DESCRIPTION)
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- actionId - No description
Example:
local item = Item(...)
item:setActionId(1000)
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- key - No description
- value - No description
Example:
local item = Item(...)
item:setAttribute(ITEM_ATTRIBUTE_DESCRIPTION, any_string)
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- count - (optional, default: 1)
Example:
local item = Item(...)
item:split(1)
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- itemId - No description
- count/subType - (optional, default: -1)
Example:
local item = Item(...)
item:transform(2400, -1)
Added in version: 1.0