/tags
local nameOfItem = "Mysterious Egg" |
local timeOfOneWeek = 604800 |
local iconPath = "Interface\\Icons\\INV_egg_09" |
local timeBetweenChecks = 60 |
local elapsed = timeBetweenChecks |
local itemname = string.match(arg1,"%[(.-)%]",1) |
if itemname == nameOfItem then |
--Mysterious Egg bought, start new finish time for this char |
print("Bought one "..itemname) |
--print("Bought one "..itemname) |
if Egacle.data[charRealm] == nil then Egacle.data[charRealm]={} end |
Egacle.data[charRealm][charName]=time()+timeOfOneWeek |
end |
end |
end) |
local ldbstream = ldb:NewDataObject("Egacle",{type = "data source", label="Egacle", text = ""}) |
local ldbstream = ldb:NewDataObject("Egacle",{type = "data source",icon=iconPath, label="Egacle", text = "Egacle"}) |
function ldbstream:OnTooltipShow() |
self:AddLine("Egacle:") |