SRL Archive - Help and Support

Hey, i need help with this problem.


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)

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?

mixster

2008-07-27 14:38:03

May not find it in the appropriate area (specified by angle and distance). Also, you should call it once then assign and only call it again if the RRW fails to make sure it isn't a colour problem.

Camaro'

2008-07-27 14:40:57

From: mixster
May not find it in the appropriate area (specified by angle and distance). Also, you should call it once then assign and only call it again if the RRW fails to make sure it isn't a colour problem.


So your saying SR (start redial) and ER and RADIUS are messed up? And instead of doing the second part of what you said, i can just do, if Findfallyroadcolor = 0 then exit or something? cause im pretty sure it results 0 if it cant find the ac. Do u have msn?

mixster

2008-07-27 14:42:39

[email]mixster@mixster.me.uk[/email] is my msn, but not on at the moment - mainly because I'm never on unless someone asks me to :)
The SR and ER may not be messed up, but if it finds the colour but won't work, then the colour not being found in the area it's searching is the most probable - double checking value there or even setting to 0,360 just to make sure won't hurt.

Camaro'

2008-07-27 14:54:32

From: mixster
[email]mixster@mixster.me.uk[/email] is my msn, but not on at the moment - mainly because I'm never on unless someone asks me to :)
The SR and ER may not be messed up, but if it finds the colour but won't work, then the colour not being found in the area it's searching is the most probable - double checking value there or even setting to 0,360 just to make sure won't hurt.


Ok so if i set it to 0, 360 and it works that means my numbers are messed up meaning its not searching in the correct area?

And can u go on msn? if u have time of course.

edit: still wont work, i put 0, 360, and still no good. ill show u my debug

Falador RoadColor = 6650755
Falador RoadColor = 6650755
Failed 1
Falador RoadColor = 6650755
Failed 2
Falador RoadColor = 6650755
Failed 3- Logging out
Successfully executed