v0.13.8

C_Bank

namespaceavailable in: camelot

Status in wowlua

26 functions: 15 implemented, 2 recorded, 9 guessed. 7 events, 5 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
AreAnyBankTypesViewableWhether any bank can be viewed. · by wowlua
(): boolean
implemented
AutoDepositItemsIntoBankMoves the items that belong in the bank into it. · by wowlua
(bankType: BankType)
guessed
BankBagTypeAndIDToInvSlotReturns the inventory slot of the bank's tab, or nil when it has none. · by wowlua
(bankType: BankType, slotIndex: number): number?
guessed
CanDepositMoneyWhether money can be deposited into the bank. · by wowlua
(bankType: BankType): boolean
implemented
CanPurchaseBankTabWhether the player can buy a tab for the bank. · by wowlua
(bankType: BankType): boolean
implemented
CanUseBankWhether the player can use the bank. · by wowlua
(bankType: BankType): boolean
implemented
CanViewBankWhether the player can view the bank. · by wowlua
(bankType: BankType): boolean
implemented
CanWithdrawMoneyWhether money can be withdrawn from the bank. · by wowlua
(bankType: BankType): boolean
implemented
CloseBankFrameCloses the bank and ends the interaction with the banker. · by wowlua
()
implemented
DepositMoneyDeposits money into the given bank. · by wowlua
(bankType: BankType, amount: WOWMONEY)
guessed
DoesBankTypeSupportAutoDepositWhether the bank type supports depositing items automatically. · by wowlua
(bankType: BankType): boolean
guessed
DoesBankTypeSupportMoneyTransferWhether money can be deposited into and withdrawn from the bank type. · by wowlua
(bankType: BankType): boolean
guessed
FetchBankLockedReasonReturns why the bank type is locked, or nil when it is usable. · by wowlua
(bankType: BankType): BankLockedReason?
implemented
FetchDepositedMoneyReturns the money deposited in the given bank, in copper. · by wowlua
(bankType: BankType): WOWMONEY
implemented
FetchMaxNumBankTabsReturns the most tabs the bank type can have. · by wowlua
(bankType: BankType): number
recorded
FetchNextPurchasableBankTabDataReturns information about the next bank tab that can be bought, such as its cost, or nil when there is none. · by wowlua
(bankType: BankType): PurchasableBankTabData?
implemented
FetchNumPurchasedBankTabsReturns how many tabs of the bank type have been bought. · by wowlua
(bankType: BankType): number
implemented
FetchPurchasedBankTabDataReturns information on all already bought bank tabs for the given bank type along a number of necessary information by tab.
(bankType: BankType): BankTabData[]
implemented
FetchPurchasedBankTabIDsReturns the bag IDs of the bank type's purchased tabs. · by wowlua
(bankType: BankType): BagIndex[]
guessed
FetchViewableBankTypesReturns the bank types the player can view right now; none away from a banker. · by wowlua
(): BankType[]
guessed
HasMaxBankTabsWhether all tabs of the bank type have been bought. · by wowlua
(bankType: BankType): boolean
implemented
IsItemAllowedInBankTypeWhether the item may be stored in the bank type. · by wowlua
(bankType: BankType, itemLocation: ItemLocationMixin): boolean
implemented
PurchaseBankTabBuys the next tab of the bank type. · by wowlua
(bankType: BankType)
implemented
ShouldUsePlayerBagsInBankWhether the bank interface should show the player's bags. · by wowlua
(): boolean
recorded
UpdateBankTabSettingsChanges a bank tab's name, icon and deposit settings. · by wowlua
(bankType: BankType, tabID: BagIndex, tabName: string, tabIcon: string, depositFlags: BagSlotFlags)
guessed
WithdrawMoneyWithdraws money from the given bank. · by wowlua
(bankType: BankType, amount: WOWMONEY)
guessed

"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.

Events

eventpayloadfired by the emulator
BANKFRAME_CLOSEDno payloadimplemented
BANKFRAME_OPENEDno payloadimplemented
BANK_BAG_SLOT_FLAGS_UPDATEDslot: numbernot implemented
BANK_TABS_CHANGEDbankType: BankTypeimplemented
BANK_TAB_SETTINGS_UPDATEDbankType: BankTypeimplemented
PLAYERBANKSLOTS_CHANGEDslot: numberimplemented
PLAYER_ACCOUNT_BANK_TAB_SLOTS_CHANGEDslot: numbernot implemented

An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("BANK_BAG_SLOT_FLAGS_UPDATED").

Structures

  • BankTabData · ID, bankType, name, icon, depositFlags, tabCleanupConfirmation, tabNameEditBoxHeader
  • PurchasableBankTabData · tabCost, canAfford, purchasePromptTitle, purchasePromptBody, purchasePromptConfirmation

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Bank system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.