This commit is contained in:
2024-11-07 23:12:37 +01:00
parent a67a1d8f40
commit f7c91862a0
3089 changed files with 18209 additions and 0 deletions

10
Meta/api/GetItemCount.lua Normal file
View File

@@ -0,0 +1,10 @@
---@diagnostic disable: missing-return, lowercase-global
---@param itemId number
---@param itemName string
---@param itemLink string
---@param includeBank boolean
---@param includeCharges boolean
---@return number itemCount
---Returns information about how many of a given item the player has or on remaining item charges. When the third argument includeCharges is true, the returned number indicates the total number of remaining charges for the item instead of how many of the item you have; e.g. if you have 3 Wizard Oils and one of them has been used twice, the returned value will be 13.
function GetItemCount(itemId, itemName, itemLink, includeBank, includeCharges) end