benilla-re systems structs docs

ResolveSpellName

function · ui · orchestration

Address
0x4b3bc0 · 46 bytes, up to 0x4b3bed
Signature
uint32_t __fastcall (const char *name, int *book)
Meaning
Returns the spell id a name and rank text resolve to, 0 for none
Confidence
verified, proof one
Finding
ui/macros#name-to-spell

Finding: Name to spell in ui: macros

0x4b3950(name, &book) splits Name(Rank N): the name before the last ( and the text between that ( and the next ). It calls 0x4b3a10(name, rank, &book), which searches the player's book and then the pet's, each from its last slot down, for the first spell whose name equals the name without case and, when rank text was given, whose rank equals it. Both lists are in book order, so a bare name resolves to the highest rank in the book. A match writes book 0 or 1 and returns the slot; no match returns -1 and leaves the selector. 0x4b3bc0 turns the slot and book into a spell id, 0 on a miss or a slot of 0x400 and up.

The derivation is in the doc.

Callers 1

Callees 1

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