Well, it crosses the log (YAY), a little slow on the mouse, but nonetheless, crosses it. I can make a DTM or whatever, DDTM, yadayada for it.
Its the return to start function thats not working at the moment. It says invalid symbol name, but I dont know why? And any other help on the slow log balance crossing helpful aswell. Heres the script:
SCAR Code:
program LogBalanceCrosser;
{.include SRL/SRL.scar}
const
Crosses= 1; //How Many Times to cross.
var Crosses2, x, y: integer;
procedure CrossLogBalance;
begin
MakeCompass('S');
SetAngle(True);
if (FindObjCustom(x, y, ['Log', 'Bal', 'ance'], [801632, 333864, 667469], 7)) then
begin
IsUpText('Walk-across');
Mouse(x, y, 4, 4, true);
Writeln('Walked Across Log!');
end;
end;
procedure WalkBack;
begin
if (FindSymbol(x, y, 'agility')) then
Mouse(x, y, 4, 4, True);
MakeCompass('S');
SetAngle(False);
Crosses2:= Crosses2 + 1;
end;
begin
repeat
CrossLogBalance;
WalkBack;
until(Crosses2=Crosses)
end.
Any help appreciated.