GetAchievementCriteriaInfo

From Wowpedia
Jump to: navigation, search

Returns information about the given Achievement's specified criteria.

criteriaString, criteriaType, completed, quantity, reqQuantity, 
 charName, flags, assetID, quantityString, criteriaID, eligible = 
 GetAchievementCriteriaInfo(achievementID, criteriaIndex)

Arguments

achievementID 
Number - Achievement ID the queried criteria belongs to.
criteriaIndex 
Number - Index of the criteria to query, ascending from 1 up to GetAchievementNumCriteria(achievementID).

Returns

criteriaString 
String - The name of the criteria.
criteriaType 
Number - Criteria type; specifies the meaning of the assetID.
completed 
Boolean - True if you've completed this criteria; false otherwise.
quantity 
Number - Quantity requirement imposed by some criteriaType.
reqQuantity 
Number - The required quantity for the criteria. Used mostly in achievements with progress bars. Usually 0.
charName 
String - The name of the character that completed this achievement.
flags 
Number - Some flags. Currently unknown purpose.
assetID 
Number - Criteria data whose meaning depends on the type.
quantityString 
String - The string used to display the current quantity. Usually the string form of the quantity return.
criteriaID 
Number - Unique criteria ID.
eligible 
Boolean - True if the criteria is eligible to be completed; false otherwise. Used to determine whether to show the criteria line in the objectives tracker in red or not.

Details

Red exclamation mark iconThis is an expensive call. On achievements with 50+ criteria, each call takes about 1ms.

The return values from this function are identical to those returned by GetAchievementCriteriaInfoByID. The only difference between these functions is that this one takes a criteria index, and the other takes a criteria ID.

Here's a list of known criteria types:

Enumeration: Achievement Criteria Info [edit]
Value Description Corresponding AssetID
0
Monster kill Monster ID
1
Winning PvP objectives in a thorough manner (holding all bases, controlling all flags)
5
Reaching a player level Player level
7
Weapon skill probably a skill ID of some sort[citation needed] 
8
Another achievement Achievement ID
9
Completing quests globally
10
Completing a daily quest every day
11
Completing quests in specific areas
12
Collecting currency Currency ID
14
Completing daily quests
16
Dying in specific locations Location
20
Defeating a boss encounter NPC ID
27
Completing a quest Quest ID
28
Getting a spell cast on you Spell ID
29
Casting a spell (often crafting) Spell ID
30
PvP objectives (flags, assaulting, defending)
31
PvP kills in battleground PvP locations
32
Winning ranked arena matches in specific locations (probably a location ID)[citation needed] 
34
Squashling (owning a specific pet?)[citation needed]  Spell ID
35
PvP kills while under the influence of something
36
Acquiring items (soulbound) Item ID
37
Winning arenas
38
Highest-reached arena team rating Team size
39
Achieving arena team rating Team size
41
Eating or drinking a specific item Item ID
42
Fishing things up Item ID
43
Exploration (location ID?)[citation needed] 
44
Reaching a PvP rank (old PvP system) Rank
45
Purchasing 7 bank slots
46
Exalted rep (presumably some kind of faction ID)[citation needed] 
47
5 reputations to exalted
49
Equipping items Slot ID (quality is presumably encoded into flags)
52
Killing specific classes of player
53
Kill-a-given-race (Race ID?)[citation needed] 
54
Using emotes on targets (likely the emote ID)[citation needed] 
55
Healing
56
Being a wrecking ball in Alterac Valley
57
Having items (tabards and legendaries) Item ID
59
Getting gold from vendors
62
Getting gold from quest rewards
67
Looting gold
68
Reading books Object ID
70
Killing players in world PvP locations
72
Fishing things from schools or wreckage
73
Killing Mal'Ganis on Heroic. Why? Who can say.
74
Earning a title (for guild achievements)
75
Obtaining mounts
96
Obtaining battle pets NPC ID of the pet
109
Fishing, either in general or in specific locations
110
Casting spells on specific target Spell ID
112
Learning cooking recipes
113
Honorable kills
124
Spending guild gold on repairs
125
Reaching a guild level
126
Crafting items as a guild
127
Fishing as a guild
128
Purchasing guild bank tabs
129
Guild achievement points
130
Winning rated battlegrounds
132
Reaching rated battleground rating
133
Purchasing a guild crest

Patch changes

Wrath of the Lich King Patch 3.0.2 (2008-10-14): Added.