Script::GetLanguageByIndex
function · ui · primitive
- Address
0x49fbe0· 236 bytes, up to0x49fccb- Signature
int __fastcall (lua_State *L)- Meaning
- Pushes the name of the n-th language 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 8
- __ftol crt
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CGPlayer_C::GetIndexedSpellSkill objectlayer
- lua_isnumber lua
- lua_tonumber lua
- lua_pushstring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.