Well I have a piece of a script that should walk from the middle of the lumbridge castle court yard(the place where you teleport from) to the general store. It isn't doing it and I don't know why. It auto fills in the road color and I have checked the walking so I don't see why it doesn't work.
Oh and the "w" is a const for 0. Which is what FindRoadColor returns if it doesn't find it. Just keeps my stuff looking clean.
SCAR Code:
Procedure CastleToTrees;
begin
RoadColor := FindRoadColor
ClearDebug;
If RoadColor = w then
begin
WriteLn('Did not find road color! Check detail and V-Bright!');
end else
begin
WriteLn('Successfully found Road color! ' + inttostr(RoadColor));
If(RadialRoadWalk(RoadColor, 85, 93, 60, 1, 1)) then
Begin
WriteLn('Successfully did first click!');
If(RadialRoadWalk(RoadColor, 339, 344, 62, 1, 1)) then
Begin
WriteLn('Successfully did second click!');
If(RadialRoadWalk(RoadColor, 318, 310, 60, 1, 1)) then
Begin
WriteLn('Successfully did third click!');
if(RadialRoadWalk(RoadColor, 316, 308, 56, 1, 1)) then
Begin
WriteLn('Successfully did fourth click!');
end;
end;
end;
end;
end;
end;