GrandExchangeHistory¶
Methods to interact with the GrandExchangeHistory interface:
The GrandExchange is a very complex interface, probably the most complex available in game and for that reason, the functionality to fully interact with it is split into multiple files and records:
GrandExchange, the main grand exchange screen.
GrandExchangeHistory, the history screen of the grand exchange and what this page is about.
GrandExchangeChat, the chat interface of the grand exchange when you are setting up a buy offer.
GrandExchangeOffer, the screen of the grand exchange where you view or setup a new offer.
TGrandExchangeHistory¶
Record responsible to handle the GrandExchangeHistory interface.
GrandExchangeHistory.SetupInterface¶
procedure TGrandExchangeHistory.SetupInterface();
Internal method used to setup the TGrandExchangeHistory coordinates. This is automatically called for you on the GrandExchangeHistory variable.
GrandExchangeHistory.IsOpen¶
function TGrandExchangeHistory.IsOpen(): Boolean;
Returns true if the Grand Exchange is open.
Example:
WriteLn GrandExchangeHistory.IsOpen();
GrandExchangeHistory.WaitOpen¶
function TGrandExchangeHistory.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 TGrandExchangeHistory.Close(escape: Boolean): Boolean;
function TGrandExchangeHistory.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 TGrandExchangeHistory.Slots: TBoxArray;
Returns the slot boxes of the GrandExchangeHistory interface.
Example:
{$I WaspLib/main.simba}
begin
while True do
ShowOnTarget(GrandExchangeHistory.Slots);
end.
GrandExchangeHistory.Open¶
function TGrandExchangeHistory.Open(): Boolean;
Attempts to open the GrandExchangeHistory, returns True on success.
Example:
WriteLn GrandExchangeHistory.Open();
GrandExchangeHistory.Back¶
function TGrandExchangeHistory.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 TGrandExchangeHistory variable.