offer
static boolean offer(int itemId, int amount)
Content copied to clipboard
Offers the items whose ID matches the specified ID to the first trade window.
Return
True if all of the items were offered, and if at least one item was offered; false otherwise.
Parameters
itemId
The ID of the item you wish to offer.
amount
The amount of the item to offer.