19 lines
1.3 KiB
Lua
19 lines
1.3 KiB
Lua
---@diagnostic disable: missing-return, lowercase-global
|
|
|
|
---@param itemName string
|
|
---@return string name
|
|
---@return string link
|
|
---@return number quality
|
|
---@return number iLevel
|
|
---@return number reqLevel
|
|
---@return string class
|
|
---@return string subclass
|
|
---@return number maxStack
|
|
---@return string equipSlot
|
|
---@return string texture
|
|
---@return number vendorPrice
|
|
---Returns information about an item, by name, link or id. Will only return item information if it is directly available in memory. An item is present in memory if: It has been seen this session, OR It's present in Cache/enUS/Item-sparse.dba, where enUS is the user's locale If item information is not readily available, the client will first look on disk in DBFilesClient/Item-sparse.db2. If an item is found there, the client fires the GET_ITEM_INFO_RECEIVED event and keeps the result in memory for further GetItemInfo requests. If an item is not found on disk either, the client will send a server request for it. If the request fails, nothing happens. If the request succeeds, the client stores the item in memory and writes it to Cache/Locale/Item-sparse.dba. The client will never send more than one server request per id per session.
|
|
---@overload fun(itemID: number): table
|
|
---@overload fun(itemLink: string): table
|
|
function GetItemInfo(itemName) end
|