# Item management

Derive from Actor

Before using item management API, create a item management object is required, as below:

local Item = class.Item.new()

The specific function name and description are as follows:

Serial number Function name Description
1 getItemName(...) Get the name of item
2 getItemId(...) Acquire itemid
3 getDropItemNum(...) Get the number of dorps

# getItemName

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Get the name of item
  • The specific use cases are as follows:
local result = Item:getItemName(itemid)

# getItemId

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Acquire itemid
  • The specific use cases are as follows:
local result = Item:getItemId(objid)

# getDropItemNum

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Get the number of dorps
  • The specific use cases are as follows:
local result = Item:getDropItemNum(objid)
Last Update: 11/22/2019, 2:31:59 PM