It opens the door, but if the door is already opened it will close it.
Also when it gets to a point in the script where there are three doors around me it opens all three, when I only need it to open two.
Help me out? Here's my code:
Simba Code:
procedure FindDoor;
var
X, Y: Integer;
begin
MakeCompass('W');
SetAngle(false);
If FindObj(x,y,'Open',8108474,5) then
x:=MSCX;
y:=MSCY;
Begin
StatsGuise('Opening Door...');
GetMousePos(x, y);
Mouse(X, Y, 5, 5, False);
WaitOption('Door', 500);
Wait(2000);
end;