FindBookSpellSlot
function · ui · primitive
- Address
0x4b3a10· 346 bytes, up to0x4b3b69- Signature
int __fastcall (const char *name, const char *rank, int *book)- Meaning
- Searches both books from the last slot down for a name and rank
- 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 1
- SStrCmpI storm
Calls and jumps by a bare address, from tables/calls.tsv.