benilla-re systems structs docs

Script::GetNumLaguages

function · ui · primitive

Address
0x49fb30 · 172 bytes, up to 0x49fbdb
Signature
int __fastcall (lua_State *L)
Meaning
Pushes the number of languages the active player understands
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/chatlanguage#language-functions

Finding: Language functions in ui: languages in chat

GetNumLaguages() (the name has the typo) returns the number of Languages rows the active player understands; GetLanguageByIndex(n) returns the name, in the client's locale, of the n-th such row (1-based, in row order); GetDefaultLanguage() returns the name of the language whose id is the ChrRaces row field at +0x20 of the player's race: 7 (Common) for every Alliance race and 1 (Orcish) for every Horde race in the shipped data.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 4

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