Minimap#

Methods to handle Minimap. Extends SRL’s Minimap.


Minimap.SetCompassAngle#

procedure TRSMinimap.SetCompassAngle(Degrees: Double; Accuracy: Double = 5); override;

Overrides SRL’s default Minimap.SetCompassAngle() to check if we are logged in and log back in if it times out.


Minimap.WaitMoving#

procedure TRSMinimap.WaitMoving(doAntiban: Boolean = True);

Gives Minimap.WaitPlayerMoving the ability to perform antiban tasks while moving.

Example:

Minimap.WaitMoving();

Minimap.OnGroundLevel#

function TRSMinimap.OnGroundLevel(threshold: Int32 = 3300): Boolean;

Minimap.OnGroundLevel returns true if we are likely to be on the ground level. This works by counting the amount of black in the minimap and might give false positives/negatives if there’s more than 3500 black pixels on the minimap. A threshold can be set for this counting, the default being 3300.

Example:

WriteLn Minimap.OnGroundLevel();

Minimap.InPOH#

function TRSMinimap.InPOH();

Minimap.InPOH returns true if we are in a POH. This might give false positives if you are upstairs or in a place with few colors on the minimap. It might also give false negatives if the POH is crowded.

Example:

WriteLn Minimap.InPOH();

Minimap.FindRedArrow#

function TRSMinimap.FindRedArrow(out tpa: TPointArray): Boolean;
function TRSMinimap.FindRedArrow(): Boolean; overload;

Returns true if there’s a red arrow on minimap. If a TPointArray is passed as a parameter it will return with the location of the arrow.

Example:

Writeln Minimap.FindRedArrow();

Minimap.FindYellowArrow#

function TRSMinimap.FindYellowArrow(out tpa: TPointArray): Boolean;
function TRSMinimap.FindYellowArrow(): Boolean; overload;

Returns true if there’s a yellow arrow on minimap. If a TPointArray is passed as a parameter it will return with the location of the arrow tip.

Example:

Writeln Minimap.FindYellowArrow();

Minimap.FindArrow#

function TRSMinimap.FindArrow(out tpa: TPointArray): Boolean;
function TRSMinimap.FindArrow(): Boolean; overload;

Returns true if there’s a red or yellow arrow on the minimap. If a TPointArray is passed as a parameter it will return with the location of the arrow.

Example:

Writeln Minimap.FindArrow();

Minimap.WaitRedArrow#

function TRSMinimap.WaitRedArrow(tpa: TPointArray; waitTime: Int32 = 600; interval: Int32 = -1): Boolean;
function TRSMinimap.WaitRedArrow(waitTime: Int32 = 600; interval: Int32 = -1): Boolean;

Waits waitTime for a Red arrow to appear on Minimap. If a TPointArray is passed as a parameter it will return with the location of the arrow tip.

Example:

Writeln Minimap.WaitRedArrow();

Minimap.WaitYellowArrow#

function TRSMinimap.WaitYellowArrow(tpa: TPointArray; waitTime: Int32 = 600; interval: Int32 = -1): Boolean;
function TRSMinimap.WaitYellowArrow(waitTime: Int32 = 600; interval: Int32 = -1): Boolean;

Waits waitTime for a yellow arrow to appear on Minimap. If a TPointArray is passed as a parameter it will return with the location of the arrow tip.

Example:

Writeln Minimap.WaitYellowArrow();

Minimap.WaitArrow#

function TRSMinimap.WaitArrow(tpa: TPointArray; waitTime: Int32 = 600; interval: Int32 = -1): Boolean;
function TRSMinimap.WaitArrow(waitTime: Int32 = 600; interval: Int32 = -1): Boolean;

Waits waitTime for a yellow or red arrow to appear on Minimap. If a TPointArray is passed as a parameter it will return with the location of the arrow.

Example:

Writeln Minimap.WaitArrow();

Minimap.HasDotUnder#

function TRSMinimap.HasDotUnder(): Boolean;

Checks if the player has a dot under it. This will include all types of ERSMinimapDot.

Example:

Writeln Minimap.HasDotUnder();