WoW:AchievementLink: Difference between revisions
Jump to navigation
Jump to search
m (→Details) |
|||
Line 4: | Line 4: | ||
== Anatomy of a achievementLink == | == Anatomy of a achievementLink == | ||
Finished: | |||
|cffffff00|Hachievement:2186:00000000002FDDE9:1:12:19:8:4294967295:4294967295:4294967295:4294967295|h[The Immortal]|h|r | |cffffff00|Hachievement:2186:00000000002FDDE9:1:12:19:8:4294967295:4294967295:4294967295:4294967295|h[The Immortal]|h|r | ||
Unfinished: | |||
|cffffff00|Hachievement:1284:00000000002FDDE9:0:0:0:-1:65529:0:0:0|h[Outland Dungeonmaster]|h|r | |||
* '''"|cffffff00"''' - Colorizes the link (see [[itemLink]]) | * '''"|cffffff00"''' - Colorizes the link (see [[itemLink]]) |
Revision as of 02:35, 20 December 2008
← WoW API
achievementLink API Type (String)
achievementLinks are returned by GetAchievementLink().
Anatomy of a achievementLink
Finished:
|cffffff00|Hachievement:2186:00000000002FDDE9:1:12:19:8:4294967295:4294967295:4294967295:4294967295|h[The Immortal]|h|r
Unfinished:
|cffffff00|Hachievement:1284:00000000002FDDE9:0:0:0:-1:65529:0:0:0|h[Outland Dungeonmaster]|h|r
- "|cffffff00" - Colorizes the link (see itemLink)
- "|H" - Hyperlink introduction
- "achievement:2186" - Achievement ID
- "00000000002FDDE9" - Character ID
- "1" - Status of this achievement. "1" means finished, and vice versa.
- "12" - Month this was finished.
- "19" - Day this was finished.
- "8" - Year this was finished, starts from 2000.
- "4294967295" - Flags of details of this. (#1)
- "4294967295" - Flags of details of this. (#2)
- "4294967295" - Flags of details of this. (#3)
- "4294967295" - Flags of details of this. (#4)
- "|h" - Hyperlink data concluded, text follows
- "[The Immortal]" - Display text
- "|h" - Hyperlink conclusion
- "|r" - Returns color to normal
Details
The detail list portion of the achievementLink is a bitset representing which items are finished.
The character ID corresponds to the character's GUID but it doesn't include the first 2 characters. One might determine whether the given ID is that of the player like so:
local PlayerGUID = strsub(UnitGUID("player"), 3) local _, id, GUID = strsplit(":", achievementLink); if (PlayerGUID == GUID) then -- Do something only with the player's own achievement links end