Gear Layouts

The Gear Layouts is a handler for OSRS gear. “Gear” refers to as any equippable item in the game.

You can configure gear manually but the recommended way is to use Gear Form.


TRSGearItem

Alias type for a TRSItem that is equippable. This doesn’t have much use other than GearItem.Interact that comes next which can be very handy.


GearItem.Interact

function TRSGearItem.Interact(option: String = ''; attempts: Int32 = 2): Boolean;

Interact with the TRSGearItem regardless of it being on the Inventory or Equipment with the least amount of gametab switches possible.

Example:

ring.Interact('Rub');

Because TRSGearItem have few use cases, you are probably using TRSItem instead. You can still easily use this by casting:

TRSGearItem(ring).Interact('Rub');

TRSGear

Type that represents a gear layout.


Gear.ToJSON

function TRSGear.ToJSON(): TJSONItem;

Convert the TRSGear into a TJSONItem.


TRSGearLayout

Main type for the Gear Layouts.


GearLayout.Equip

function TRSGearLayout.Equip(): Boolean;

Attempts to equip a GearLayout.


GearLayout.Withdraw

function TRSGearLayout.Withdraw(): Boolean;

Attempts to withdraw a GearLayout from the Bank.