Results 1 to 2 of 2

Thread: find door and open

  1. #1
    Join Date
    Jun 2007
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default find door and open

    i was wondering if theres any procedures anyone could show me on how to get door col and then open door?

    i was thinking something like

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    var x,y:integer

    begin
    setupSRL;
    repeat
    repeat
    wait(50+random(100));
    until(FindColor(x,y,GetDoorColor,MSX1,MSY1,MSX2,MSY2));
    MMouse(x,y,2,2);
    wait(100+random(200));
    until(IsUpText('pen'));
    end.

  2. #2
    Join Date
    Mar 2008
    Location
    ::1
    Posts
    915
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    you could use something like this....

    SCAR Code:
    FindObj(x,y,'Open',colorOfDoor,20);

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Check if door is open
    By itSchRis917 in forum OSR Help
    Replies: 10
    Last Post: 05-26-2008, 04:15 AM
  2. Door check/open
    By Boreas in forum OSR Help
    Replies: 14
    Last Post: 11-25-2006, 11:30 PM
  3. how to open a door only if its closed?
    By XcanadamanX in forum OSR Help
    Replies: 9
    Last Post: 11-10-2006, 11:38 PM

Posting Permissions

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