SRL Archive - Research & Development Lounge

Effective Map Symbol Finder


kewlscaper

2010-03-16 14:46:07

Don't know if this is of any use to anyone
It's not noob friendly but here we go

  
Bitmap of your minimap symbol of where your standing:

me := BitmapFromString(5, 5, 'z78DA3330200CDC3000B564710100' +
'AAEB20C5');

And the procedure:

if(findcolortolerance(f,c,8812930,544, 60,711, 223,5))then //Color of pick axe
begin //Radious of 4 pixels Around Mining symbol find
if(findcolortolerance(x,y,13220809,f-4, c-4,f+4, c+4,5))then //Color around pickaxe map symbol
begin
if(findbitmapin(me,f,c,x-4,y-4,x+4,y+4))then
begin
writeln('Too far away from symbol clicking it');
clickmouse(x,y,true);
sleep(5000);
end;
end;
end;


Mr. Doctor

2010-03-16 15:39:42

Or you can use FindSymbol with SymbolAccuracy.
Your standards also need improving. Words must be Camel Capped, 2 spaces after a begin, and the ends should match up with the begins.

Also, this will not compile. It's not in a procedure, either.

kewlscaper

2010-03-16 17:10:19

It is compilable and it is a procedure lol sorry I didn't put some Integer's and..
Procedure symbol;
begin
end;
Also I just didn't bother correcting my script grammar
This can be used for private server's which I have been using scar with no SRL for I can program scar in the back of my head after all the stuff Ive had to make. :cartman: