items
Description
Create an item.
Parameters
Name | Description |
---|---|
name | The item name. |
label | The item label. |
description | The item description. |
icon | The item icon. Can be relative within assets folder or an absolute URL. |
category | The item category. It will be used to group items in the inventory. |
weight | The item weight. |
stackAmount | The item maximum stack amount in one slot. |
isUnique | The item is unique then it can't be stacked. |
isRare | The item is rare. |
isTradeable | The item is tradeable between players. |
isAuctionable | The item is auctionable. |
sellPrice | The item sell price. |
buyPrice | The item buy price. |
isUsable | The item is usable. |
use | If the item is usable, the use determines the action when the item is used. Using aditional params that this action may be required. |
isIllegal | The item is illegal. |
tags | The item tags as an array of strings. |