Display zones required for "World Explorer" achievement

This snippet will print to your chat frame all of the zones required for "World Explorer" Achievement, and tell you whether you have completed them or not.

Snippet

function PrintAchievementCriteria(id)
   local id,name,points,completed = GetAchievementInfo(id)
   print("Achievement #" .. id .. ": " .. name)
   
   for j=1,GetAchievementNumCriteria(id) do
      local string, type, completed, quantity, totalQuantity, name, flags, assetID, quantityString, criteriaID = GetAchievementCriteriaInfo(id, j)
      
      if type == CRITERIA_TYPE_ACHIEVEMENT and assetID then
         PrintAchievementCriteria(assetID)
      else
         print(string.format(" * %s%s", string, completed and " (completed)" or ""))
      end
      
   end
end

PrintAchievementCriteria(46)

-- Achievement #46: World Explorer
-- Achievement #42: Explore Eastern Kingdoms
Posted by jnwhiteh at Mon, 27 Apr 2009 10:47:36 +0000