m
→Details
(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 | |||