SCAR Code:
program fish;
var
x: integer;
y: integer;
begin
//This clicks the bait.
MoveMouse(500, 600);
wait(1000)
ClickMouse(500, 600, False);
writeln('bait did it')
wait(2000)
//This clicks the rod.
MoveMouse(470, 600);
wait(1000)
ClickMouse(470, 600, False);
writeln('rod did it')
//searching for fish icon on top of head
if(FindColorTolerance(x, y, 16513019, 0, 0, 0, 0, 4))then
begin
MoveMouse(475, 605);
wait(1000)
ClickMouse(475, 605, True);
writeln('script done')
end;
end.
Thats the script. It doesn't find the color. Sorry it doesn't meet the standards. This is not for Runescape. This is what happens when executed
"bait did it
rod did it
Successfully executed"
what am I doing wrong? What am I doing right?
I think im going to have more questions later.
Please if you feel there are better ways to script this please don't hesitate to correct. It is for a game called Metin2
First it goes and clicks a button on screen
then clicks another button
then an icon appears at the top of the character's head when the fish is caught and Scar is supposed to go back and click the second button again.
If you read the script I think its easier to understand.
Thanks.