Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function levelreport(level,channel)
- --
- if not channel then channel = "gt" end
- report.time = levelinfo.mytimeyear ~= 0 and "@GY:@R"..levelinfo.mytimeyear.."," or ""
- report.time = levelinfo.mytimemonth ~= 0 and report.time .. "@GM:@R"..levelinfo.mytimemonth.."," or ""
- report.time = levelinfo.day ~= 0 and report.time .. "@GD:@R" .. "," or ""
- report.time = report.time .. "@GH:@W" .. levelinfo.hour .. " "
- report.time = report.time .. "@GM:@W" .. levelinfo.min .. " "
- report.time = report.time .. "@GS:@W" .. levelinfo.sec
- report.gains = "@GH@gP@R(@w"..levelinfo.hp.."@R)@w"
- report.gains = report.gains.."@GM@gn@R(@w"..levelinfo.mana.."@R)@w"
- report.gains = report.gains.."@GM@gv@R(@w"..levelinfo.moves.."@R)@w"
- if levelinfo.prac > 0 then
- report.gains = report.gains.."@GP@gr@R(@w"..levelinfo.prac.."@R)"
- end
- if levelinfo.trains > 0 then
- if levelinfo.bonustrain > 0 then
- report.gains = report.gains .. "@GT@gr@R(@w" .. levelinfo.trains .. "@W+@w" .. levelinfo.bonustrain .. "@R)"
- else
- report.gains = report.gains .. "@GT@gr@R(@w" .. levelinfo.trains .. "@R)"
- end
- end
- if levelinfo.bonusstat ~= nil then
- report.message = "@GL@gevel@R(@w" .. level .."@R) @GT@gook:@w[" .. report.time .. "@w] " .. report.gains .. " @G+@gStats:@w" .. levelinfo.bonusstat
- else
- report.message = "@GL@gevel@R(@w" .. level .."@R) @GT@gook:@w[" .. report.time .. "@w] " .. report.gains
- end
- return channel .. " " .. report.message
- --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement