Results 1 to 5 of 5

Thread: Help with doors and ladders

  1. #1
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default Help with doors and ladders

    Alright, in the script I'm trying to write I'm currently having some issues with 3 doors and two ladders. I got it to work at first using a color finder, but the colors keep changing. Is there any function or procedure or anything that could be used to autofind closed versus open doors, or autofind a ladder? I'd use FindLadderColor, but that is minimap only.

    The doors and ladders are in the Wizard's Tower, by the way.

  2. #2
    Join Date
    Dec 2006
    Location
    Ky
    Posts
    390
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    See Boreas signature hes written a thing or two about them.
    SUMMER BREAK be back when I want to

  3. #3
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    698
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Jason2gs door opener
    SCAR Code:
    procedure DoorOpener(DoorColor, Tol:Integer);
     var
     Tries : Integer;
      begin
       repeat
        Wait(500 + Random(100));
        if(FindColorSpiralTolerance(x, y, DoorColor, MSX1, MSY1, MSX2, MSY2, Tol))then
        MMouse(x, y, 1, 1);
        Tries := Tries + 1;
        if(Tries >= 5)then
         begin
          KeyDown(37);
          Wait(1000 + Random(1000));
          KeyUp(37);
          Tries := 0;
         end;
       until(IsUpText('Door') or IsUpText('Gate'));
        if(IsUpText('Open'))then
         begin
          Writeln('Found a door.');
          Mouse(x, y, 0, 0, False);
          ChooseOption(x, y, 'Open');
          Writeln('Opened door.');
         end;
        if(IsUpText('Close'))then
         begin
          Writeln('Door was already open.');
          Exit;
         end;
      end;

  4. #4
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    On the mainscreen, there's no 100% way to autocolor for all, you have to find good colors for different places.

    For the minimap, I have written autocolors for doors and ladders, see Doors and Lumbridge in sig. For the ladder color you need the floor color, which I get for lumby castle by looking at position relative to doors.

    Once you click on the minimap, you can get away with moving mouse around the center of the screen and checking uptext, like Bramble's door opener, or you can go the extra step and find color and tol that works for that door and use Jason's.

  5. #5
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Thanks, I'll try that.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. For Opening Doors...
    By 0lumpy in forum OSR Help
    Replies: 10
    Last Post: 01-19-2009, 12:57 AM
  2. 3 doors, should you swap?
    By boberman in forum News and General
    Replies: 15
    Last Post: 12-08-2008, 11:48 AM
  3. Doors
    By Boreas in forum OSR Intermediate Scripting Tutorials
    Replies: 20
    Last Post: 09-08-2008, 05:07 PM
  4. Doors!
    By Gillbz in forum OSR Intermediate Scripting Tutorials
    Replies: 5
    Last Post: 06-06-2007, 07:36 AM
  5. How do u guys find Ladders?
    By rkroxpunk in forum OSR Help
    Replies: 6
    Last Post: 05-10-2007, 02:43 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
  •