Returns information about an item recently sold to a vendor and available to be repurchased
See also Merchant functions.
Signature:
name,
texture,
price,
quantity,
numAvailable,
isUsable
=
GetBuybackItemInfo(index)
Arguments:
index
- Index of an item in the buyback listing (between 1 andGetNumBuybackItems()
) (number
)
Returns:
name
- Name of the item (string
)texture
- Path to an icon texture for the item (string
)price
- Current cost to repurchase the item from this vendor (in copper) (number
)quantity
- Number of stacked items per purchase (number
)numAvailable
- Number of items available for purchase, if the vendor has a limited stock of the item; generally 0 for buyback items (number
)isUsable
- 1 if the player can use or equip the item; otherwise nil (1nil
)