SRL Archive - Help

Finding a closed door?


Mat

2012-04-09 14:37:08

Any fast method of find a closed door? as I'm stumped atmo.

Kyle Undefined

2012-04-09 14:48:11

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?

tehq

2012-04-09 14:49:07

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

2012-04-09 14:51:08

I saw that they use dtm. And find dtmrolated

Nebula

2012-04-09 14:54:10

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;

Joe

2012-04-09 16:59:24

I just use a DTM of the door color and the doorknob and then do mouse false then chooseoption open

Mat

2012-04-10 09:59:19

Thanks guys but I took on kyles Suggestion using ACA as its easier for all the colour thanks :)
Mat