FutureProg functions
purchasehelditemcustody
purchasehelditemcustody overload 1
Boolean purchasehelditemcustody(Character buyer, Character seller, Item parcel, Location storage, Currency currency, Number price)
Available in
- computer function
- computer program
- standard futureprog
Atomically transfers held cash and places the held parcel in storage before inventory callbacks. Refuses loose currency parcels, wielded/worn items, connected items and vehicle/dwelling interiors. Authorization and parcel metadata belong in the calling prog.
| Parameter | Type | Description |
|---|---|---|
buyer |
Character |
The paying character holding the parcel. |
seller |
Character |
The colocated service provider. |
parcel |
Item |
A directly held portable item, with its contents. |
storage |
Location |
An ordinary custody room. |
currency |
Currency |
The payment currency. |
price |
Number |
Nonnegative exact base-unit price. |