SRL Archive - Other Scripts

Stopwatch Simulator


XxKanexX

2006-03-22 03:19:40

Read the commented space at the start of the script for a better understanding.


{
------------------------------------------------
Timer v.1
------------------------------------------------
When you start the script, if the timer is paused,
press shift and it will begin.
------------------------------------------------
Just like a normal timer. Will wait 60 ms before
adding 1 second, 60 seconds before 1 minute,
60 minutes before 1 hour, 24 hours before 1 day.
------------------------------------------------
To Pause : press shift quickly
To Resume: press shift again.
------------------------------------------------
Pressing control will add the current time to
the report box under any other times. If the
constance "ResOnCtrl" is true, the timer will
begin from 0 again. If not, it will continue.
------------------------------------------------

Made By XxKanexX
}

const
ResOnCtrl = True; //Resest timer on control press?










var
a, b, c, d, e: Integer;
i, disp: Integer;
times: Array Of String;
change: Boolean;
begin
while(isfunctionkeydown(1))do
wait(1);
setarraylength(times, 1);
clearreport;
changereportwidth(500);
repeat
repeat
cleardebug;
if(change)then
begin
clearreport;
for disp:= 0 to getarraylength(times)-1 do
addtoreport(times[disp]);
change:= false;
end;
writeln(inttostr(e)+':'+inttostr(d)+':'+inttostr(a)+':'+inttostr(b)+':'+inttostr(c));
c:= c + 1;
if(c >= 60)then
begin
c:= 0;
b:= b + 1;
end;
if(b >= 60)then
begin
b:= 0;
a:= a + 1;
end;
if(a >= 60)then
begin
a:= 0;
d:= d + 1;
end;
if(d >= 24)then
begin
d:= 0;
e:= e + 1;
end;
wait(16);
if(isfunctionkeydown(3))then
begin
wait(200);
repeat
wait(50);
until(isfunctionkeydown(3));
wait(200);
end;
until(isfunctionkeydown(1));
while(isfunctionkeydown(1))do
wait(1);
times[i]:= inttostr(e)+':'+inttostr(d)+':'+inttostr(a)+':'+inttostr(b)+':'+inttostr(c);
i:= i + 1;
setarraylength(times, getarraylength(times)+1);
change:= true;
if(resonctrl)then
begin
a:= 0;
b:= 0;
c:= 0;
d:= 0;
e:= 0;
end;
until(false);
end.

Bored, once again.

maxzzz

2006-03-23 10:25:41

From: XxKanexX
Bored, once again.

This is cool but I think many people would love to have a scaperune script made by you, so I have an idea for when you are bored: Make an awesome scaperune script

Sdcit

2006-03-23 10:52:28

heres my plan:

Next time kane gets bored, ill sneak into his house, knock him out, drag him to a cell, have a computer with scar and SR, and keep him in there till he scrpts :P

Jagex_Fagex

2006-03-23 16:50:57

just 1 question, isnt it 100ms in 1 second?

XxKanexX

2006-03-24 00:01:04

I'm working on an rs script ;)

The Un-Named

2006-03-24 03:07:44

I know what script it is too, he isn't lying.

He's actually working on 2! :P

Jagex_Fagex

2006-03-24 04:29:53

just 1 question, isnt it 100ms in 1 second?

Lorax

2006-03-24 10:34:23

From: XxKanexX
I'm working on an rs script ;)

Finally Kane.

maxzzz

2006-03-24 15:25:15

From: XxKanexX
I'm working on an rs script ;)

Good to hear, can you reveal some details :p.

^.^ go Kanie w00t.

Scdit –> give me a call when the time is right for knock him down to get him scripting. With 2 we can do it :p

XxKanexX

2006-03-24 19:39:06

From: maxzzz
Good to hear, can you reveal some details :p.

^.^ go Kanie w00t.

Scdit –> give me a call when the time is right for knock him down to get him scripting. With 2 we can do it :p

Don't make plans with Sdcit :) Especially were you're both alone in a dark room.

Bebe

2006-03-24 20:11:04

From: maxzzz
Good to hear, can you reveal some details :p.

^.^ go Kanie w00t.

Scdit –> give me a call when the time is right for knock him down to get him scripting. With 2 we can do it :p

The script is mine and his, also he has a few suprises of his own; I do also. :D ;) :cool:

Pyro

2006-03-28 02:37:56

*frowns at kane* where is your forms at. Usually even your pointless scripts have a form in them. And do tell us what script your working on maybe a hint. cmon kane you never script for rs and i really wanna know what your scripting. Must be somethign uber secks. with a uber secks scripting partner maybe?

ROFL *looks around with everyone else wonderign what pyro laughed at*…personal joke between me and kane