Thread: Explorer Coords
View Single Post
04-30-14, 11:33 PM   #21
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Originally Posted by Phanx View Post
Use GetAchievementCriteriaInfoByID to look up the criteria directly, instead of looping over all the criteria, calling GetAchievementCriteriaInfo for each one, and comparing the ID
I actually misnamed that variable in my addon, it's not the criteriaID I'm using but the assetID to identify the criteria. I also had no idea that function existed since it isn't documented anywhere.

I also can't seem to export a patched version of the Achievement_Criteria.dbc file from the client, there are clearly entries missing from it that I can access through the api in-game and I'm assuming it's in a patch somewhere (but I've been through every mpq file and can't find it).

I could export the list from the game as a saved variable and then parse it into the python script but that would be a little extra pain I didn't want to do.

Blizzard appears to have actually removed a function capable of using the criteria ID to get information about the achievement called GetAchievementInfoFromCriteria.

Last edited by semlar : 05-01-14 at 12:01 AM.
  Reply With Quote