Show entire file | Details | Blame | View Log
Rev 161 | Rev 162 |
---|---|
Line 19... | Line 19... |
["G"] = 10000, |
["G"] = 10000, |
["S"] = 100, |
["S"] = 100, |
["C"] = 1, |
["C"] = 1, |
} |
} |
local hiddenAchievements = { |
|
"<Hidden>", |
|
"<DND>", |
|
"(DNT)", |
|
"(KMS)", |
|
"Hidden Tracking", |
|
"(Hidden Character Achievement)" |
|
} |
|
self.categories = { |
self.categories = { |
["achievements"] = {}, |
["achievements"] = {}, |
["statistics"] = {}, |
["statistics"] = {}, |
["guild"] = {}, |
["guild"] = {}, |
} |
} |
Line 250... | Line 261... |
UrbanAchiever:CreateOptions() |
UrbanAchiever:CreateOptions() |
self:PopulateAchieveList() |
self:PopulateAchieveList() |
end |
end |
UrbanAchiever.hiddenAchievemen = {} |
|
function self:PrintHidden() |
|
for k,v in pairs(UrbanAchiever.hiddenAchievemen) do |
|
print('["'..k..'"] = 3, --'.. v) |
|
end |
|
end |
|
function self:checkHidden(id) |
|
return true |
|
--[[local _, name, _, _, _, _, _, description = GetAchievementInfo(id) |
|
for k,v in pairs(hiddenAchievements) do |
|
local hidden = string.find(name, v) |
|
if hidden ~= nil then |
|
table.insert(UrbanAchiever.hiddenAchievemen, id, name) |
|
return false |
|
end |
|
hidden = string.find(description, v) |
|
if hidden ~= nil then |
|
table.insert(UrbanAchiever.hiddenAchievemen, id, name) |
|
return false |
|
end |
|
end |
|
return true]] |
|
end |
|
function self:PopulateAchieveList() |
function self:PopulateAchieveList() |
for id = 1, MAX_ACHIEVEMENTS do |
for id = 1, MAX_ACHIEVEMENTS do |
local category = GetAchievementCategory(id) |
local category = GetAchievementCategory(id) |
if category and category ~= nil then |
if category and category ~= nil then |
local lastID = id |
|
local _, _, _, completed = GetAchievementInfo(id) |
local _, _, _, completed = GetAchievementInfo(id) |
if not (UrbanAchiever.factionAchs[tostring(id)] and UrbanAchiever.factionAchs[tostring(id)] ~= playerFaction) then |
if not (UrbanAchiever.factionAchs[tostring(id)] and UrbanAchiever.factionAchs[tostring(id)] ~= playerFaction) and self:checkHidden(id) then |
if(type(self.achieveList[category]) == "table") then |
if(type(self.achieveList[category]) == "table") then |
table.insert(self.achieveList[category], id, completed) |
table.insert(self.achieveList[category], id, completed) |
else |
else |
self.achieveList[category] = {[id] = completed} |
self.achieveList[category] = {[id] = completed} |
end |
end |
Line 1678... | Line 1714... |
local category |
local category |
--Get Every achievement |
--Get Every achievement |
for i=1, MAX_ACHIEVEMENTS do |
for i=1, MAX_ACHIEVEMENTS do |
searchString = self:GetSearchString(i) |
searchString = self:GetSearchString(i) |
if searchString then |
|
if searchString and hidden == nil then |
|
self.masterList[i] = { |
self.masterList[i] = { |
["searchString"] = searchString:lower(), |
["searchString"] = searchString:lower(), |
} |
} |
if not GetNextAchievement(i) then |
if not GetNextAchievement(i) then |
--If this isnt in the middle of a chain, add it to the category listing |
--If this isnt in the middle of a chain, add it to the category listing |
if self:checkHidden(i) then |
|
category = GetAchievementCategory(i) |
category = GetAchievementCategory(i) |
if not self.seriesList[category] then |
if not self.seriesList[category] then |
self.seriesList[category] = {} |
self.seriesList[category] = {} |
end |
end |
tinsert(self.seriesList[category], i) |
tinsert(self.seriesList[category], i) |
end |
end |
end |
end |
end |
end |
end |
end |
end |
|
function self:PopulateCategories(tab) |
function self:PopulateCategories(tab) |
local list, name, parent |
local list, name, parent |
local isAch = false |
local isAch = false |
local isGuild = false |
local isGuild = false |