Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Detecting 'For Sale' (price) in LSL?

Vinnie Baxter
Registered User
Join date: 5 Feb 2007
Posts: 17
11-13-2007 15:39
Well.. I've searched and searched but so far nothing.. is there a way to tell from a script if the object containing the script is 'For Sale'? even better, what the 'Buy' price is?
Teddy Qinan
Registered User
Join date: 10 Mar 2007
Posts: 34
11-13-2007 20:27
No, sorry.
Vinnie Baxter
Registered User
Join date: 5 Feb 2007
Posts: 17
11-14-2007 10:13
maybe then I should submit it as a feature request...
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
11-14-2007 10:15
This seems to be covered by https://jira.secondlife.com/browse/VWR-398 - so maybe add your comments and vote there so they don't get lost in the noise.
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
11-14-2007 10:17
What would you do with this feature? Got some good use cases?
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
11-14-2007 21:24
dynamicly check the contents of a box and set the buy/pay price... or for verifying that a correct price has been set

(for example, see the lovely new bug with coalescence and multiple buy objects)

just off the top of my head
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
11-15-2007 07:43
Not sure a new bug, a bug that LL has declared Show Stopper and will probably fix soon, is a good enough reason to add a new LSL feature. For checking the price of something, you can just mouse hover over it - I'm not sure I see what being able to do this from a script gets you.

The OP asked for the ability to see if an object's for sale and maybe get the price.
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Tarquin Janus
Registered User
Join date: 31 Jan 2007
Posts: 5
11-16-2007 03:26
From: Meade Paravane
For checking the price of something, you can just mouse hover over it - I'm not sure I see what being able to do this from a script gets you.


I can see a very good reason for it.
What if you owned a shop, sold items in objects which were for sale. You want to keep track of sales. So have a script that detects if an item has been sold (changed event. Check changed_owner bit) and update whatever website you've got setup. The script could read the buy price of the package and update the server with whom, how much and what.

1 Generic script could do the whole lot.

The alternative is to have a seperate script for each package being sold which you'd have to manually set the price of. Or have a config notecard with the price in that. And each time you changed the price of the package, you'd have the change the script or notecard. Woops you forgot a few. Sales figures are all out of kilter.

I can see a very very good reason for an llGetBuyPrice(), llSetBuyPrice() command set.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
11-16-2007 05:44
dynamically create objects for sale... at least w/ set buy (because there is no way to 'pay' to get the original)....
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -