benilla-re systems structs docs

Script::GetNumBankSlots

function · ui · orchestration

Address
0x4f85b0 · 118 bytes, up to 0x4f8625
Signature
int __fastcall (lua_State *L)
Meaning
Returns the bought bank bag slots and whether all are bought
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

Calls and jumps by a bare address, from tables/calls.tsv.