hey guys i am trying to make a procedure or function that can find the ladder symbol on the minimap how ever the ladder keeps changing slightly i got about 5 different bitmaps of it but it still doesnt working
anyway what i was wondering is if there is a better way to find a ladder symbol thing on the minimap i have tried using dtm an bitmaps but none of them seems to work for me if you could write up a function or procecure that can find it i would be very very very happy.
this is what i had so far:
SCAR Code:
begin
repeat
if not LoggedIn then Exit;
wait(100 +random(100));
F:=F+1
if F=25 then begin writeln('ERROR: can not find ladder bitmap'); Logout; exit; TerminateScript end;
until(FindBitMapTol(X, Y, ladder, 552, 8, 714, 148)) or (FindBitMapTol(X, Y, ladder5, 552, 8, 714, 148)) or (FindBitMapTol(X, Y, ladder6, 552, 8, 714, 148)) or (FindBitMapTol(X, Y, ladder7, 552, 8, 714, 148)) or (FindBitMapTol(X, Y, ladder8, 552, 8, 714, 148)) or (FindBitMapTol(X, Y, ladder9, 552, 8, 714, 148));
Mouse(x-15, y-25 , 4 , 4, true);
end;
these are the bitmaps i use:
SCAR Code:
ladder := BitmapFromString(4, 8, 'z78DA3373327636B030C3413A' +
'193B5A3AA29066834C3D00654C2B99');
ladder5 := BitmapFromString(8, 10, 'z78DA7334B234B734752491' +
'347135B43030C04F62AAC76F1AFDCDC76F172EF7506E3EA9E1EC4' +
'8561C4148003B86679E');
ladder6 := BitmapFromString(8, 10, 'z78DAB37036773577B32091' +
'347531363370C14F62AAC76FDAA8F9C49B4F3C090085A77081');
ladder7 := BitmapFromString(10, 11, 'z78DAB37036773177B5A01' +
'2696664EC68E0829FC4AF975459626CC4AF97181FD1D35E6264E9' +
'19C2C4C73BB5521100A2279A57');
ladder8 := BitmapFromString(8, 10, 'z78DAB374B270B670B52491' +
'347533723470C34F62AAC76FDAA8F9C49B4F3C090013B57211');
ladder9 := BitmapFromString(8, 10, 'z78DA733271B47074742291' +
'3475353234208A44564F8C99B4301F53967893A96B3E2E9F1213C' +
'EA4C60E840D00B2636E88');
if anyone could please help me make or find a better function or procedure i would be very very very happy thanks for reading this