Adblock breaks this site

SCAR Script Timer

Discussion in 'Scar/Simba Help' started by GenericUser, Nov 24, 2010.

  1. GenericUser

    GenericUser Newcomer

    Joined:
    Sep 17, 2010
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0
    SCAR Script Timer

    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
     
  2. TheAccMaker

    TheAccMaker Forum Addict

    Joined:
    Nov 30, 2010
    Posts:
    266
    Referrals:
    0
    Sythe Gold:
    0
    SCAR Script Timer

    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;
     
< HP MP Autopot for MapleStory | CreateTPAFromBMP? whaa? >


 
 
Adblock breaks this site