Collection Box¶
Methods to interact with the collection box interface.
ERSCollectSlots¶
ERSCollectSlots = enum(STATUS, OPERATION, THUMBNAIL, ITEM, CHANGE);
Enum representing the Collection Box slot slots. The Collection Box, like the Grand Exchange has 8 slots available, Each of those slots, has it’s own 5 small slots which is what this represents:
TRSCollectionBox¶
Main record to interact with the Collection Box interface.
CollectionBox.SetupInterface¶
procedure TRSCollectionBox.SetupInterface();
Internal method used to setup the TRSCollectionBox coordinates. This is automatically called for you on the CollectionBox variable.
CollectionBox.IsOpen¶
function TRSCollectionBox.IsOpen(): Boolean;
Returns true if the collection box is open.
Example:
WriteLn CollectionBox.IsOpen();
CollectionBox.WaitOpen¶
function TRSCollectionBox.WaitOpen(time: Integer = 600; interval: Integer = -1): Boolean;
Returns true if the collection box opens within time milliseconds..
Example:
WriteLn CollectionBox.WaitOpen();
CollectionBox.HasChange¶
function TRSCollectionBox.HasChange(slot: Integer): Boolean;
Returns true if the specified collection box slot has change.
Example:
WriteLn CollectionBox.HasChange(0);
CollectionBox.CollectSlot¶
function TRSCollectionBox.CollectSlot(slot: Integer; button: ERSCollectButton = ERSCollectButton.INVENTORY): Boolean;
Attempts to collect the item and change of the specified collection box slot.
By default it attempts to collect things to your inventory, you can change it to the bank with the button parameter.
Example:
WriteLn CollectionBox.CollectSlot(0);
CollectionBox variable¶
Global TRSCollectionBox variable.