Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(2 Kb)
Download
Updated: 05-05-12 02:27 AM
Updated:05-05-12 02:27 AM
Created:05-05-12 12:30 AM
Downloads:755
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: 6
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
Graši is offline 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: 335
Uploads: 2
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 =)
__________________
Baine is offline 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: 6
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
Graši is offline 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: 335
Uploads: 2
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)
__________________
Baine is offline 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.