mat_de_b
2007-10-01 17:55:18
In my script this code
is taking 5 seconds and producing
So although nothing is being found it is still taking a long time… is there anything i can do to change this?
Function FindRandoms: Boolean;
var
i,Mark: Integer;
begin
MarkTime(Mark);
for i := 1 to 3 do
begin
case I of
1: if(FindNormalRandoms)then
Result := True;
2: FindEnt(x,y,True); // Didn't want a result
3: if(FindFight)then // Didnt want a result
begin
RunTo('E',True)
Wait(7000+random(3000));
RunBack;
end;
end;
if Result then
SRLRandomsReport;
Break;
Wait(1);
end;
Writeln('Randoms took '+inttostr(TimeFromMark(Mark))+' ms');
SRLRandomsReport;
end;is taking 5 seconds and producing
Randoms took 5750 ms
/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
| SRL 4 Randoms Report |
| www.srl-forums.com |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
\~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/
So although nothing is being found it is still taking a long time… is there anything i can do to change this?