looking for a script that will take a screen shot everytime i level.
looking for a script that will take a screen shot everytime i level.
PHP Code:
init start
local Skills = {
-- Downgrade
Death = true,
-- Upgrade
Level = true,
Magic = false,
Fist = false,
Axe = false,
Club = false,
Sword = false,
Distance = false,
Shielding = false,
Fishing = false,
}
init end
auto(400, 800)
foreach newmessage m do
if m.type == MSG_STATUS or m.type == MSG_ADVANCE then
local Skill = m.content:match('You advanced .- (.-)[%s%.].-')
if Skill and Skills[Skill:capitalize()] then
screenshot(string.format('Advance_%s_%s', $name, os.date('%Y-%m-%d %H-%M-%S')))
elseif Skills.Death and m.content:match("You were killed (.+)") then
screenshot(string.format('Death_%s_%s', $name, os.date('%Y-%m-%d %H-%M-%S')))
end
end
end