Script::GetBankSlotCost
function · ui · orchestration
- Address
0x4f8630· 96 bytes, up to0x4f868f- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the price of the next bank bag slot
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/inventoryverbs#the-bank
Finding: The bank in ui: inventory, container, bank and vendor getters
GetNumBankSlots() returns the number of bank bag slots the player bought (the byte at +0x1a of the field block) and 1 when it is 6 or
more, else nil. GetBankSlotCost() returns the price of the next slot from the bank slot price store, 0 without a player. PurchaseSlot() does
nothing without a player, control or an open banker, or with six slots bought. With less money than the price it shows
ERR_BANKSLOT_INSUFFICIENT_FUNDS (257); otherwise it sends CMSG_BUY_BANK_SLOT (0x1b9) with the interaction target. CloseBankFrame() closes the banker and signals BANKFRAME_CLOSED.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 4
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- GetBankSlotPrice ui
- lua_pushnumber lua
Calls and jumps by a bare address, from tables/calls.tsv.