All stats, like damage done, killings blows in battlegrounds, etc, all that kind of stuff. Here is where I'm at.
I found this on WoWwiki:
"Here is a function that will take any statistic category (like Battlegrounds) and any statistic title in that category (like Battlegrounds played) and will return the statistic ID for that statistic, so it can be used in other functions."
------------------------------------------------------
function GetStatisticId(CategoryTitle, StatisticTitle)
------------------------------------------------------
local str = ""
for _, CategoryId in pairs(GetStatisticsCategoryList()) do
local Title, ParentCategoryId, Something
Title, ParentCategoryId, Something = GetCategoryInfo(CategoryId)
if Title == CategoryTitle then
local i
local statisticCount = GetCategoryNumAchievements(CategoryId)
for i = 1, statisticCount do
local IDNumber, Name, Points, Completed, Month, Day, Year, Description, Flags, Image, RewardText
IDNumber, Name, Points, Completed, Month, Day, Year, Description, Flags, Image, RewardText = GetAchievementInfo(CategoryId, i)
if Name == StatisticTitle then
return IDNumber
end
end
end
end
return -1
end
Then I do this :
id = GetStatisticId("Deaths","Deaths in Warsong Gulch")
stat = GetStatistic(id)
print("Deaths :", stat)
And nothing is stored in stat. The problem is that there is 2 subdivisions, you have character, combat, kills, deaths, quests, then there is another division, and another. Why does it have to be so complicated Any help plz
ps: Never mind fixed: it was GetStatisticId("Battlegrounds","Deaths in Warsong Gulch")
So in fact you have to ignore the first subdivision
Last edited by mmoc1d1ec1edc2; 2012-09-02 at 03:50 PM.