Make sure you have version in the thread you posted on.
GetDoorColor was designed to be internal, IE it is used by GetDoors, and you use GetDoors. However you can use GetDoorColor if you want, especially if there is only 1 door on the minimap.
Declare a variable,
SCAR Code:
var tmpInt,tmpx,tmpy: integer;
Set it to GetDoorColor
Then use the variable with a FindColor
SCAR Code:
FindColor(tmpx,tmpy,tmpInt,mmx1,mmy1,mmx2,mmy2)
Click the door on the minimap
SCAR Code:
Mouse(tmpx,tmpy,1,1,true);
Then get a good view
SCAR Code:
LowestAngle;
MakeCompass('n'); //depending
Then use a color/bmp/dtm (specific to different towns), or mouse around the center of the screen looking for uptext 'oor'. Once found, if uptext contains 'lose', then continue, otherwise, click to open and then continue.