Sets the parcel the object is on for sale.\nForSale is a boolean, if TRUE the parcel is put up for sale. Options is a list of options to set for the sale, such as price, authorized buyer, and whether to include objects on the parcel.\n Setting ForSale to FALSE will remove the parcel from sale and clear any options that were set.
This function requires that the script be owned by the parcel owner and that they have granted the PERMISSION_PRIVILEGED_LAND_ACCESS permission.
integer llSetParcelForSale( integer ForSale, list Options );
Forced delay: 0.0 seconds. Energy: 10.0.
Returns an integer Error code or 0 if successful.
| Constants | Value | Description |
|---|---|---|
| PARCEL_SALE_AGENT | 2 | The agent id authorized to purchase the parcel. If none set, any agent may purchase. |
| PARCEL_SALE_OBJECTS | 3 | If TRUE, objects on the parcel are included in the sale. |
| PARCEL_SALE_PRICE | 1 | The price of the parcel. If no authorized agent is set, must be greater than 0. |
| Constants | Value | Description |
|---|---|---|
| PARCEL_SALE_OK | 0 | The sale information was successfully set. |
| PARCEL_SALE_ERROR_NO_PARCEL | 1 | The parcel could not be found. |
| PARCEL_SALE_ERROR_NO_PERMISSIONS | 2 | The script does not have the required permissions to set the sale information. |
| PARCEL_SALE_ERROR_IN_ESCROW | 3 | The parcel is currently in escrow and cannot be set for sale. |
| PARCEL_SALE_ERROR_INVALID_PRICE | 4 | The price set for the parcel is invalid (e.g., less than or equal to 0). |
| PARCEL_SALE_ERROR_BAD_PARAMS | 5 | The parameters provided to set the sale information are invalid. |