Okay, so I decided to creat a tutorial runner, and I have run into one problem, which I can't solve:
These stupid arrows in the tutorial are flshing on and off, and this really hinders my script, becuase now there is a random chance if it finds the arrow or not. I have tried to do somehting like this:
SCAR Code:begin
HighestAngle;
MakeCompass('N');
wait(1000+random(500))
if FindDTM(MapArrow, x, y, 0, 0, 765, 500) then
begin
MoveMouseSmoothEx(x, y +random(0),20,40,45,25,20);
wait(100 + random(50))
ClickMouse(x, y, true)
end;
if not FindDTM(MapArrow, x, y, 0, 0, 765, 500) then
begin
wait(200)
if FindDTM(MapArrow, x, y, 0, 0, 765, 500) then
begin
MoveMouseSmoothEx(x, y +random(0),20,40,45,25,20);
wait(100 + random(50))
ClickMouse(x, y, true)
end;
end;
This onviously is a lot of stuff to write for each and every arrow, and also, i figured out: IT DOESN"T WORK![]()
![]()
![]()
![]()
.
Is there anyone who has an idea for a different way to find the arrow (maybe there is a function which waits for a certain ammount of time while looking for the arrow, remembering it's co-ords?)
BTW: I wold also be looking for a person who I could reffer to for future problems of this tutorial island runner, so I don't have to post all of them. Of course he/she will be given credit in my script once it is finished.


.
Reply With Quote





