SCAR Script Timer

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

SCAR Script Timer
  1. Unread #1 - Nov 24, 2010 at 3:12 PM
  2. GenericUser
    Joined:
    Sep 17, 2010
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0

    GenericUser Newcomer

    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
     
  3. Unread #2 - Dec 1, 2010 at 9:42 AM
  4. TheAccMaker
    Joined:
    Nov 30, 2010
    Posts:
    266
    Referrals:
    0
    Sythe Gold:
    0

    TheAccMaker Forum Addict

    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? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site