Script::BankButtonIDToInvSlotID
function · ui · primitive
- Address
0x4f8530· 118 bytes, up to0x4f85a5- Signature
int __fastcall (lua_State *L)- Meaning
- Maps a bank button id to an inventory slot: id + 59 with a numeric second argument, else id + 39
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/bags#bank-button-ids
Finding: Bank button ids in ui: bags and bag slots
BankButtonIDToInvSlotID(id [, isBag]) is 0x4f8530. A non-number first argument raises
Usage: BankButtonIDToInvSlotID(buttonID). The id is truncated toward zero, and the result is id + 59 when
lua_isnumber accepts the second argument and id + 39 otherwise. The test is on type: true, false and nil all
give id + 39, a numeric string gives id + 59. One number is returned, with no range check.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 5
- __ftol crt
- lua_isnumber lua
- lua_tonumber lua
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.