SplitSpellNameAndResolve
function · ui · primitive
- Address
0x4b3950· 192 bytes, up to0x4b3a0f- Signature
int __fastcall (const char *name, int *book)- Meaning
- Splits Name(Rank N) and returns the book slot of the spell it names
- 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 2
Callees 4
- sgetu8 unassigned
- FindBookSpellSlot ui
- SStrChrRCopy storm
- SStrCopy storm
Calls and jumps by a bare address, from tables/calls.tsv.