GetLanguageByIndex

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0 / 1.13.2

Returns the languages that the character can speak by index.

language, languageID = GetLanguageByIndex(index)

Arguments

index
number - Ranging from 1 up to GetNumLanguages()

Returns

language
string
languageID
number : LanguageID

Example

Prints the available languages for the player.

for i = 1, GetNumLanguages() do
	print(GetLanguageByIndex(i))
end

-- e.g. for Blood elf
> "Orcish", 1
> "Thalassian", 10

Values

ID Name Patch
1 Horde Orcish
2 Alliance Darnassian
3 Horde Taurahe
6 Alliance Dwarvish
7 Alliance Common
8 Demon Hunter Demonic
9 Titan
10 AllianceHorde Thalassian
11 Draconic
12 Kalimag
13 Alliance Gnomish
14 Horde Zandali
33 Horde Forsaken 1.0.0
35 Alliance Draenei 2.0.0
36 Zombie 2.4.3
37 Alliance Gnomish Binary 2.4.3
38 Horde Goblin Binary 2.4.3
39 Gilnean 4.0.1
40 Horde Goblin 4.0.1
42 AllianceHorde Pandaren 5.0.3
43 Pandaren 5.0.3
44 Pandaren 5.0.3
168 Sprite 5.0.3
178 ClassIcon priest.png Shath'Yar 6.x / 7.x
179 Nerglish 6.x / 7.x
180 Moonkin 6.x / 7.x
181 Horde Shalassian 7.3.5
182 Thalassian 7.3.5
285 Horde Vulpera 8.3.0
287 Complex Cipher 9.2.0
288 Basic Cypher 9.2.0
290 Metrial 9.2.0
291 Altonian 9.2.0
292 Sopranian 9.2.0
293 Aealic 9.2.0
294 Dealic 9.2.0
295 Trebelim 9.2.0
296 Bassalim 9.2.0
297 Embedded Languages 9.2.0
298 Unknowable 9.2.0
303 Furbolg 10.0.7