|
|
| Line 1: |
Line 1: |
| {{Wowapi}} | | {{Wowapi}} |
| == achievementLink API Type (String) ==
| | Achievement links are returned by [[API GetAchievementLink|GetAchievementLink]](). |
| achievementLinks are returned by [[API GetAchievementLink|GetAchievementLink]]().
| |
|
| |
|
| == Anatomy of a achievementLink == | | == Format == |
| Finished: | | 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 |
| Line 11: |
Line 10: |
| * '''"|cffffff00"''' - Colorizes the link (see [[itemLink]]) | | * '''"|cffffff00"''' - Colorizes the link (see [[itemLink]]) |
| * '''"|H"''' - Hyperlink introduction | | * '''"|H"''' - Hyperlink introduction |
| * '''"achievement:2186"''' - Achievement ID | | * '''"achievement:1284:00000000002FDDE9:0:0:0:-1:65529:0:0:0"''' – Read more at [[AchievementString|Achievement String]]. |
| * '''"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 | | * '''"|h"''' - Hyperlink data concluded, text follows |
| * '''"[The Immortal]"''' - Display text | | * '''"[Outland Dungeonmaster]"''' - Display text |
| * '''"|h"''' - Hyperlink conclusion | | * '''"|h"''' - Hyperlink conclusion |
| * '''"|r"''' - Returns color to normal | | * '''"|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([[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
| |