Fandom

WoWWiki

API GetBankSlotCost

104,634pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < GetBankSlotCost

Returns the price of a particular bank slot.

cost = GetBankSlotCost(numSlots);

Arguments Edit

numSlots 
Number - Number of slots already purchased.

Returns Edit

cost 
Number - Price of the next bank slot in copper.

Example Edit

The following example outputs amount of money you'll have to pay for the next bank slot:

local numSlots,full = GetNumBankSlots();
if full then
 print("You may not buy any more bank slots");
else
 local c = GetBankSlotCost(numSlots);
 print(("Your next bank slot costs %d g %d s %d c"):format(c/10000, c/100 % 100, c % 100));
end

Also on Fandom

Random Wiki