Hi,
I saw an useful function MMtoMS used on Narcle's fast figher. I myself thought of implementing the function on my own script to find door, but it always returns me -1, -1. What am I missing?
Simba Code:
Procedure findDoor;
var
x, y: Integer;
p: TPoint;
begin
MouseSpeed := 15;
if FindColorTolerance(x, y, 67062, MMX1, MMY1, MMX2, MMY2, 15) then
begin
writeln('color found');
//Testing if Minimap center if found on MainScreen
p := MMtoMS(Point(MMCX, MMCY));
MMouse(p.x, p.y, 0, 0);
p := MMtoMS(Point(x, y));
MMouse(p.x, p.y, 0, 0);
end else
writeln('Color not found');
end;
It outputs: "Color found", but moves the mouse to -1, -1 ALWAYS. What are the requirements for using the particular function MMtoMS.