• Log in or sign up for an account here: https://www.sythe.org/login

SCAR Script Timer

GenericUser

Newcomer
Joined
Sep 17, 2010
Sythe Gold
0
Messages
6
I am currently writing a SCAR script for a Runescape private server, and need to integrate how long the script has ran into the progress report. I have had trouble finding a function that returns how long the script has ran that is not in SRL. If you would please show me some code that returns how long a script has ran, I would be much obliged.

Thanks in advance
 
Firstly declare a new variable called timer it will be a int. Then in your main loop under your first begin put. timer:=getsystemtime;

then add a new procedure called

procedure scriptterminate;
begin
writeln("The script ran for "+inttostr(timer/1000)+" seconds good job!");
end;
 
Runescape Gamblingrunescape gambling
Back
Top