Yea its still being worked on, but it works really well as much as I've tested it.
What it does is takes the coordinates of something on the minimap *such as the DTM of a Tree* and converts them into where it would be on the mainscreen.
function MMtoMS(MMX, MMY :integer; var x, y :integer):boolean;
var
XX,YY:integer;
Ptx,Pty:extended;
begin
XX:= (MMX - 647);
YY:= (MMY - 84);
Ptx:= (XX * 9.25);
Pty:= (YY * 9.25);
if(Pty < 0)then Pty:= (Pty + (-Pty / 4)) else
x:= Trunc(259.5 + Ptx);
y:= Trunc(170.5 + Pty);
if((MMX < 621) or (MMX > 672))then Result:= false else
if((MMY < 66) or (MMY > 102))then Result:= false else
if((x < 4) or (x > 515))then Result:= false else
if((y < 4) or (y > 337))then Result:= false else
Result:= true;
end;
So you could do something like…
//621,66,672,102 are the coordinated of what your main screen displays on your minimap
if(FindDTM(TreeDTM, x, y, 621, 66, 672, 102))then
begin
MMtoMS(x,y,tx,ty);
//converts the coordinates of the TreeDTM to where it is on the mainscreen *if found*
Mouse(tx,ty,2,2,true);
end;