SRL Archive - Help

Per hour proggy


Footy

2012-08-08 10:02:19

How would I go about putting exp per hour, and tanned hides per hour in my proggy? This is my proggy so far.
Procedure Proggy;
begin
Writeln('********************************');
Writeln('Time running = ' + (TimeRunning));
Writeln('We have Tanned ' + IntToStr(Hides_Tanned));
Writeln('We have earned ' + IntToStr(Profit_per_hide * Hides_Tanned));
end;
Thanks in advance!
Footy

P1ng

2012-08-08 10:08:46

Simple math :) But there are many ways to arrange the math, all a matter of preference.

Here is how I do it in all of my scripts: round(3600000 * 1.0 / GetTimeRunning * xp)

Don't forget to add the 'round' because otherwise you will have some hectic long decimal on the end of that number.

Footy

2012-08-08 10:09:59

Awesome! Thanks Ping!

VastlySuperior

2012-08-08 11:54:49

There was a discussion about htis just a day ago, here is the link