Results 1 to 6 of 6

Thread: Opening Doors

  1. #1
    Join Date
    Apr 2007
    Location
    Melbourne, Aus
    Posts
    202
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Opening Doors

    Hey guys
    can anyone tell me how to find and open doors, what functions i could use. and how to use those functions. Or is there a tutorial on how to find them?
    thanks

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    C:\Program Files\SCAR 3.21\includes\SRL\SRL\misc\DoorProfiles.scar
    SCAR Code:
    // * function IsDropDot(Pt: TPoint): Boolean;                                   // * by lordsaturn
    // * function FilterDropDots(P: TPointArray): TPointArray;                      // * by lordsaturn
    // * function GetDoorPoints: T2DPointArray;                                     // * by lordsaturn
    // * function GetDoorColors: TIntegerArray;                                     // * by lordsaturn
    // * function GetDoorColor: integer;                                            // * by lordsaturn
    // * function RearrangeTPA(TPA: TPointArray; sortX, up: Boolean): TPointArray;  // * by lordsaturn
    // * function MiddleDoor(var P: TPointArray; var s: extended): TPoint;          // * by lordsaturn
    // * function GetDoors: array of DoorProfile;                                   // * by lordsaturn
    // * function GetDoorsIn(x1, y1, x2, y2: integer): array of DoorProfile;        // * by lordsaturn
    // * procedure SortDoorsFrom(var d: array of DoorProfile; From: TPoint);        // * by lordsaturn

    Not sure if that still works.
    Also you can use ACA (Auto Color Aid) to help you out a lot too.
    Its located inside C:\Program Files\SCAR 3.21\includes\SRL\Scripting Tools

  3. #3
    Join Date
    Apr 2007
    Location
    Melbourne, Aus
    Posts
    202
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for that mate
    rep ++.. also whats a dropdot?

  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    I'm not sure, but those functions/procedures are used in the higher level ones anyways. (The procedures/functions neat the bottom of the list I pasted are the ones you will probably use, and you dont need to worry about the top ones anyways), but good question.

  5. #5
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    function GetDoorColor: Integer;
    By: Boreas
    Description:
         Finds first door color it comes to. Ignores drop dots :)

    function GetSecondDoorColor(First: Integer): Integer;
    By: Boreas
    Description:
         Finds first door color except for First. Ignores drop dots :)

    function IsTPointInDropDot(TP: TPoint): Boolean;
    By: Boreas
    Description:
         Returns true if a point, that is one of the 4 constant drop dot
         colors, is in a drop dot. Works with partial covering.

    function IgnoreDropDots(TheList: array of array of TPoint): array of array of TPoint;
    By: Boreas
    Description:
         

    function GetAllDoorPixels: array of array

    function MdPtOfArray(var  Slope: Extended; TheArray: array of TPoint): TPoint;
    By: Boreas
    Description:
         Returns MidPt of the rectangle that an array of tpoints covers. Not
         nescessarily one of the tpoint in the array. Also sets the slope of the diagonal
         of the rectangle to slope.

    function GetDoors: array of DoorProfile;
    By: Boreas
    Description:
         High level returns infomation about doors on minimap in an array
         of door profile
    Maybe you could just do,

    SCAR Code:
    Procedure Door;
    Var I :integer;
    begin
    I := GetDoorColor;
    Writeln( IntToStr(I) ); //replace with some other finding function
    end;

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

    Default

    Just use
    Either
    // * function GetDoors: array of DoorProfile; // * by lordsaturn
    Or
    // * function GetDoorsIn(x1, y1, x2, y2: integer): array of DoorProfile; // * by lordsaturn


    Then use
    // * procedure SortDoorsFrom(var d: array of DoorProfile; From: TPoint); // * by lordsaturn


    The rest of it is low level. DropDots are the red dots on the minimap where people drop items, they create a false positive for doors, which is taken into account with GetDoors.

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
  •