Advertisement
Anaristos

Untitled

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