benilla-re systems structs docs

Script::GetSpellName

function · ui · orchestration

Address
0x4b3fe0 · 191 bytes, up to 0x4b409e
Signature
int __fastcall (lua_State *L)
Meaning
Returns the name and rank strings of a book slot's spell
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/spellbook#getspellname

Finding: GetSpellName in ui: the spell book

GetSpellName (0x4b3fe0) returns two values for a slot whose spell has a record: the name and the rank of the active locale, both strings, and the rank is the empty string for a spell without one, never nil. Both are pointers into the Spell DBC string block, which the loader fills with the block base plus the stored offset without a null test, so an offset of 0 gives the block's leading NUL. For a slot whose spell id is 0, negative, past the table or without a record it returns nil, nil.

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.