Download
(2Kb)
Download
Updated: 05-05-12 02:27 AM
Updated:05-05-12 02:27 AM
Created:05-05-12 12:30 AM
Downloads:1,164
Favorites:0
MD5:

HautFaits Criteria

Version: 20120505
by: Graçi [More]

The purpose is to get the achievements criteria infos.
It isn't released in Blizzard html api yet, so you have to search it ingame.
install the addon, log with all your toons, disconnect, and you have in
World of Warcraft\WTF\Account\<your account>\SavedVariables\HautFaits_criteria.lua
everything they have access to.

(A toon doesn't have access to everything, because if it hasn't done a dungeon in normal version, it won't have access to the heroic dongeon data, and if it has done the heroic, it won't have access to the normal dongeon data anymore.)
you'll get the data in the language of the version you have connected your toons in.



I use it in php :
$achievements = 'HautFaits_Criteria.lua';
$data = file_get_contents($achievements, NULL, NULL, 24);
$json = str_replace(array("=", "\n", "\r", "\t", "[", "]"), array(":", "", "", "", "", ""), $json);
$json = str_replace(array(",}"), array("}"), $json);
$json = preg_replace('/([{,])(\s*)([^"]+?)\s*:/', '$1"$3":', $json);
$achievements = json_decode($json, $assoc);

the resulting $achievements is an array
{[achievementId] = {["numCriteria"] = 1,
["achievementFlags"] = 0,
["achievementImage"] = "Interface\\Icons\\ability_vehicle_liquidpyrite_blue",
["achievementReward"] = "Récompenses : titre et tabard de maître des traditions",
["criteria"] = {[criteriaId] = {[criteriaFlags"] = 1,
["criteriaString"] = "Défenseurs d'acier forgé tués",
["criteriaReqQuantity"] = 100,
["criteriaType"] = 28,
["criteriaAssetId"] = 65387,
}
}
}
}

"achievementReward" and "criteria" are optional
a criterium may happen in several achievements
"criteriaType" is a bit mysterious, but when it's 8, "criteriaAssetId" is in achievementId
you'll find more info in this on http://www.wowwiki.com/API_GetAchievementCriteriaInfo
you should use the files in UTF-8 for compatibility


version 20120505 : corrected a bug preventing the file to get filled.

Optional Files (0)


Post A Reply Comment Options
Unread 05-07-12, 06:02 AM  
Graçi
A Defias Bandit
 
Graçi's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 21
Uploads: 5
Originally Posted by Baine
Originally Posted by Graçi
Originally Posted by Baine
for which achievement exactly? all i could find was something related to equipping 25 tabards (french name maybe? Tabard des hauts faits aka Tabard of the Achiever)
for all achievements.
I use it to load data in a web app
ok, an example for using that data would be quite nice to have, otherwise it's mostly unclear what this does =)
ok, added tech info in the addon description
Report comment to moderator  
Reply With Quote
Unread 05-05-12, 09:28 AM  
Baine
A Murloc Raider
 
Baine's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 393
Uploads: 1
Originally Posted by Graçi
Originally Posted by Baine
for which achievement exactly? all i could find was something related to equipping 25 tabards (french name maybe? Tabard des hauts faits aka Tabard of the Achiever)
for all achievements.
I use it to load data in a web app
ok, an example for using that data would be quite nice to have, otherwise it's mostly unclear what this does =)
__________________
Report comment to moderator  
Reply With Quote
Unread 05-05-12, 06:43 AM  
Graçi
A Defias Bandit
 
Graçi's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 21
Uploads: 5
Originally Posted by Baine
for which achievement exactly? all i could find was something related to equipping 25 tabards (french name maybe? Tabard des hauts faits aka Tabard of the Achiever)
for all achievements.
I use it to load data in a web app
Report comment to moderator  
Reply With Quote
Unread 05-05-12, 03:53 AM  
Baine
A Murloc Raider
 
Baine's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 393
Uploads: 1
for which achievement exactly? all i could find was something related to equipping 25 tabards (french name maybe? Tabard des hauts faits aka Tabard of the Achiever)
__________________
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.