View Single Post
04-24-23, 07:33 PM   #4
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,335
Might want to check out GetStatistic(). GetStatisticsCategoryList() appears to return a list of statistic CategoryIDs that can be enumerated through with the generic achievement functions to find the AchievementID you want.

For example:
Lua Code:
  1. for _,catid in ipairs(GetStatisticsCategoryList()) do
  2.     for i=1,GetCategoryNumAchievements(catid,true) do
  3.         local achid,achname=GetAchievementInfo(catid,i);
  4.         print(("(%d) %s: %d"):format(achid,achname,GetStatistic(achid)));
  5.     end
  6. end

This prints the entire list of statistics, their related AchievementID for later tracking, and the current statistic value. It takes a few seconds to complete.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 04-24-23 at 08:18 PM.
  Reply With Quote