SRL Archive - Research & Development Lounge

function FRandFlag(Distance: Integer) : boolean;


Raskolnikov

2008-01-29 23:15:18

This function will wait for the flag to reach the distance specified, the special thing is that it will search for randoms. Here it is:

{//////////////////////////////////////////////////
function FRandFlag(Distance: Integer) : boolean
Author : cut em2 it
Description: Waits until flag is within distance and results true if finds randoms while waiting.
///////////////////////////////////////////////////}
function FRandFlag(Distance: Integer) : boolean;
var Stuff: integer;
begin
Result := False;
while FlagPresent do
begin
if FindNormalRandoms then Result := True;
if CountFlag(Stuff) = Distance then Break;
end;
if Result then Writeln('Found random while walking.');
end;

Thanks,
Cut em2 it

Sir R. M8gic1an

2008-01-30 14:42:52

no randoms when walking.
~RM

Negaal

2008-01-30 16:57:27

From: Rasta Magician
no randoms when walking.
~RM


I disagree, I'v got few while walking…bu yes they are rare…

Cut em it, you didn't tested it -.-

First,
if FindNormalRandoms then Result := True;

This makes you lagg hard, even FtWait() doesnt fit here…

if CountFlag(Stuff) = Distance then Break

Second, because your lagging you will miss it 99% of chance, it should be "=<" anyways

footballjds

2008-01-31 21:19:56

Agreed itl lagg the shit outa it, honestly itle be like… shows runescape. finaly you can pause your script 20 years later. and runescape isn't even up haha.. yeah it will lag so bad….

HyperSecret

2008-01-31 22:13:55

FFlag(); ftw? FFlag does distance from the flag on the MM or one is already made… i believe it is FFlag();

Dumpin

2008-02-01 12:16:12

flag doesn't do antibanz lol