Camaro'
2008-07-27 14:22:32
How come this wont work?
(BTW I // the if not logged in then exit cause i didnt put declare players in yet)
IT will find the fally road color but wont click. I need to know why?
(BTW I // the if not logged in then exit cause i didnt put declare players in yet)
Function WalkToYews: Boolean;
begin
//if not loggedin then exit;
roadcolor := FindFallyRoadColor;
If not RadialroadWalk(findfallyroadcolor, 198, 180, 65, 1, 1) then
begin
writeln('Failed 1');
if not RadialRoadWalk(findfallyroadcolor, 200, 180, 65, 1, 1) then
begin
writeln('Failed 2');
if not RadialroadWalk(findfallyroadcolor, 225, 175, 65, 1, 1) then
begin
writeln('Failed 3- Logging out');
result := false;
exit;
end;
end;
end;
If not RadialroadWalk(roadcolor, 275, 265, 65, 1, 1) then
begin
writeln('Failed 1-2');
If not RadialroadWalk(findfallyroadcolor, 280, 260, 65, 1, 1) then
begin
writeln('Failed 2-2');
If not RadialroadWalk(findfallyroadcolor, 285, 255, 65, 1, 1) then
begin
writeln('Failed 3-2- Logging out');
result := false;
exit;
end;
end;
end;
If not RadialroadWalk(roadcolor, 275, 265, 65, 1, 1) then
begin
writeln('Failed 1-3');
If not RadialroadWalk(findfallyroadcolor, 280, 260, 65, 1, 1) then
begin
writeln('Failed 2-3');
If not RadialroadWalk(findroadcolor, 285, 255, 65, 1, 1) then
begin
writeln('Failed 3-3 logging out');
result := false;
exit;
end;
end;
end;
If findSymbol(x, y, 'tree') then
begin
Mouse(x, y, 1, 1, true);
fflag(0);
ftwait(2);
result := true;
end
else
result := false;
exit;
end;IT will find the fally road color but wont click. I need to know why?