-
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()
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:decay()
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getActionId()
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getArticle()
[To the top] Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- key - No description
Example:
local item = Item(...)
item:getAttribute(ITEM_ATTRIBUTE_DESCRIPTION)
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getCharges()
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getCount()
[To the top] Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- distance - No description
Example:
local item = Item(...)
item:getDescription(1)
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getFluidType()
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getId()
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getName()
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getParent()
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getPluralName()
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getPosition()
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getSubType()
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getTile()
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getTopParent()
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getType()
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getUniqueId()
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:getWeight()
[To the top] Added in version: 1.1
Description: N/A
Parameters:Returns: N/A
- key - No description
Example:
local item = Item(...)
item:hasAttribute(ITEM_ATTRIBUTE_DESCRIPTION)
[To the top] Added in version: 1.1
Description: N/A
Parameters:Returns: N/A
- property - No description
Example:
local item = Item(...)
item:hasProperty(unknown)
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:isContainer()
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:isCreature()
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:isItem()
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: false
Example:
local item = Item(...)
item:isPlayer()
[To the top] Added in version: 1.1
Description: N/A
Parameters: None
Returns: N/A
Example:
local item = Item(...)
item:isTeleport()
[To the top] Added in version: 1.0
Description: N/A
Parameters: None
Returns: false
Example:
local item = Item(...)
item:isTile()
[To the top] 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())
[To the top] 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)
[To the top] Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- key - No description
Example:
local item = Item(...)
item:removeAttribute(ITEM_ATTRIBUTE_DESCRIPTION)
[To the top] Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- actionId - No description
Example:
local item = Item(...)
item:setActionId(1000)
[To the top] 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)
[To the top] Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- count - (optional, default: 1)
Example:
local item = Item(...)
item:split(1)
[To the top] 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)
[To the top] Added in version: 1.0