
Originally Posted by
jollyjumbuck
Ok am really struggling with the ACAv2 AutoColor - have attempted to code the scripts as suggested but not finding colors and don't have the technical muscle to debug.
Have tried the BitMap finding approach below to find the chest but also no luck.
What seems strange is if the tolerance is set to >200 it returns the Bitmap as found but finds it at the first coordinate of the search field....which it obviously is not at - why would this be?
If the tolerance is set at <100 then it returns as Bitmap not found.
Can anyone help me find this chest!!?? Comments on the script below appreciated as to how to make it work.
program New;
{.include SRL\SRL.scar}
var
x,y:integer;
BankChest4:integer;
begin
BankChest4 := BitmapFromString(28, 71, '...big-ass bitmap...');
if FindBitmapToleranceIn(BankChest4, x, y, 600, 380, 780, 500,150) then
begin
Writeln('x='+IntToStr(x));
Writeln('Found Bitmap');
end else
Writeln('Didnt Find it!');
end.