Hi, I'm using LevelRecorder by Astromech and i wanted to add the total time played to it. i tried:
Code:
local played = 0
...
-- OnEvent handler
local OnEvent = function(self, event, level)
if event == "PLAYER_LEVEL_UP" and level >= minlevel then
-- Displayed /played data on the chat frame
RequestTimePlayed()
if event == "TIME_PLAYED_MSG" then
-- Display message
played = arg1
message:SetText(getMessage(level))
message:Show()
-- Set up the screenshot handler for next update
frame:Show()
end
else -- if event == "SCREENSHOT_SUCCEEDED" or event == "SCREENSHOT_FAILED" then
message:Hide()
end
end
...
frame:SetScript("OnEvent", OnEvent)
frame:SetScript("OnUpdate", OnUpdate)
frame:RegisterEvent"PLAYER_LEVEL_UP"
frame:RegisterEvent"TIME_PLAYED_MSG"
but it didn't work. I level, it shows the time in the chat but never takes the screenshot. could anyone help me or at least point me in the right direction?