Retrieved guild achievement criteria status?
Hi,
I am currently maintaining Urban Achiever (http://www.wowinterface.com/download...nAchiever.html) and I am recently encounter an issue that I can't avoid. Guild achievements are not working like other achievements. The API function that retrieved the criteria information are not working like I intended. Code:
criteriaString, criteriaType, completed, quantity, reqQuantity, charName, flags, assetID, quantityString = GetAchievementCriteriaInfo(achievementID, criteriaID); The value of "quantity" have the same issue. I have look threw the entire code of the default achievement frame but I haven't found any pieces of information on how they retrieve the right value. I have done some tests and I have seen that when you click on an guild achievement on the default UI frame, I will correctly see criteria advancement of this achievement on my addon. I doubt someone can help me (because I know more thing on achievement API function than you can easily found on wowwiki or google) but if someone have an idea, please tell me. Thanks, Tomate |
I can't directly answer your question - but I have seen in some cases the api will return out of date info.
It's possible that when clicking the achieve in the default ui, a particular function is run that has a side effect of telling the client to refresh/retrieve data, which is then exposed by another function which itself is perhaps lazy in retrieving this info (perhaps for perf reasons)... But really it's only a hunch based on what you've wrote. |
Code:
local criteriaString, criteriaType, criteriaCompleted, quantity, totalQuantity, name, flags, assetID, quantityString, criteriaID, eligible = GetAchievementCriteriaInfo(achID, critID); Perharps the answer is in the 2 returns you are missing. |
Quote:
Quote:
[EDIT]: I have try to add those two values and look what is in it and It does "nothing". (they can't help me). |
All times are GMT -6. The time now is 08:47 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI