GrandExchangeHistory

Methods to interact with the GrandExchangeHistory interface:

_images/geh_interface.png

The GrandExchange is a very complex interface, probably the most complex available in OldSchool RuneScape and for that reason, the functionality to fully interact with it is split into multiple files and records:


TRSGrandExchangeHistory

Record responsible to handle the GrandExchangeHistory interface.


GrandExchangeHistory.SetupInterface

procedure TRSGrandExchangeHistory.SetupInterface();

Internal method used to setup the TRSGrandExchangeHistory coordinates. This is automatically called for you on the GrandExchangeHistory variable.


GrandExchangeHistory.IsOpen

function TRSGrandExchangeHistory.IsOpen(): Boolean;

Returns true if the Grand Exchange is open.

Example:

WriteLn GrandExchangeHistory.IsOpen();

GrandExchangeHistory.WaitOpen

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

Returns true if the Grand Exchange is open within time milliseconds.

Example:

WriteLn GrandExchangeHistory.WaitOpen();

GrandExchangeHistory.Close

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

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

Example:

 WriteLn GrandExchangeHistory.Close();

GrandExchangeHistory.Slots

property TRSGrandExchangeHistory.Slots: TBoxArray;

Returns the slot boxes of the GrandExchangeHistory interface.

Example:

{$I WaspLib/osrs.simba}
begin
  while True do
    ShowOnTarget(GrandExchangeHistory.Slots);
end.
_images/geh_slots.gif

GrandExchangeHistory.Open

function TRSGrandExchangeHistory.Open(): Boolean;

Attempts to open the GrandExchangeHistory, returns True on success.

Example:

WriteLn GrandExchangeHistory.Open();

GrandExchangeHistory.Back

function TRSGrandExchangeHistory.Back(): Boolean;

Attempts to click the back button: to return to the main Grand Exchange interface, returns True on success.

Example:

WriteLn GrandExchangeHistory.Back();

GrandExchangeHistory variable

Global TRSGrandExchangeHistory variable.