benilla-re systems structs docs

ReadBookSlotArgs

function · ui · primitive

Address
0x4b3ec0 · 144 bytes, up to 0x4b3f4f
Signature
bool __fastcall (lua_State *L, uint32_t *index, uint32_t *pet)
Meaning
Reads a 1-based slot and a book type from Lua; fails outside 0 to 1023
Confidence
verified, proof one
Finding
ui/spellbook#spell-book-lists
Test
ui::glue_4b0_4b3ec0_index_ftol

Finding: Spell book lists in ui: the spell book

The player's book is the list 0xb700f0 of spell ids by slot, 1024 slots, its count at 0xb7116c. The pet's is 0xb6f098, count 0xb71174. Tabs are a list of 8-byte nodes {tab key, spell count} (0xb71160, count 0xb71170); the key is a SkillLine id and 0 is the General tab. 0xb710fc is a bitset of every known spell id. A Lua book function takes a 1-based slot and a book type; the type selects the pet list only when it equals pet (without case), and any other value, spell included, selects the player's.

The derivation is in the doc.

Callers 9

Callees 6

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