Make¶
The “Make” menu is the Chat box menu that pops up when you attempt to craft certain items in game.
TMakeItem¶
Helper record used to cache make menu items.
TMake¶
Main record used to interact with the Make menu.
Make.SetupInterface¶
procedure TMake.SetupInterface();
Internal method used to setup the TMake coordinates.
This is automatically called for you on the Make variable.
Make.IsOpen¶
function TMake.IsOpen(): Boolean;
Returns True/False if the Make if open.
Example:
WriteLn Make.IsOpen();
Make.WaitOpen¶
function TMake.WaitOpen(time: Integer = TICK; interval: Integer = -1): Boolean;
Returns True if the Make opens within time milliseconds.
Example:
WriteLn Make.WaitOpen();
Make.GetItemBoxes¶
function TMake.GetItemBoxes(): TBoxArray;
Returns the available item buttons as a TBoxArray.
Example:
ShowOnTarget(Make.GetItemBoxes());
Make.GetQuantityBoxes¶
function TMake.GetQuantityBoxes(): TBoxArray;
Finds quantity button boundaries and returns them as a TBoxArray.
You have 2 ways of getting the quantity boxes, a static one:
ShowOnTarget(Make.QuantityButtons);
The make static boxes.¶
And a dynamic one:
ShowOnTarget(Make.GetQuantityBoxes());
The make “dynamic” boxes.¶
There are use cases for both, internally, Make.GetQuantityBoxes is usually used.
Make.HasHint¶
function TMake.HasHint(): Boolean;
Returns true if a hint tooltip is visible.
Example:
if Make.HasHint() then
ShowOnTarget(Make.GetHintBox());
Make.WaitHint¶
function TMake.WaitHint(time: Integer = TICK; 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 TMake.GetHintBox(): TBox;
Returns the hint tooltip bounds.
Example:
ShowOnTarget(Make.GetHintBox());
Make.ReadHint¶
function TMake.ReadHint(): String;
Returns the hint tooltip text.
Example:
WriteLn Make.ReadHint();
Make.CloseHint¶
function TMake.CloseHint(): Boolean;
Attempts to close a hint tooltip.
Example:
WriteLn Make.CloseHint();
Make._SelectHelper¶
function TMake._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 TMake.Select(index, quantity: Integer; keyboardProbability: Single = -1): Boolean;
function TMake.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 TMake variable.