![]() |
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns the information for a specific race used in Archaeology.
raceName, raceTexture, raceItemID, numFragmentsCollected, numFragmentsRequired, maxFragments = GetArchaeologyRaceInfo(raceIndex)
Arguments[]
- raceIndex
- number - Index of the race to query, between 1 and GetNumArchaeologyRaces().
Returns[]
- raceName
- string - Name of the race.
- raceTexture
- number (fileID) - The texture used by this race in the Archaeology UI.
- raceItemID
- number - Item ID of the Keystone used for the race's archaeology projects. Will be nil for Fossil as no such item exists.
- numFragmentsCollected
- number - Number of collected fragments for this race.
- numFragmentsRequired
- number - Number of fragments required to solve the current artifact
- maxFragments
- number - Maximum number of fragments that can be carried
Example[]
The snippet below prints the name of every Archaeology race.
for i=1, GetNumArchaeologyRaces() do print((GetArchaeologyRaceInfo(i))) end
Details[]
- Returns "UNKNOWN", nil, 0, 0, 0, 0 if the
raceIndexis out of bounds. - The following textures are used:
| Texture | Race |
|---|---|
| 461831 | Dwarf |
| 461829 | Draenei |
| 461833 | Fossil |
| 461837 | Night Elf |
| 461835 | Nerubian |
| 462321 | Orc |
| 461839 | Tol'vir |
| 461841 | Troll |
| 461843 | Vrykul |
| 839111 | Mantid |
| 633002 | Pandaren |
| 633000 | Mogu |
| 1030616 | Arakkoa |
| 1030617 | Draenor Clans |
| 1030618 | Ogre |
| 1445575 | Highborne |
| 1445577 | Highmountain Tauren |
| 1445573 | Demonic |
| 2060051 | Zandalari |
| 2060049 | Drust |
Patch changes[]
Patch 8.0.1 (2018-07-17): Added Zandalari and Drust
Patch 7.3.0 (2017-08-29): Second return value changed from a string texture path to a fileID.
Patch 4.0.6 (2011-02-08): Return values changed.
- Removed second return value (currency ID). Added numFragmentsCollected and numFragmentsRequired as 4th and 5th return values respectively.
- Removed second return value (currency ID). Added numFragmentsCollected and numFragmentsRequired as 4th and 5th return values respectively.
Patch 4.0.1 (2010-10-12): Added.
