View Full Version : Finding a closed door?
Any fast method of find a closed door? as I'm stumped atmo.
Kyle Undefined
04-09-2012, 06:48 PM
Find the door on the Minimap, then use MMtoMS to find it on the Mainscreen and check to see if it's open with UpText?
I use a DTM with three points. The main point being the center of the door and the side points a unique color around the door. Then I check the uptext
begginer
04-09-2012, 06:51 PM
I saw that they use dtm. And find dtmrolated
Nebula
04-09-2012, 06:54 PM
Seems to me like there's at least a few threads like this per week.
Here's something that I use in one of my scripts. It may or may not work for you. If you want to use it you'll probably have to edit some things.
function IsDoorClosed: Boolean;
var
MyTPA : TPointArray;
i: Integer;
aPoints: T2DPointArray;
begin
SetLength(MyTPA, 0);
result := false;
x := MSCX;
y := MSCY;
FindColorsSpiralTolerance(x, y, MyTPA, DoorColor, 180, 125, 370, 180, 13);
aPoints := SplitTPA Ex(MyTPA, 35, 35);
SortATPAFromFirstpoint(aPoints, Point(MSCX, MSCY));
for i := 0 to High(aPoints) do
// DebugATPABounds(aPoints);
begin
writeln(Length(MyTPA));
if (Length(MyTPA) > 400) then
begin
writeln('Door Is closed');
result := true;
break;
end;
end;
end;
I just use a DTM of the door color and the doorknob and then do mouse false then chooseoption open
Thanks guys but I took on kyles Suggestion using ACA as its easier for all the colour thanks :)
Mat
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.