Results 1 to 4 of 4

Thread: Reliable way to open a door?

  1. #1
    Join Date
    Nov 2011
    Location
    United States
    Posts
    815
    Mentioned
    6 Post(s)
    Quoted
    284 Post(s)

    Default Reliable way to open a door?

    Does anyone have a reliable way to Check to see if a door is open, then if it is closed , it will open it?

    I cant seem to get a stable way to check for the door.

    The door doesn't close by its self, only when people close it. Any suggestions?

    Thanks in advance.

  2. #2
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    It can usually be done with (A)TPAs pretty effectively. There should be difference in amount of color pixels. Post a pic?

  3. #3
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Man there's multiple ways to do this honestly. Off the top of my head I can think of three:

    1) First using a color-finding and UpText checking ('Open' or 'Close')
    2) If you're walking through a doorway then check the flag distance from where you clicked; if the distance from the flag to where you clicked it small then the door you're walking through is open, otherwise if the flag appears near the door instead, then it's close
    3) Also using color, find the door color (TPA) while your camera is at a certain angle, and find the bounds of that TPA; if it's wider than, let's say, 30 pixels, it's closed, otherwise if it's rather narrow then it's probably open.

    Just use your logic, how do you yourself determine if a door is open/closed in RS? Apply the same logic to your script.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  4. #4
    Join Date
    Jan 2012
    Location
    127.0.0.1
    Posts
    702
    Mentioned
    11 Post(s)
    Quoted
    76 Post(s)

    Default

    in one of my scripts, i checked for The door handle colour clusters if they were close to the wood colour clusters, then made a TPA from that, then i checked for uptext to say that if it was open. Another Method is to use the flag, using the minimap to walk, if the flag was a certain distance away from my mouse click, it would show flag a variable to say that the target location is not in the destination area then use that as a detection to set off the door finder

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
  •