Wikia

WoWWiki

Watchlist Recent changes

API GetBankSlotCost

Main Menue



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

Pages on WoWWiki

94,193pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
55,622photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki