Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How can I set a fixed price in the "pay" dialog box ...

Adana Ember
Registered User
Join date: 30 Dec 2007
Posts: 43
04-13-2008 22:25
... in my vendor script.

Right now, if someone selects an item from my vendor they get the default "pay" dialog with the L$1, L$5, L$10, L$20 and a blank amount textbox. What I want is either to be able to set the Fast Pay button to the price of the item selected or better yet, have the purchaser be able to select "buy" and get the inventory dialog along with the fixed price.

My vendor is a multi item vendor that has items for sale along with the pics of each of the objects for the display. The user right clicks on the vendor and selects 'Pay' from the menu to purchase an item.

I have tried setting the object for sale to "For Sale" and selected both the "Pay" and the "Buy" option. That didn't work. I have looked through multiple freebie vendor scripts as well as the Script Library here on the SL Forum and not been able to find an example of how this might be done. Did I just miss it somehow?

Thank-you in advance for your help.
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
04-13-2008 22:36
llSetPayPrice(iMyFixedPrice,[PAY_HIDE,PAY_HIDE,PAY_HIDE,PAY_HIDE]);
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
04-13-2008 22:38
From: Adana Ember
What I want is either to be able to set the Fast Pay button to the price of the item selected



From: someone
or better yet, have the purchaser be able to select "buy" and get the inventory dialog along with the fixed price.
Not possible through LSL.
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
04-13-2008 22:41
Check http://wiki.secondlife.com/wiki/LlSetPayPrice for setting a fixed price, the examples stuff PAY_HIDE in just as you would want.

As that page says, but it needs repeating, this is just an input filter. You will still need to check the amount, and refund and cancel the transaction, if it's incorrect.

[bleah too slow =) ]
_____________________
Adana Ember
Registered User
Join date: 30 Dec 2007
Posts: 43
04-14-2008 02:31
Thank-you, everybodies ... that worked like a dream ... of course :)