Log in

View Full Version : FindColorSpiral



TheGodfather
02-14-2007, 06:18 AM
Hey guys, I'm new to scripting, only 2 weeks of knowing scar, and Im wondering what does FindColorSpiral do? (and FindColorSpiralTolerance)
If someone can help that'll be great :)

Junior
02-14-2007, 06:37 AM
FindColorSpiral
Will find the EXACT color in a specified box, from the center out.
FindColorSpiralTolerance
Will find a color that has allowed error(tol, look for different colors around that color) in a specified box, center out.
FindColor
Will find the EXACT color in a bow, from left to right.
FindColorTolerance
Will find a color with a tolerance in a specified box, left to right.

TheGodfather
02-14-2007, 06:51 AM
well thanks and thanks for the extra answers (Im not that stupid, just the word Spiral stumped me) ;)

WhiteShadow
02-14-2007, 07:31 AM
{.include SRL/SRL.Scar}

procedure ScanColor(Color : Integer);
begin
x:= Mscx; //You can declare where it spirals out from.
y:= Mscy; //Mscx, and Mscy are SRL global variables
//That hold center of Runescape Mainscreen coords.
if(FindColorSpiral(x, y, Color, Msx1, Msy1, Msx2, Msy2))then
begin
Writeln('FoundColor');
MMouse(x, y, 0, 0);
end;
end;

begin
SetUpSRL;
ScanColor(16777215);
end.

Try running in Scar. :q

Wizzup?
02-14-2007, 07:55 AM
FindColorSpiral
Will find the EXACT color in a specified box, from the center out.


It is not from center out..


function FindColorSpiral(var x, y: Integer; color, xs, ys, xe, ye: Integer): Boolean;
Find color in box specified by xs, ys, xe, ye but start from x,y.

WhiteShadow
02-14-2007, 07:59 AM
Yeah many people assume that to much. lols.

Junior
02-14-2007, 05:19 PM
Everytime I see spiral I always think center out :p
Learning new things everyday...