DepositBox

DepositBox interface.


ERSDPButtons

ERSDPButtons = enum(WORN, LOOT, INVENTORY);

Enum representing the 3 main deposit buttons of the DepositBox interface.


TRSDepositBox

Main record to interact with the DepositBox interface.


DepositBox.SetupInterface

procedure TRSDepositBox.SetupInterface;

Initializes depositbox variables.

Note

This is automatically called on the DepositBox variable.


DepositBox.IsOpen

function TRSDepositBox.IsOpen(): Boolean;

Returns true if the DepositBox interface is open.

Example:

WriteLn DepositBox.IsOpen();

DepositBox.WaitOpen

function TRSDepositBox.WaitOpen(time: Integer; interval: Integer = -1): Boolean;

Returns true if the DepositBox is open within time milliseconds.

Example:

WriteLn DepositBox.WaitOpen();

DepositBox.Close

function TRSDepositBox.Close(escape: Boolean): Boolean;
function TRSDepositBox.Close(escapeProbability: Single = 0): Boolean; overload;

Closes the depositbox interface. Depending on escape or `escapeProbability the function will either click the button or press escape key.

Example:

 WriteLn DepositBox.Close();

DepositBox variable

Global TRSDepositBox variable.