WoW:API BankButtonIDToInvSlotID: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Move page script moved page API BankButtonIDToInvSlotID to API BankButtonIDToInvSlotID without leaving a redirect) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{wowapi}} | |||
Map a bank item button or bag to an inventory slot button for use in inventory functions. | |||
invSlot = BankButtonIDToInvSlotID(buttonID, isBag) | |||
== Parameters == | |||
=== Arguments === | |||
:;buttonID: Number - bank item/bag ID. | |||
:;isBag: 1 if buttonID is a bag, nil otherwise. Same result as [[API ContainerIDToInventoryID|ContainerIDToInventoryID]], except this one only works for bank bags and is more awkward to use. | |||
=== Returns === | |||
:;invSlot: An [[API TYPE InventorySlotID|inventory slot ID]] that can be used in other [[World of Warcraft API#Inventory Functions|inventory functions]] |
Latest revision as of 04:45, 15 August 2023
← 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]
Arguments[edit]
- 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]
- invSlot
- An inventory slot ID that can be used in other inventory functions