SRL Archive - Help

How to reset a timer.


John

2012-06-29 04:40:24

procedure MainLoop;
var
x: integer;
begin
MarkTime(x);
repeat
Checks;
If TimeFromMark(x) > 138000 then
Begin
CannonDecay;
end;
until(Not LoggedIn);
end;

That is the timer i need to reset, so when it hits 138000
It needs to reset the timer and continue the loop.
how can i do this?

nokkasiili

2012-06-29 04:43:54

procedure MainLoop;
var
x: integer;
begin
MarkTime(x);
repeat
Checks;
If TimeFromMark(x) > 138000 then
Begin
CannonDecay;
MarkTime(x);
end;
until(Not LoggedIn);
end;
???

John

2012-06-29 04:45:39

From: nokkasiili
procedure MainLoop;
var
x: integer;
begin
MarkTime(x);
repeat
Checks;
If TimeFromMark(x) > 138000 then
Begin
CannonDecay;
MarkTime(x);
end;
until(Not LoggedIn);
end;
???

:duh:
LOL how did i not see that… Ty