Loot Screen

The loot screen file holds functions and procedures that are used in the runescape loot screen.

The source for this file can be found here.

Consts, Types, Vars

The following constants, types and variables are used throughout the lootScreen methods.

const Loot Buttons

Integer constants that represent the two loot buttons.

  • LOOT_BUTTON_CUSTOM
  • LOOT_BUTTON_ALL

type TRSLootScreen

type
  TRSLootScreen = type TRSInterface;

A type that stores the loot screen interface properties.

var lootScreen

var
  lootScreen: TRSLootScreen;

A variable through which scripters can access the TRSLootScreen type methods.

TRSLootScreen methods

The following methods should be called through the lootScreen variable.

Example:

if lootScreen.isOpen() then
  writeln('Loot screen screen is open!');

isOpen

function TRSLootScreen.isOpen(waitTime: integer = 0): boolean;

Returns true if the lootScreen interface is open. The optional waitTime parameter (default = 0) is the maximum time (in milliseconds) it will keep looking.

Note

  • by BMWxi
  • Last Updated: 5 May 2015 by BMWxi

Example:

if lootScreen.isOpen() then
  writeln('The lootScreen is open!');

close

function TRSLootScreen.close(): boolean;

Returns true if the lootScreen screen is successfully closed.

Note

  • by BMWxi
  • Last Updated: 5 May 2015 by BMWxi

Example:

if lootScreen.close() then
  writeln('Closed the lootscreen');

getSlotBoxes

function TRSLootScreen.getSlotBoxes(): TBoxArray;

Returns a TBoxArray of all of the lootScreen slot boxes.

Note

  • by BMWxi
  • Last Updated: 6 May 2015 by BMWxi

Example:

boxArr := lootScreen.getSlotBoxes();

getSlotBox

function TRSLootScreen.getSlotBox(slot: integer): TBox;

Returns the TBox of the lootScreen slot slot

Note

  • by BMWxi
  • Last Updated: 5 May 2015 by BMWxi

Example:

var
  b: TBox;
begin
  b := lootScreen.getSlotBox(1);

isItemInSlot

function TRSLootScreen.isItemInSlot(slot: integer): boolean;

Returns true if there is an item in the lootScreen slot slot

Note

  • by BMWxi
  • Last Updated: 6 May 2015 by BMWxi

Example:

if lootscreen.isItemInSlot(10) then
  writeln('There is an item in slot 10!');

lootSlot

function TRSLootScreen.lootSlot(slot: integer): boolean;

Loots the item in the lootScreen slot slot

Note

  • by BMWxi
  • Last Updated: 12 May 2015 by BMWxi

Example:

if lootscreen.lootSlot(10) then
  writeln('Looted item from slot 10!');

lootSlots

function TRSLootScreen.lootSlots(slots: TIntegerArray): boolean;

Loots the items in the lootScreen slots slots

Note

  • by BMWxi
  • Last Updated: 12 May 2015 by BMWxi

Example:

if lootscreen.lootSlots([1, 3]) then
  writeln('Looted items from slots 1 and 3!');

lootDTMs

function TRSLootScreen.lootDTMs(DTMs: TIntegerArray): boolean;

Loots all of the items that match any of the DTMs in the DTMs array.

Note

  • by BMWxi
  • Last Updated: 12 May 2015 by BMWxi

Example:

if (lootscreen.lootDTMs([CopperDTM, BonesDTM])) then
  writeln('Looted items by DTM');

lootDTM

function TRSLootScreen.lootDTM(DTM: integer): boolean;

Loots all of the items that match the DTM DTM

Note

  • by BMWxi
  • Last Updated: 6 May 2015 by BMWxi

Example:

if (lootscreen.lootDTM(BonesDTM)) then
  writeln('Looted items by DTM');

clickButton

function TRSLootScreen.clickButton(button: integer): boolean;

Selects one of the two collect buttons. The button should be one of the two Loot Button constants at the top of this page.

Note

  • by BMWxi
  • Last Updated: 6 May 2015 by BMWxi

Example:

if lootscreen.clickButton(LOOT_BUTTON_ALL) then
  writeln('Looted all items.');