benilla-re systems structs docs

Script::GetNumTalentTabs

function · ui · orchestration

Address
0x4f3010 · 44 bytes, up to 0x4f303b
Signature
int __fastcall (lua_State *L)
Meaning
Returns the number of the player's talent tabs
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/talents#talent-tabs

Finding: Talent tabs in ui: talents

The tab list is built once, on the first call, from TalentTab.dbc in file order: a row is kept when both its race mask (+0x2c) and class mask (+0x30) accept the player's race and class (0 accepts all, else bit race-1 or class-1 of the mask). The order field of the row is not read. A tab record is 16 bytes: the row id, the points spent (+4), the talent count (+8) and a pointer to the first Talent.dbc row of that tab (+0xc). GetNumTalentTabs() returns the count. GetTalentTabInfo(tab) returns four values: the localized name, the icon (nil when the row has none), the points spent and the background string; an invalid tab returns nil, nil, 0, nil.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

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