
Originally Posted by
NaumanAkhlaQ
Or....
You can Try
PHP Code:
{*******************************************************************************
function AutoColorThis(Bitmap, MaxTol, X1, Y1, X2, Y2: Integer): Integer;
By: Sumilion
Description: Resturns exact color of a bmp with tol found on the screen.
*******************************************************************************}
You get a bitmap Set the maxtolerance and then do something like this:
SCAR Code:
SpecialRock := AutoColorThis;
If FindColor(x,y,SpecialRock.MMX1,MMY1,MMX2,MMY2) Then
Result := True;
NB: You must declare as a function/Procedure and must make a very tiny bitmap of the rock for this to work.
Have Fun

.
You Big Fat Meany Now He Gets Confused :S
SCAR Code:
SpecialRock := AutoColorThis;
If FindColor(x,y,SpecialRock.MMX1,MMY1,MMX2,MMY2) Then
Result := True;
must be
SCAR Code:
SpecialRock := AutoColorThis(TheBitmapexample,50,MSX1,MSY1,MSX2,MSY2);//IT IS JUST WERE TO AUTOCOLOR FOR MINIMAP MMX1 MMY1 ETC., SORRY FOR CAPS
If FindColor(x,y,SpecialRock.MMX1,MMY1,MMX2,MMY2) Then
Result := True;