How do I get the gold in a Warband Bank

I’m Looking for a function like GetGuildBankMoney() for a warband.

I’m pretty sure that system is “still under construction” for the most part so I wouldn’t expect to see a complete API until later in Beta.

Thanks for the reply, I will keep watching.

This is what Blizz is currently using for Account money (I’m assuming Account = Warband)

MoneyTypeInfo["ACCOUNT"] = {
	OnloadFunc = function(self)
		self:RegisterEvent("ACCOUNT_MONEY");
	end,

	UpdateFunc = function(self)
		return C_Bank.FetchDepositedMoney(Enum.BankType.Account);
	end,

	collapse = 1,
	showSmallerCoins = "Backpack",
};

3 Likes

Big thanks to you.

I just checked the beta and ran

/run print(C_Bank.FetchDepositedMoney(Enum.BankType.Account))

It printed the gold in my Warband bank (in copper).

1 Like
/run print(GetMoneyString(C_Bank.FetchDepositedMoney(Enum.BankType.Account), true))
3 Likes

Thanks I know about the formatting.

I wanted the copper number to add into my account total.

1 Like