MainScreen

Methods to interact with the MainScreen.


ObjectFinder.Unlimit

procedure TObjectFinder.Unlimit;

Resets ObjectFinder size limits


ObjectFinder.Unlimited

function TObjectFinder.Unlimited: TObjectFinder;

Returns a copy of the ObjectFinder with the size limits removed.


MainScreen.FilterInPolygon

function TMainScreen.FilterInPolygon(tpa, polygon: TPointArray): TPointArray;
function TMainScreen.FilterInPolygon(atpa: T2DPointArray; polygon: TPointArray): T2DPointArray; overload;

Filters the given TPointArray or T2DPointArray and returns only those that are visible within a polygon on the mainScreen.


MainScreen.GetAdjacentTiles

function TMainScreen.GetAdjacentTiles: TRectArray;

Returns the 4 tiles adjacent to the player in form of a TRectArray.


MainScreen.DebugAdjacentTiles

procedure TMainScreen.DebugAdjacentTiles;

Debugs MainScreen.GetAdjacentTiles.

Example:

MainScreen.DebugAdjacentTiles;

MainScreen.InMultiCombat

function TMainScreen.InMultiCombat: Boolean;

Returns true if we are in multi combat false if not.

Example:

Writeln MainScreen.InMultiCombat;

MainScreen.FindGrave

function TMainScreen.FindGrave: Boolean;

Returns true if we died and there’s a grave available somewhere, false otherwise.

Example:

Writeln MainScreen.FindGrave;

MainScreen.LoadingPOH

function TMainScreen.LoadingPOH: Boolean;

Returns true if we are loading a poh.

Example:

Writeln MainScreen.LoadingPOH;

MainScreen.WaitLoadingPOH

function TMainScreen.WaitLoadingPOH: Boolean;

Waits for the POH loading screen returns true if we find a loading screen and successfully wait for it to finish.

Example:

Writeln MainScreen.WaitLoadingPOH;

MainScreen.FindEnemyHitsplats

function TMainScreen.FindEnemyHitsplats(): Boolean;

Returns the hitsplats on screen that don’t belong to the player.

Example:

Debug(MainScreen.FindEnemyHitsplats());

MainScreen.InCombat

function TMainScreen.InCombat: Boolean;

Returns true if we are currently in combat. With slow attack speed between you and the enemy this might return false negatives.

Example:

Writeln MainScreen.InCombat;

MainScreen.WaitInCombat

function TMainScreen.WaitInCombat(waitTime: Int32; interval: Int32 = -1): Boolean;

Waits the specified waitTime until we are in combat.

Example:

MainScreen.WaitInCombat(5000);

MainScreen.WaitNotInCombat

function TMainScreen.WaitNotInCombat(waitTime: Int32; interval: Int32 = -1): Boolean;

Waits the specified waitTime until we are nto in combat.

Example:

MainScreen.WaitNotInCombat(5000);

MainScreen.FindArrow

function TMainScreen.FindArrow(out TPA: TPointArray): Boolean;
function TMainScreen.FindArrow: Boolean; overload;

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

Example:

Writeln MainScreen.FindArrow;

MainScreen.WaitArrow

function TMainScreen.WaitArrow(TPA: TPointArray; WaitTime: Int32 = 600; Interval: Int32 = -1): Boolean;
function TMainScreen.WaitArrow(WaitTime: Int32 = 600; Interval: Int32 = -1): Boolean;

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

Example:

Writeln MainScreen.WaitArrow;