benilla-re systems structs docs

Script::GetNumTalents

function · ui · primitive

Address
0x4f3160 · 145 bytes, up to 0x4f31f0
Signature
int __fastcall (lua_State *L)
Meaning
Returns the talent count of a tab, 0 for an invalid tab
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/talents#talent-indexing

Finding: Talent indexing in ui: talents

GetNumTalents(tab) returns the talent count of a tab, 0 for an invalid tab. A talent is found by direct index from the tab's first row, 84 bytes apiece; the client does not sort by tier and column, so the Lua order is the file order of the tab's block. The row holds: the id (+0), tab id (+4), tier and column from 0 (+8, +0xc), nine rank spell ids (+0x10), three prerequisite talent ids (+0x34), three prerequisite ranks (+0x40), a flags byte (+0x4c) and a required spell (+0x50).

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 5

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