WoW:AchievementLink: Difference between revisions
Jump to navigation
Jump to search
(New page: {{Wowapi}} == achievementLink API Type (String) == achievementLinks are returned by GetAchievementLink(). == Anatomy of a achievementLink == |cffffff00|Hachiev...) |
m (→Details) |
||
Line 26: | Line 26: | ||
The detail list portion of the achievementLink is a bitset representing which items are finished. | 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([[API UnitGUID|UnitGUID]]("player"), 3) | |||
local _, id, GUID = strsplit(":", achievementLink); | |||
if (PlayerGUID == GUID) then | |||
-- Do something only with the player's own achievement links | |||
end |
Revision as of 21:10, 19 December 2008
← WoW API
achievementLink API Type (String)
achievementLinks are returned by GetAchievementLink().
Anatomy of a achievementLink
|cffffff00|Hachievement:2186:00000000002FDDE9:1:12:19:8:4294967295:4294967295:4294967295:4294967295|h[The Immortal]|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