SRL Archive - OSR Help

Elapsed time? plz help


ogustuce

2012-03-16 22:55:16

is there a way to do something like this? and if yes, how you do it in codes?
need help to code time
example :

repeat
killmonster
until ( 50000 elapsed) <- 5 mins
drinkpotion;

Yago

2012-03-16 23:01:22

you can


MarkTimer(Timer);
repeat
killmonster
until TimeFromMark(Timer) <= (5 * 60000);

footballjds

2012-03-16 23:02:29

program new;
var
TS: integer;
begin
TS := GetSystemTime;
repeat
Writeln(ToStr(GetSystemTime-TS));
until (TS+5000)<GetSystemTime;
end.

ogustuce

2012-03-16 23:03:59

kk, ill try those. thanks

Sex

2012-03-17 12:02:16

From: Yago
you can


MarkTimer(Timer);
repeat
killmonster
until TimeFromMark(Timer) <= (5 * 60000);


Small typo, MarkTimer -> MarkTime :).

Yago

2012-03-17 13:27:05

From: Sex
Small typo, MarkTimer -> MarkTime :).


Lol u suck.