WoW API: BankButtonIDToInvSlotID

Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API BankButtonIDToInvSlotID to API BankButtonIDToInvSlotID without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW API < BankButtonIDToInvSlotID

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

invSlot = BankButtonIDToInvSlotID(buttonID, isBag)

ParametersEdit

ArgumentsEdit

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.

ReturnsEdit

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