SRL Archive - SRL Archives

RadialWalk


Shuttleu

2009-06-19 13:18:34

it seems you missed out a if (not(LoggedIn)) then exit;

function RadialWalk(TheColor: Integer; StartRadial, EndRadial: Integer; Radius: Integer; Xmod, Ymod: Integer): Boolean;
var
tpa: TPointArray;
i: Integer;
begin
Result := False;
if (not(LoggedIn)) then exit;
if RadialWalkEx(tpa, MMCX, MMCY, TheColor, 0, StartRadial, EndRadial, Radius) then
for i := 0 to High(tpa) do
if MFNF(tpa[i].x, tpa[i].y, Xmod, Ymod) then
begin
FFlag(10);
Result := True;
Break;
end;
end;

also is there really any need for radial road walk?
the only difference is that it prints the road color into the debug box but if your running a script then your not going to see it and it will make no difference to how the script will run wether you use RadialRoadWalk or RadialWalk, they both work exactly the same

~shut

Naike

2009-06-19 14:35:49

RadialRoadWalk uses RoadColorchecker, so it's still useful..

Nice find tho ^^

Shuttleu

2009-06-20 15:09:08

but what exactly does road color checker do?
apart from checking whether a road is there
because like i said it doesn't effect the way the script works at all

~shut

ZephyrsFury

2009-06-20 15:18:40

RoadColorChecker updates the road colour as it walks. Thats why RadialRoadWalk is useful for walking on the road.