Guest User

Untitled

a guest
Feb 8th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function levelreport(level,channel)
  2. --
  3.     if channel == nil then
  4.     channel = "gt"
  5.     end
  6.  
  7.     if levelinfo.mytimeyear ~= 0 then
  8.         report.time = "@GY:@R"..levelinfo.mytimeyear..","
  9.     else
  10.         report.time = ""
  11.     end
  12.  
  13.     if levelinfo.mytimemonth ~= 0 then
  14.         report.time = report.time .. "@GM:@R"..levelinfo.mytimemonth..","
  15.     else
  16.         report.time = ""
  17.     end
  18.  
  19.     if levelinfo.day ~= 0 then
  20.         report.time = report.time .. "@GD:@R" .. ","
  21.     else
  22.         report.time = ""
  23.     end
  24.  
  25.         report.time = report.time .. "@GH:@W" .. levelinfo.hour .. " "
  26.         report.time = report.time .. "@GM:@W" .. levelinfo.min .. " "
  27.         report.time = report.time .. "@GS:@W" .. levelinfo.sec
  28.  
  29.         report.gains = "@GH@gP@R(@w"..levelinfo.hp.."@R)@w"
  30.         report.gains = report.gains.."@GM@gn@R(@w"..levelinfo.mana.."@R)@w"
  31.         report.gains = report.gains.."@GM@gv@R(@w"..levelinfo.moves.."@R)@w"
  32.  
  33.     if levelinfo.prac > 0 then
  34.         report.gains = report.gains.."@GP@gr@R(@w"..levelinfo.prac.."@R)"
  35.     end
  36.  
  37.     if levelinfo.trains > 0 then
  38.         if levelinfo.bonustrain > 0 then
  39.             report.gains = report.gains .. "@GT@gr@R(@w" .. levelinfo.trains .. "@W+@w" .. levelinfo.bonustrain .. "@R)"
  40.         else
  41.             report.gains = report.gains .. "@GT@gr@R(@w" .. levelinfo.trains .. "@R)"
  42.         end
  43.  
  44.     end
  45.  
  46.     if levelinfo.bonusstat ~= nil then
  47.         report.message = "@GL@gevel@R(@w" .. level .."@R) @GT@gook:@w[" .. report.time .. "@w] " .. report.gains .. " @G+@gStats:@w" .. levelinfo.bonusstat
  48.     else
  49.         report.message = "@GL@gevel@R(@w" .. level .."@R) @GT@gook:@w[" .. report.time .. "@w] " .. report.gains
  50.     end
  51. return channel .. " " .. report.message
  52. --
Advertisement
Add Comment
Please, Sign In to add comment