GetAchievementCriteriaInfo
(Redirected from API GetAchievementCriteriaInfoByID)
Jump to navigation
Jump to search
GetAchievementCriteriaInfo |
+ 3.0.2 / 1.15.0 | ||
GetAchievementCriteriaInfoByID |
+ 5.0.4 / 1.15.0 |
Returns info for the specified achievement criteria.
criteriaString, criteriaType, completed, quantity, reqQuantity, charName, flags, assetID, quantityString, criteriaID, eligible = GetAchievementCriteriaInfo(achievementID, criteriaIndex [, countHidden]) = GetAchievementCriteriaInfoByID(achievementID, criteriaID)
Arguments
GetAchievementCriteriaInfo
- achievementID
- number - Achievement ID the queried criteria belongs to.
- criteriaIndex
- number - Index of the criteria to query, ascending from 1 up to GetAchievementNumCriteria(achievementID).
GetAchievementCriteriaInfoByID
- achievementID
- number
- criteriaID
- number - Unique ID of the criteria to query.
- countHidden
- boolean
Returns
- 1. criteriaString
- string - The name of the criteria.
- 2. criteriaType
- number - Criteria type; specifies the meaning of the assetID.
- 3. completed
- boolean - True if you've completed this criteria; false otherwise.
- 4. quantity
- number - Quantity requirement imposed by some
criteriaType
. - 5. reqQuantity
- number - The required quantity for the criteria. Used mostly in achievements with progress bars. Usually 0.
- 6. charName
- string - The name of the character that completed this achievement.
- 7. flags
- number - Some flags. Currently unknown purpose.
- 8. assetID
- number - Criteria data whose meaning depends on the type.
- 9. quantityString
- string - The string used to display the current quantity. Usually the string form of the quantity return.
- 10. criteriaID
- number - Unique criteria ID.
- 11. 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.
- 12. duration
- number
- 13. elapsed
- number
Values
See Criteria.db2
Value | Description | Corresponding AssetID |
---|---|---|
Monster kill | Monster ID | |
Winning PvP objectives in a thorough manner (holding all bases, controlling all flags) | ||
Reaching a player level | Player level | |
Weapon skill | probably a skill ID of some sort[citation needed] | |
Another achievement | Achievement ID | |
Completing quests globally | ||
Completing a daily quest every day | ||
Completing quests in specific areas | ||
Collecting currency | Currency ID | |
Completing daily quests | ||
Dying in specific locations | Location | |
Defeating a boss encounter | NPC ID | |
Completing a quest | Quest ID | |
Getting a spell cast on you | Spell ID | |
Casting a spell (often crafting) | Spell ID | |
PvP objectives (flags, assaulting, defending) | ||
PvP kills in battleground PvP locations | ||
Winning ranked arena matches in specific locations | (probably a location ID)[citation needed] | |
Squashling (owning a specific pet?)[citation needed] | Spell ID | |
PvP kills while under the influence of something | ||
Acquiring items (soulbound) | Item ID | |
Winning arenas | ||
Highest-reached arena team rating | Team size | |
Achieving arena team rating | Team size | |
Eating or drinking a specific item | Item ID | |
Fishing things up | Item ID | |
Exploration | (location ID?)[citation needed] | |
Reaching a PvP rank (old PvP system) | Rank | |
Purchasing 7 bank slots | ||
Exalted rep | Faction ID | |
5 reputations to exalted | ||
Equipping items | Slot ID (quality is presumably encoded into flags) | |
Killing specific classes of player | ||
Kill-a-given-race | (Race ID?)[citation needed] | |
Using emotes on targets | (likely the emote ID)[citation needed] | |
Healing | ||
Being a wrecking ball in Alterac Valley | ||
Having items (tabards and legendaries) | Item ID | |
Getting gold from vendors | ||
Getting gold from quest rewards | ||
Looting gold | ||
Reading books | Object ID | |
Killing players in world PvP locations | ||
Fishing things from schools or wreckage | Object ID | |
Killing Mal'Ganis on Heroic. Why? Who can say. | ||
Earning a title (for guild achievements) | ||
Obtaining mounts | ||
Obtaining battle pets | NPC ID of the pet | |
Fishing, either in general or in specific locations | ||
Casting spells on specific target | Spell ID | |
Learning cooking recipes | ||
Honorable kills | ||
Spending guild gold on repairs | ||
Reaching a guild level | ||
Crafting items as a guild | ||
Fishing as a guild | ||
Purchasing guild bank tabs | ||
Guild achievement points | ||
Winning rated battlegrounds | ||
Reaching rated battleground rating | ||
Purchasing a guild crest |
Patch changes
Patch 5.0.4 (2012-08-28): Added GetAchievementCriteriaInfoByID()
Patch 3.0.2 (2008-10-14): Added GetAchievementCriteriaInfo()