SRL Archive - OSR Help

Formula for XP/H?


Sin

2012-01-20 16:45:06

My variables as follows -

XP - Experience Earned
TimeRunning - uhh….
bowCount - How many bows made.

I was thinking something like

XP / TimeRunning * 36000
No clue if thats gonna work :p

YoHoJo

2012-01-20 16:48:05

Ores/Hr
Loads/Hr

Took idea from Tarajunky

Sec:= (1+((Getsystemtime-StartTime)/1000));
OreRate:=(3600*(TOres))/(Sec);
LoadRate:=(3600*(TLoads))/(Sec);

At beginning of script before main loop put
StartTime:=GetSystemTime;

Sin

2012-01-20 17:05:28

Thanks!
That helped a lot :)

marpis

2012-01-21 02:01:10

XP/hour = Round(XP/GetTimeRunning/3600000.0);