SellCommodity¶
SellCommodity(resource, amount?) · SellCommodityTracked(resource, amount?)
Inputs: resource is an integer resource ID in 0..255; amount defaults
to 100 and must be a multiple of 100 in 100..25500.
Description: Requests market sale of that many resource units. Invalid values reject admission. The tracked form revalidates the original market; check live resources before any dependent trade.
Output: SellCommodity returns true for queue admission, otherwise false.
SellCommodityTracked returns accepted, receipt.
Errors: Wrong Lua argument types raise an argument error. Invalid resource IDs
or amounts reject admission. A missing original market can reject later as
original-market-unavailable. A tracked receipt gives the rejection reason when
available.