Hi all, I have a question regarding color searching.
What's the difference between FindColorTolerence and FindColorSpiralTolerence?
I don't understand what the SCAR help is saying about them.
Hi all, I have a question regarding color searching.
What's the difference between FindColorTolerence and FindColorSpiralTolerence?
I don't understand what the SCAR help is saying about them.
FindColorTolerence looks for your color in the area you have told it to, searching from left to right
FindColorSpiralTolerence searches for your color starting at the x and y points, and searches outward.
I always though spiral started in the centre point of x1,y1,x2,y2?
Has nothing to do with the x and y output. :wink:
The best way to contact me is by email, which you can find on my website: http://wizzup.org
I also get email notifications of private messages, though.
Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
Documentation | Source | Simba Bug Tracker on Github and Villavu )
My (Blog | Website)
Wow, thanks a lot for your explination. However, what method is better? If I want to search for things such as the log in the gnome agility course, which method should i use?
@ Wizzup?
The exact information as in the SCAR help file.
Using FindColorSpiralTolerance has the same function, just with a color tolerance.PHP Code: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.
Code:program New; var x, y : Integer; procedure Example1; //FindColorTolerance. begin if(FindColorTolerance(x, y, iColor, 46, 15, 553, 256, 5))then Writeln('Found'); end; //This scans from top left hand corner to the right bottom corner. procedure Example2; //FindColorSpiralTolerance begin x:= 283; y:= 156; if(FindColorSpiralTolerance(x, y, iColor, 46, 15, 553, 256, 5))then Writeln('Found'); end; //This scans starting from (283, 156); then outwards from that coord. //Same thing with FindBitmapToleranceIn and FindBitmapSpiralTolerance.
thanks a lot guys!

Thanks all for your suggestions! My script is coming along nicely! The only issue left is to fix the amazing amout of lag there is. The lag seems to only occur when it's searching. Any suggestions on how to improve the script to make it have less lag?
put a small Wait(1+Random(10)) in.
SRL is a Library of routines made by the SRL community written for the Program Simba.We produce Scripts for the game Runescape.
As a general rule do that when there is lag. This may be why you think scar is slow.
There are currently 1 users browsing this thread. (0 members and 1 guests)