Make

The “Make” menu is the Chat box menu that pops up when you attempt to craft certain items in OldSchool RuneScape.

_images/make_interface.png

TRSMakeItem

Helper record used to cache make menu items.


TRSMake

Main record used to interact with the Make menu.


Make.SetupInterface

procedure TRSMake.SetupInterface();

Internal method used to setup the TRSMake coordinates.

This is automatically called for you on the Make variable.


Make.IsOpen

function TRSMake.IsOpen(): Boolean;

Returns True/False if the Make if open.

Example:

WriteLn Make.IsOpen();

Make.WaitOpen

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

Returns True if the Make opens within time milliseconds.

Example:

WriteLn Make.WaitOpen();

Make.GetItemBoxes

function TRSMake.GetItemBoxes(): TBoxArray;

Returns the available item buttons as a TBoxArray.

Example:

ShowOnTarget(Make.GetItemBoxes());
_images/make_items.png

Make.HasHint

function TRSMake.HasHint(): Boolean;

Returns true if a hint tooltip is visible.

Example:

if Make.HasHint() then
  ShowOnTarget(Make.GetHintBox());

Make.WaitHint

function TRSMake.WaitHint(time: Integer = 600; interval: Integer = -1): Boolean;

Returns true if a hint tooltip is visible within time milliseconds.

Example:

if Make.WaitHint() then
  ShowOnTarget(Make.GetHintBox());

Make.GetHintBox

function TRSMake.GetHintBox(): TBox;

Returns the hint tooltip bounds.

Example:

ShowOnTarget(Make.GetHintBox());
_images/make_hint.png

Make.ReadHint

function TRSMake.ReadHint(): String;

Returns the hint tooltip text.

Example:

WriteLn Make.ReadHint();

Make.CloseHint

function TRSMake.CloseHint(): Boolean;

Attempts to close a hint tooltip.

Example:

WriteLn Make.CloseHint();

Make.QuantityButtons

The quantity buttons are dynamic there can be anywhere from 1 to 6 available.

You have their coordinates available at anytime through the TRSMake.QuantityButtons variable:

ShowOnTarget(Make.QuantityButtons);
_images/make_quantities.png

The make interface quantity buttons.

Despite them being always available you should only interact with the ones that are visible which you can do easily through the next methods.


Make.IndexOfQuantity

function TRSMake.IndexOfQuantity(amount: Integer): Integer;

Finds the index of a quantity button by the specified amount. If the amount we are looking for, the custom quantity button is returned, otherwise the result is -1.

Example:

WriteLn Make.IndexOfQuantity(Make.QUANTITY_ALL);

Make.IsQuantitySelected

function TRSMake.IsQuantitySelected(idx: Integer): Boolean;

Checks if the specified idx quantity button is currently selected.

Example:

WriteLn Make.IsQuantitySelected(Make.QUANTITY_ALL);

Make.SetQuantity

function TRSMake.SetQuantity(amount: Integer): Boolean;

Attempts to set a quantity.

Example:

WriteLn Make.SetQuantity(Make.QUANTITY_ALL);

Make._SelectHelper

function TRSMake._SelectHelper(index: Integer; boxes: TBoxArray; keyboardProbability: Single): Boolean;

Internal helper method that handles selecting an item with or without the keyboard. You probably will never need to use this directly.


Make.Select

function TRSMake.Select(index, quantity: Integer; keyboardProbability: Single = -1): Boolean;
function TRSMake.Select(item: String; quantity: Integer; keyboardProbability: Single = -1): Boolean; overload;

Select a index or an item of the available item buttons available. If you are selecting an item you need to use the tooltip text.

Example:

WriteLn Make.Select('Maple longbow', QUANTITY_ALL);

Make variable

Global TRSMake variable.