API GetArchaeologyRaceInfo

From Wowpedia
Jump to: navigation, search

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 raceIndex is out of bounds.
  • The following textures are used:
Race Texture File IDs
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

  • Battle for Azeroth Patch 8.0.1 (2018-07-17): Added Zandalari and Drust
  • Legion Patch 7.3.0 (2017-08-29): Second return value changed from a string texture path to a fileID.
  • Cataclysm 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.

See also