World of Warcraft Forever API · C_Bank.md, for your AI
C_Bank
26 functions, 7 events, 3 tables, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
areAnyBankTypesViewable = C_Bank.AreAnyBankTypesViewable()
Returns
areAnyBankTypesViewable | bool | |
|---|
C_Bank.AutoDepositItemsIntoBank(bankType)
Arguments
slot = C_Bank.BankBagTypeAndIDToInvSlot(bankType, slotIndex)
Arguments
Returns
canDepositMoney = C_Bank.CanDepositMoney(bankType)
Arguments
Returns
canPurchaseBankTab = C_Bank.CanPurchaseBankTab(bankType)
Arguments
Returns
canUseBank = C_Bank.CanUseBank(bankType)
Arguments
Returns
canViewBank = C_Bank.CanViewBank(bankType)
Arguments
Returns
canWithdrawMoney = C_Bank.CanWithdrawMoney(bankType)
Arguments
Returns
C_Bank.DepositMoney(bankType, amount)
Arguments
doesBankTypeSupportAutoDeposit = C_Bank.DoesBankTypeSupportAutoDeposit(bankType)
Arguments
Returns
doesBankTypeSupportAutoDeposit | bool | |
|---|
doesBankTypeSupportMoneyTransfer = C_Bank.DoesBankTypeSupportMoneyTransfer(bankType)
Arguments
Returns
doesBankTypeSupportMoneyTransfer | bool | |
|---|
reason = C_Bank.FetchBankLockedReason(bankType)
Arguments
Returns
amount = C_Bank.FetchDepositedMoney(bankType)
Arguments
Returns
numPurchasedBankTabs = C_Bank.FetchMaxNumBankTabs(bankType)
Arguments
Returns
numPurchasedBankTabs | number | |
|---|
nextPurchasableTabData = C_Bank.FetchNextPurchasableBankTabData(bankType)
Arguments
Returns
numPurchasedBankTabs = C_Bank.FetchNumPurchasedBankTabs(bankType)
Arguments
Returns
numPurchasedBankTabs | number | |
|---|
purchasedBankTabData = C_Bank.FetchPurchasedBankTabData(bankType)
Arguments
Returns
purchasedBankTabIDs = C_Bank.FetchPurchasedBankTabIDs(bankType)
Arguments
Returns
viewableBankTypes = C_Bank.FetchViewableBankTypes()
Returns
hasMaxBankTabs = C_Bank.HasMaxBankTabs(bankType)
Arguments
Returns
isItemAllowedInBankType = C_Bank.IsItemAllowedInBankType(bankType, itemLocation)
Arguments
bankType | BankType | |
|---|
itemLocation | ItemLocation | |
|---|
Returns
isItemAllowedInBankType | bool | |
|---|
C_Bank.PurchaseBankTab(bankType)
Arguments
shouldUsePlayerBagsInBank = C_Bank.ShouldUsePlayerBagsInBank()
Returns
shouldUsePlayerBagsInBank | bool | |
|---|
C_Bank.UpdateBankTabSettings(bankType, tabID, tabName, tabIcon, depositFlags)
Arguments
C_Bank.WithdrawMoney(bankType, amount)
Arguments
Events
Tables
None | 0 |
|---|
NoAccountInventoryLock | 1 |
|---|
BankDisabled | 2 |
|---|
BankConversionFailed | 3 |
|---|
ID | number | |
|---|
bankType | BankType | |
|---|
name | cstring | |
|---|
icon | fileID | |
|---|
depositFlags | BagSlotFlags | |
|---|
tabCleanupConfirmation | cstring | |
|---|
tabNameEditBoxHeader | cstring | |
|---|
tabCost | BigUInteger | |
|---|
canAfford | bool | |
|---|
purchasePromptTitle | cstring | |
|---|
purchasePromptBody | cstring | |
|---|
purchasePromptConfirmation | cstring | |
|---|