BankButtonIDToInvSlotID

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0 / 1.13.2

Maps a BankButtonID to InventorySlotID.

invSlot = BankButtonIDToInvSlotID(buttonID, isBag)

Parameters

Arguments

buttonID
number - bank item/bag ID.
isBag
1 if buttonID is a bag, nil otherwise. Same result as ContainerIDToInventoryID, except this one only works for bank bags and is more awkward to use.

Returns

invSlot
An inventory slot ID that can be used in other inventory functions