GetFirstBagBankSlotIndex

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.15.0

Returns the index of the first bag slot within the bank container.

index = GetFirstBagBankSlotIndex()

Returns

index
number - The slot index of the first bank bag.

Details

  • This function was added to resolve an inconsistency with the value of the NUM_BANKGENERIC_SLOTS constant and the actual slot index assigned to the first bank bag[1]. On Classic Era, this constant is defined as 24 matching the number of displayed item slots in the bank frame, however bag slots start at index 28 as they do on Burning Crusade Classic.

Patch changes

Classic Era

WoW Icon update.png Patch 1.14.0 (2021-09-28): Added in build 40618 on October 13 2021.

References