View Full Version : colour clicking help please
elobire
09-01-2008, 06:32 PM
i have folowed a guide i found on these forums and it says to do this to go to the colour,
program New;
procedure gotocolor;
begin
If(findcolor(x,y, 8421514 , 0 , 0 , 260 , 214))then
begin.
writeln('found the coulour');
end;
end;
but it gives me an error saying:Line 6: [Error] (6:14): Unknown identifier 'x' in script
can anyone solve this problem???
TheSantaMan
09-01-2008, 07:24 PM
Yeah i'm not a great scripter but you have to declare x,y as variables.
noidea
09-01-2008, 07:34 PM
Yea try this. By the way, if it is for runescape, the colours change so you will need to add tolerance by this. Instead of using FindColor,you FindColorSpiralTolerance. It is way more realiable. Try this.
procedure gotocolor;
var
x, y: Integer;
begin
If(findcolorspiraltolerance(x, y, 8421514 , 0 , 0 , 260 , 214, 5))then
begin.
MoveMouse(x, y)//dont use this in runescape, it is very detectable and can get you banned.
writeln('found the coulour');
end;
end;
elobire
09-02-2008, 02:38 PM
Yea try this. By the way, if it is for runescape, the colours change so you will need to add tolerance by this. Instead of using FindColor,you FindColorSpiralTolerance. It is way more realiable. Try this.
procedure gotocolor;
var
x, y: Integer;
begin
If(findcolorspiraltolerance(x, y, 8421514 , 0 , 0 , 260 , 214, 5))then
begin.
MoveMouse(x, y)//dont use this in runescape, it is very detectable and can get you banned.
writeln('found the coulour');
end;
end;
i get this message when i try this script you posted
Line 7: [Error] (6:6): Identifier expected in script
how can i fix this???
randy marsh
09-02-2008, 03:08 PM
post your script
Zyt3x
09-02-2008, 04:34 PM
Omg why does ppl confuse him with new procedures and functions witch he havent learn yet? (if you have learned them then sorry)
You get an error because you did not declare x and y. This is easy solved by putting
var
x, y : Integer; after 1st line.
EDIT:
procedure gotocolor;
var
x, y : Integer;
begin
If(findcolor(x,y, 8421514 , 0 , 0 , 260 , 214))then
begin.
writeln('found the coulour');
end;
end;try that.
zereoth
09-02-2008, 05:39 PM
I'd like to reccomend you, while programming, for the future,to make it look nice and easy to read. Look at the in-drawn lines like elobire did it. It's so much easier to read.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.