inventoryId = ContainerIDToInventoryID(bagID)
Arguments Edit
(bagID)
bagID bagID - number of the bag (1 -- NUM_BAG_SLOTS+NUM_BANKBAGSLOTS) to get the inventoryID for.
inventoryID
inventoryID - the bag's inventory ID used in functions like PutItemInBag(inventoryId) and GetInventoryItemLink("player",inventoryId)
local invID = ContainerIDToInventoryID(1)
local bagLink = GetInventoryItemLink("player",invID)
DEFAULT_CHAT_FRAME:AddMessage("Bag slot 1 is inventory slot "..invID..", a "..bagLink)
Bag slot 1 is inventory slot 20, a [Imbued Netherweave Bag]
Querying for items outside the range 1 -- (NUM_BAG_SLOTS+NUM_BANKBAGSLOTS) throws an error.
The player bags begin at container 1 -- currently inventory slot 20.
The bank bags begin at container 5 (1+NUM_BAG_SLOTS) -- currently inventory slot 68.
Read more
Starts the profiling timer. debugprofilestart();
API debugprofilestart
This function allows you to call an another function (with the possibility to pass arguments to it)
API securecall
Formerly part of WoW_Constants. SPELLREFLECTOTHEROTHER %s's %s is reflected back by %s. SPELLREFLECT
WoW Constants/Spells