Item¶
Page dedicated to runescape items and misc functions related to them.
Bank.Integer2Quantity¶
function TRSBank.Integer2Quantity(quantity: Integer): ERSItemQuantity;
Internal helper function to convert a integer quantity into a ERSItemQuantity.
Example:
WriteLn Bank.Integer2Quantity(5);
WriteLn Bank.Integer2Quantity(7);
TRSItem.SimplifyName¶
function TRSItem.SimplifyName(): String;
Internal helper function to get a human like short item name, usually to search.
Example:
item := 'Amulet of glory(6)';
WriteLn item.SimplifyName();
Item.GetStackBox¶
function TRSItem.GetStackBox(slot: TBox): TBox; static;
Returns the correct text box of an item’s amount text based on the item box.
Item.ReadStack¶
function TRSItem.ReadStack(slot: TBox): Integer; static;
For use with items in like bankscreen, inventory, shops and so on to get the number of stacked items there are.