canofpeople
2006-04-07 23:39:37
uhh this is the print progress report if anyone needs it
Procedure PrintProgressReport;
var
RHours,Minutes,Seconds,RMinutes,RSeconds,avtime:LongInt;
Time:String;
Begin
Seconds:=(GetSystemTime-ST) div 1000;
Minutes:=Seconds div 60;
RHours:=Minutes div 60;
Time:=inttostr(Seconds)+'seconds';
avtime:=Seconds/banked;
if Minutes<>0 then
begin
RSeconds:=Seconds Mod (Minutes*60);
Time:=inttostr(Minutes)+' minute(s) '+inttostr(RSeconds)+' seconds ';
end;
if RHours<>0 then
begin
RMinutes:=Minutes Mod (RHours*60);
RSeconds:=Seconds Mod (Minutes*60);
Time:=inttostr(RHours)+' hour(s) '+inttostr(RMinutes)+' minute(s) '+inttostr(RSeconds)+' seconds';
end;
writeln('|==============Script Name================|');
writeln('|PROGRESS REPORT:');
writeln('|Worked for '+Time+'');
writeln('|§mined/cut/thieved etc§ and banked '+inttostr(banked)+' time(s) '+inttostr(banked*§amount if items that are banked each time§)+' '§Item at hand§');
writeln('|Currently Averaging '+inttostr(3600/avtime*§amount if items that are banked each time§)+' '§Item at hand§' per hour');
writeln('|=========================================|');
End;[CODE]