LSL feature request. The described function does not exist. This article is a feature request.

Returns price of the object that the script resides in or -1 if it's not for sale.

Syntax

integer llGetPrice();

Forced delay: 0.1 seconds. Energy: 0.0.

Return value

Returns an integer

Caveats

Examples

integer price = llGetPrice();

Notes

This would greatly simplify vendors and also be useful for split-profit and varous types of sale-data scripts.