Any fast method of find a closed door? as I'm stumped atmo.
Any fast method of find a closed door? as I'm stumped atmo.
^^
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?
Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
{ MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }
When posting a bug, please post debug! Help us, help you!
I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.
SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.
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
I saw that they use dtm. And find dtmrolated
Goals:Understanding TPAs
Making Proggy for fighting
Getting on SRL members
Get 500 posts
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.
Simba Code: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;
Last edited by Nebula; 04-09-2012 at 06:56 PM.
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
^^
There are currently 1 users browsing this thread. (0 members and 1 guests)