View Single Post
04/24/14, 08:49 AM   #5
Iyanga
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 183
So, regarding your addon you need to change

Lua Code:
  1. local categoryTopLevelIndex = GetCategoryInfoFromAchievementId(achId)

into something more complex:
- Get the PreviousAchievementInLine()
- If it's not 0, get the AchievementInfo from it
- If the AchievementInfo completed == true, get the CategoryInfo to get the correct category
- If not, repeat and get previouspreviousAchievementInLine()
- If it IS 0, you can just get the CategoryInfo

Last edited by Iyanga : 04/24/14 at 08:56 AM.
  Reply With Quote