PDA

View Full Version : screenshots when skill lvl up



Dzonzi
08-23-2016, 02:40 PM
GenericTextMessageProxy.OnReceive("Skill Level Screenshotter", function(_, msg)
-- Skills
local skill, level = msg:match("You advanced to (.*) level (%d+)")
if skill and level then
wait(1000)
screenshot(Self.Name().."_"..skill.."_"..level)
return
end

-- Regular levels
level = msg:match("You advanced from Level .- to Level (%d+)")
if level then
wait(1000)
screenshot(Self.Name().."_"..level)
end
end)

this sucks. DO screen in random moment