benilla-re systems structs docs

GetSpellTabPosition

function · ui · primitive

Address
0x4b24f0 · 130 bytes, up to 0x4b2571
Signature
uint32_t __fastcall (uint32_t spellId)
Meaning
Returns the position of a spell's tab in the tab list, or the tab count when absent
Confidence
verified, proof one
Finding
ui/spellbook#tabs

Finding: Tabs in ui: the spell book

A spell's tab key is the +4 of the player's SkillRaceClassInfo row (0x6ddf90) for the skill line of the spell's ability (0x60c7c0); it is 0 when any step fails or the row's byte at +0x10 is negative. 0x4b24f0(id) returns the position of that key in the tab list, or the tab count when absent. 0x4b2580(tab) counts the book spells of the tabs before it. GetNumSpellTabs (0x4b3cb0) returns the tab count.

The derivation is in the doc.

Callers 1

Callees 4

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