This commit is contained in:
2025-03-13 16:28:23 +01:00
parent 468a68c3e7
commit 62e991cc66
23 changed files with 172 additions and 81 deletions

View File

@@ -1,8 +1,6 @@
---@diagnostic disable: missing-return, lowercase-global
---@param itemID number
---@param itemName string
---@param itemLink string
---@param itemName string
---@return string name
---@return string link
---@return number quality
@@ -15,4 +13,6 @@
---@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.
function GetItemInfo(itemID, itemName, itemLink) end
---@overload fun(itemID: number): table
---@overload fun(itemLink: string): table
function GetItemInfo(itemName) end