Results 1 to 7 of 7

Thread: Finding a closed door?

  1. #1
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default Finding a closed door?

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



    ^^

  2. #2
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    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.


  3. #3
    Join Date
    Nov 2011
    Location
    MA
    Posts
    545
    Mentioned
    3 Post(s)
    Quoted
    10 Post(s)

    Default

    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

  4. #4
    Join Date
    Dec 2011
    Location
    Kosovo
    Posts
    831
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    I saw that they use dtm. And find dtmrolated
    Goals:
    Understanding TPAs
    Making Proggy for fighting
    Getting on SRL members
    Get 500 posts

  5. #5
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default

    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.

  6. #6
    Join Date
    Feb 2012
    Location
    SRL Jail
    Posts
    1,319
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

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

  7. #7
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

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



    ^^

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •