WoW API < BankButtonIDToInvSlotID

Map a bank item button or bag to an inventory slot button for use in inventory functions.

invSlot = BankButtonIDToInvSlotID(buttonID, isBag)

Parameters[edit | edit source]

Arguments[edit | edit source]

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[edit | edit source]

invSlot
An inventory slot ID that can be used in other inventory functions
Community content is available under CC-BY-SA unless otherwise noted.