Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
m (→‎External links: External link fix)
 
(→‎Returns: 1 if rare, not 3)
 
Line 1: Line 1:
  +
{{wowapi}} __NOTOC__
<onlyinclude>{{{{{tpl|tooltip}}}
 
  +
<!-- Describe the purpose of the function, exhausting detail can be saved for a later section -->
|mode={{{mode|}}}
 
  +
Returns the information for a specific race's artifact.
|arg={{{arg|}}}
 
  +
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
|durability=50
 
  +
artifactName, artifactDescription, artifactRarity, artifactIcon, hoverDescription, keystoneCount, bgTexture, firstCompletionTime, completionCount = GetArtifactInfoByRace(raceIndex, artifactIndex);
|sell={{cost|2|59|71}}
 
|armor=209
 
|icon=INV_Helmet_15
 
|quality=Uncommon
 
|bind=BoE
 
|type=Leather
 
|slot=Head
 
|itemid=24777
 
|ilvl=111
 
|name=Boneshredder Skullcap
 
|level=67
 
|attrib=<span class="qc-uncommon">&lt;Random Enchantment&gt;</span>}}</onlyinclude>
 
   
==Random enchantments==
+
== Arguments ==
  +
<!-- List each argument, together with its type -->
{| class="darktable"
 
  +
;raceIndex : Integer - Index of the race to pick the artifact from.
|-
 
  +
;artifactIndex : Table - Index of the artifact.
!Item Suffix
 
!Stats Bonus
 
|-
 
| of the Whale
 
| +52 Stamina, +34 Spirit
 
|-
 
| of the Owl
 
| +34 Intellect, +34 Spirit
 
|-
 
| of Power
 
| +104 Attack Power
 
|-
 
| of Spirit
 
| +52 Spirit
 
|-
 
| of the Hierophant
 
| +41 Stamina, +27 Spirit, +60 Healing
 
|-
 
| of the Falcon
 
| +34 Intellect, +34 Agility
 
|-
 
| of the Invoker
 
| +27 Spell Critical Strike Rating, +31 Spell Damage and Healing, +27 Intellect
 
|-
 
| of Frost Protection
 
| +52 Stamina, +34 Frost Resistance
 
|-
 
| of the Beast
 
| +41 Stamina, +27 Strength, +27 Agility
 
|-
 
| of Arcane Protection
 
| +52 Stamina, +34 Arcane Resistance
 
|-
 
| of the Wolf
 
| +34 Spirit, +34 Agility
 
|-
 
| of Nature Protection
 
| +52 Stamina, +34 Nature Resistance
 
|-
 
| of the Monkey
 
| +52 Stamina, +34 Agility
 
|-
 
| of Arcane Wrath
 
| +74 Arcane Damage
 
|-
 
| of the Bandit
 
| +41 Stamina, +54 Attack Power, +27 Agility
 
|-
 
| of Shadow Protection
 
| +52 Stamina, +34 Shadow Resistance
 
|-
 
| of Fire Protection
 
| +52 Stamina, +34 Fire Resistance
 
|-
 
| of Defense
 
| +52 Defense Rating
 
|-
 
| of the Boar
 
| +34 Strength, +34 Spirit
 
|-
 
| of Healing
 
| +114 Healing
 
|-
 
| of the Bear
 
| +52 Stamina, +34 Strength
 
|-
 
| of Stamina
 
| +78 Stamina
 
|-
 
| of Nature's Wrath
 
| +74 Nature Damage
 
|-
 
| of the Gorilla
 
| +34 Intellect, +34 Strength
 
|-
 
| of the Tiger
 
| +34 Strength, +34 Agility
 
|-
 
| of Agility
 
| +52 Agility
 
|-
 
| of the Eagle
 
| +34 Intellect, +52 Stamina
 
|-
 
| of Strength
 
| +52 Strength
 
|-
 
| of Intellect
 
| +52 Intellect
 
|}
 
   
  +
== Returns ==
  +
<!-- List each return value, together with its type -->
  +
;artifactName : String - The name of the artifact.
  +
;artifactDescription : String - The description displayed on the artifact detail page. Only visible after completion for rare artifacts.
  +
;artifactRarity : Integer - The rarity of the artifact, 0 for Common and 1 for Rare.
  +
;artifactIcon : String - The path to the artifact's icon texture.
  +
;hoverDescription : String - The description shown in the tooltip when hovering over the completed artifact. Not visible before the artifact is completed.
  +
;keystoneCount : Integer - The number of [[Keystone]] slots this artifact has. Only visible when this is the in progress artifact.
  +
;bgTexture : String - The path to the artifact's background texture. Only displayed when the artifact is rare.
  +
;firstCompletionTime : Integer - The first time the artifact was ever completed, in the same format as time().
  +
;completionCount : Integer - The number of times this artifact has been completed.
   
==Source==
+
== Details ==
  +
<!-- Details not appropriate for the main description can go here.
This item is a [[world drop]] from level 68-72 mobs.
 
  +
REMOVE the section if you're just going to restate the intro line! -->
  +
: The in progress artifact for the race is always index 1. For this artifact the firstCompletionTime and completionCount always return as 0.
   
  +
: Rare artifacts are always at the front of the list of completed artifacts. For example, if you have two rare artifacts, their indices will always be 2 and 3.
==External links==
 
<!-- Read http://www.wowpedia.org/Wowpedia:External_links before posting your links here.
 
Links that do not conform to the rules will be DELETED.
 
Repeat violations may result in a BAN.
 
Have a nice day. :) -->
 
{{elinks-item|24777}}
 
   
  +
: The formatting used in the US client for the display of the firstCompletionTime tooltip is "%m/%d/%y %I:%M %p". You can view this formatting using the date() function and the firstCompletionTime.
[[Category:World of Warcraft uncommon items]]
 
  +
<noinclude>[[ru:Справка:Статьи о функциях API/Предварительная загрузка]]</noinclude>
[[Category:World of Warcraft leather head items]]
 

Revision as of 05:19, 15 January 2011

Returns the information for a specific race's artifact.

artifactName, artifactDescription, artifactRarity, artifactIcon, hoverDescription, keystoneCount, bgTexture, firstCompletionTime, completionCount = GetArtifactInfoByRace(raceIndex, artifactIndex);

Arguments

raceIndex
Integer - Index of the race to pick the artifact from.
artifactIndex
Table - Index of the artifact.

Returns

artifactName
String - The name of the artifact.
artifactDescription
String - The description displayed on the artifact detail page. Only visible after completion for rare artifacts.
artifactRarity
Integer - The rarity of the artifact, 0 for Common and 1 for Rare.
artifactIcon
String - The path to the artifact's icon texture.
hoverDescription
String - The description shown in the tooltip when hovering over the completed artifact. Not visible before the artifact is completed.
keystoneCount
Integer - The number of Keystone slots this artifact has. Only visible when this is the in progress artifact.
bgTexture
String - The path to the artifact's background texture. Only displayed when the artifact is rare.
firstCompletionTime
Integer - The first time the artifact was ever completed, in the same format as time().
completionCount
Integer - The number of times this artifact has been completed.

Details

The in progress artifact for the race is always index 1. For this artifact the firstCompletionTime and completionCount always return as 0.
Rare artifacts are always at the front of the list of completed artifacts. For example, if you have two rare artifacts, their indices will always be 2 and 3.
The formatting used in the US client for the display of the firstCompletionTime tooltip is "%m/%d/%y %I:%M %p". You can view this formatting using the date() function and the firstCompletionTime.

ru:Справка:Статьи о функциях API/Предварительная загрузка