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
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
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
Thanks for that mate
rep ++.. also whats a dropdot?
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.![]()
Maybe you could just do,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
SCAR Code:Procedure Door;
Var I :integer;
begin
I := GetDoorColor;
Writeln( IntToStr(I) ); //replace with some other finding function
end;
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)