Results 1 to 4 of 4

Thread: Door checker?

  1. #1
    Join Date
    May 2008
    Location
    127.0.0.1
    Posts
    705
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default Door checker?

    I'm still working on my flax spinner for lumbridge castle, and I've made a door checker to make the door is open, but sometimes if finds the lamp right there can clicks it for some reason, can anybody else post any ideas/scripts you have for checking doors if there open?

    -RuBiX
    <Wizzup> And he's a Christian
    <Wizzup> So he MUST be trusted
    ___________________________________________
    <Wizzup> she sounds like a dumb bitch

  2. #2
    Join Date
    Nov 2007
    Posts
    437
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sigh I am going to end up writing your whole script . This will find the door and then will either open the door or walk into the doorway, but you hafta be standing like right in front of it when it is facing east .

    function FindDoor : Boolean;
    var
    q : Integer;
    DoorLocs: TPointArray;
    DoorLoc : TPoint;
    begin
    if not LoggedIn then Exit;
    Write('OpenCookDoor...');
    MakeCompass('E');
    SetAngle(True);
    AntiRandom;
    x := MSCx;
    y := MSCy - 40;
    FindColorsSpiralTolerance(x, y, DoorLocs, 10407888, MSX1, MSY1, MSX2, MSY2, 10);
    if Length(DoorLocs) = 0 then
    begin
    Write('Using Color 2...');
    FindColorsSpiralTolerance(x, y, DoorLocs, 6986651, MSX1, MSY1, MSX2, MSY2, 10);
    end;
    if Length(DoorLocs) = 0 then
    begin
    Result := False;
    Write('Could Not Find Any Door Colors');
    Exit;
    end;
    for q:= 0 to High(DoorLocs)do
    begin
    DoorLoc := DoorLocs[q];
    x := DoorLoc.x;
    y := DoorLoc.y;
    MMouse (x, y, 3, 3);
    if (IsUpTextMultiCustom(['pen', 'oor'])) then
    begin
    GetMousePos(x, y);
    Mouse(x, y, 0, 0, False);
    ChooseOption('pen');
    Write('Door Was Closed');
    Result := True;
    Exit;
    end;
    if (IsUpTextMultiCustom(['lose', 'oor'])) then
    begin
    Wait(250+random(250));
    Mouse(x - 12, y, 3, 3, True);
    Write('Door Was Open');
    Result := True;
    Exit;
    end;
    Wait(350+random(350));
    end;
    Result := False;
    Write('Could Not Find Door');
    end;
    You can mess with colors and also the lines
    x := MSCx;
    y := MSCy - 40;
    but it should work for ya .

  3. #3
    Join Date
    May 2008
    Location
    127.0.0.1
    Posts
    705
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default

    wow dude thanks!, btw i used the new FindObjRecord for finding the staircase :P
    <Wizzup> And he's a Christian
    <Wizzup> So he MUST be trusted
    ___________________________________________
    <Wizzup> she sounds like a dumb bitch

  4. #4
    Join Date
    Nov 2007
    Posts
    437
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh fine lol, don't like mine . Rofl cool. Good luck

    - Dusk412

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. HP Checker
    By faster789 in forum RS3 Outdated / Broken Scripts
    Replies: 4
    Last Post: 02-16-2009, 08:55 PM
  2. Walking+Door Checker/Opener
    By yanix in forum OSR Help
    Replies: 6
    Last Post: 10-09-2007, 04:04 PM
  3. Spell Checker...
    By Dankness in forum SRL Site Discussion
    Replies: 4
    Last Post: 11-05-2006, 01:03 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
  •