diff --git a/Modules/exportDKP.lua b/Modules/exportDKP.lua index 52f691c0..23b145e4 100644 --- a/Modules/exportDKP.lua +++ b/Modules/exportDKP.lua @@ -44,6 +44,10 @@ local function GenerateDKPTables(table, format) elseif table == CommDKP:GetTable(CommDKP_Loot, true) then local numrows; + local baseUrl = "https://classic.wowhead.com/"; + if WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC then + baseUrl = "https://tbc.wowhead.com/"; + end if #CommDKP:GetTable(CommDKP_Loot, true) > 200 then numrows = 200; @@ -54,7 +58,7 @@ local function GenerateDKPTables(table, format) for i=1, numrows do local cur = CommDKP:GetTable(CommDKP_Loot, true)[i].loot local itemNumber = strsub(cur, string.find(cur, "Hitem:")+6, string.find(cur, ":", string.find(cur, "Hitem:")+6)-1) - ExportString = ExportString.."
\n
("..CommDKP:GetTable(CommDKP_Loot, true)[i].cost.." DKP)
\n
"..CommDKP:GetTable(CommDKP_Loot, true)[i].player.."
\n
"..CommDKP:GetTable(CommDKP_Loot, true)[i].zone..": "..CommDKP:GetTable(CommDKP_Loot, true)[i].boss.."
("..date("%m/%d/%y %H:%M:%S", CommDKP:GetTable(CommDKP_Loot, true)[i].date)..")
\n
\n" + ExportString = ExportString.."
\n
("..CommDKP:GetTable(CommDKP_Loot, true)[i].cost.." DKP)
\n
"..CommDKP:GetTable(CommDKP_Loot, true)[i].player.."
\n
"..CommDKP:GetTable(CommDKP_Loot, true)[i].zone..": "..CommDKP:GetTable(CommDKP_Loot, true)[i].boss.."
("..date("%m/%d/%y %H:%M:%S", CommDKP:GetTable(CommDKP_Loot, true)[i].date)..")
\n
\n" end ExportString = ExportString.." \n\n\n" end