Skip to content

Commit

Permalink
dates to achievements, honor points stored properly, professions stor…
Browse files Browse the repository at this point in the history
…ed history
  • Loading branch information
choptastic committed Jan 3, 2011
1 parent 5b4b5d1 commit e1846b5
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions DKPProfiler.lua
Expand Up @@ -147,8 +147,9 @@ function DKPPGetAchievements()
--DKPPPrint("ok");
for ii = 1,numach do
local numdone = 0;
achid,ach,achpoints,comp,_,_,_,desc = GetAchievementInfo(catid,ii);
achid,ach,achpoints,comp,M,D,Y,desc = GetAchievementInfo(catid,ii);
catrec = {};

catrec.category = cat;
catrec.ach = ach;
catrec.description = desc;
Expand All @@ -172,6 +173,10 @@ function DKPPGetAchievements()
catrec.progress = numdone.."/"..numcrit;
end

if comp ~= nil then
catrec.date = M.."/"..D.."/"..Y;
end

if comp or numdone>0 then
DKPProfilerCharInfo[player].achievements[achi] = catrec;
achi = achi + 1;
Expand Down Expand Up @@ -395,6 +400,8 @@ function DKPPGetCurrentTradeSkill()
DKPProfilerCharInfo[player].professions[profname].skills = {};
end
DKPProfilerCharInfo[player].professions[profname].level = lvl;
DKPPStoreMetricHistory("Profession: "..profname,lvl);

local i, name, type;
for i = 1,GetNumTradeSkills() do
name, type, _, _ = GetTradeSkillInfo(i);
Expand Down Expand Up @@ -427,6 +434,7 @@ function DKPPGetPvP()
["size"] = size,
["rating"] = rating,
};
DKPPStoreMetricHistory(size.."v"..size..": "..team,rating);
end
end
local hk,dk,rank,rankid;
Expand All @@ -442,10 +450,20 @@ function DKPPGetPvP()
DKPProfilerCharInfo[player].pvp.LifetimeHKs = hk;
DKPProfilerCharInfo[player].pvp.LifetimeDKs = dk;

_,DKPProfilerCharInfo[player].pvp.ValorPoints = GetCurrencyInfo(396);
_,DKPProfilerCharInfo[player].pvp.HonorPoints = GetCurrencyInfo(392);
_,DKPProfilerCharInfo[player].pvp.ConquestPoints = GetCurrencyInfo(390);
_,DKPProfilerCharInfo[player].pvp.JusticePoints = GetCurrencyInfo(395);
_,ValorPoints = GetCurrencyInfo(396);
_,HonorPoints = GetCurrencyInfo(392);
_,ConquestPoints = GetCurrencyInfo(390)
_,JusticePoints = GetCurrencyInfo(395);

_,DKPProfilerCharInfo[player].pvp.ValorPoints = ValorPoints;
_,DKPProfilerCharInfo[player].pvp.HonorPoints = HonorPoints;
_,DKPProfilerCharInfo[player].pvp.ConquestPoints = ConquestPoints;
_,DKPProfilerCharInfo[player].pvp.JusticePoints = JusticePoints;

DKPPStoreMetricHistory("Valor Points",ValorPoints);
DKPPStoreMetricHistory("Honor Points",HonorPoints);
DKPPStoreMetricHistory("Conquest Points",ConquestPoints);
DKPPStoreMetricHistory("Justice Points",JusticePoints);

local Realm, Players

Expand Down

0 comments on commit e1846b5

Please sign in to comment.