Results 1 to 2 of 2

Thread: Door Question

  1. #1
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Door Question

    Ok, I'm making a script that needs to open a door to get into the place it needs to...It also uses scarscape...Here's what I have so far
    SCAR Code:
    MoveMouseSmooth(191,265)
    if IsUpText('lose') then
    begin
    Mouse(31,235,0,0,false);
    ChooseOption('Walk');
    Flag;
    FindNormalRandoms;
    end;
    if IsUpText('pen') then
    begin
    Mouse(202,265,0,0,false);
    ChooseOption('pen');
    Flag;
    FindNormalRandoms;
    Mouse(74,170,0,0,false);
    ChooseOption('Walk');
    FindNormalRandoms;

    I need it to check if the door is open or not...if it isn't open, it will open it and walk to specified area...if it is, then it will walk to door and then go to specified area...Any help on how to check this?

  2. #2
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    SCAR Code:
    if FindColorTolerance(dorx,dory,DoorColor,screencoords,blah,blah,screencoords,10) then
    begin
      MMouse(tmpx,tmpy+2,1,1);
      Wait(200);
      if IsUpTextMultiCustom(['oor','pen','lose']) then
      begin
        GetMousePos(dox,doy);
        Mouse(dox,doy,2,2,False);
        ChooseOption('pen');
      end else
        WriteLn('Cant find door :(');
    end;

    Hope it helps, sorry for gravedig.


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Door functions
    By Floor66 in forum OSR Help
    Replies: 0
    Last Post: 11-27-2008, 10:39 AM
  2. Door checker?
    By Rubix in forum OSR Help
    Replies: 3
    Last Post: 07-17-2008, 09:43 PM
  3. Door Procedure
    By kooldude in forum OSR Help
    Replies: 2
    Last Post: 06-01-2007, 03:47 AM

Posting Permissions

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