SRL Archive - OSR Help

Progress report


NKN

2012-03-22 07:17:46

I got the rest of my progress report, I just can't seem to find a formula to get it to check how many herbs cleaned per hour. Help?


Thanks in advance.

Gl3nn IV

2012-03-22 13:16:13

Writeln('Herbs Cleaned ' + IntToStr(HerbsCleaned) );

The "herbscleaned" at the end is related to your script i belive. But thats the basic structure. Not sure if thats answered your question sorry.

Gucci

2012-03-22 14:03:01

Well since your script banks I assume use:

procedure HerbsBanked;
var
HerbsCleaned: Integer;

begin
if BankScreen then
IncEx(HerbsCleaned, 28);
end;

and then include what Glen said into the progress report.

So like:

procedure Report;
begin
if BankScreen then

begin
//Time running
// blah blah
Writeln('Herbs Cleaned ' + IntToStr(HerbsCleaned) );
end;
end;

NKN

2012-03-22 15:55:03

No, I have that.
I mean, to calculate how many per hour, not how many total.

Gucci

2012-03-22 16:01:12

The something like this will work:

procedure HerbsPerHour;
Begin
HerbsPH := Round((HerbsCleaned * 3600) / (GetTimeRunning / 1000));
end;

NKN

2012-03-22 16:01:59

Uh, it's showing 0 p/h now if that code is used. :|