Originally Posted by Phinix
Does it only return a link if the achievement actually gives you an item reward?
|
If one looks at the only place this function is used, it looks like that:
Lua Code:
local function GetAchievementRewardLink(achievementRewardItem, linkStyle)
local achievementId = ZO_Inventory_GetBagAndIndex(achievementRewardItem)
local hasRewardItem = GetAchievementRewardItem(achievementId)
if hasRewardItem then
return GetAchievementItemLink(achievementId, linkStyle)
end
end
@Rhyono: You may want to use GetAchievementLink ?