Files
wow_Meta/api/GetItemCount.lua
2025-05-04 15:15:00 +02:00

12 lines
687 B
Lua
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---@diagnostic disable: missing-return, lowercase-global
---@meta
---@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