|
Tiziana Corleone
Registered User
Join date: 22 Sep 2006
Posts: 54
|
01-23-2007 11:17
I have found a number of free vendors and all of them have a so-called "Fast Pay" method of payment, listing 1,2,5,10L and a window for entering a different amount. I would like to have it list only the exact price of the item for sale (which would seem to be a faster pay system). I know there is "llSetPricePay" or some line of code setting a single price but would like to avoid messing with the script too much.
Any ideas?
Thanks!
|
|
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
|
01-23-2007 12:13
From the wiki, an example of llSetPayPrice is
//Restrict to one price llSetPayPrice(PAY_HIDE, [50, PAY_HIDE, PAY_HIDE, PAY_HIDE]);
This will cause only one button to appear (which in this case would be set to 50).
Without doing this in the script, I do not know of another way to limit to just one price option. Not sure what constitutes "messing with the script too much".
Baron Hauptmann
|
|
Tiziana Corleone
Registered User
Join date: 22 Sep 2006
Posts: 54
|
Thanks! I'll give it a try!
01-23-2007 16:08
I appreciate your help ... will try to insert the line without disturbing things.
|
|
Tiziana Corleone
Registered User
Join date: 22 Sep 2006
Posts: 54
|
Oops!
01-23-2007 16:51
Baron, where in the script should I place the llSetPayPrice? after the "touch" or before in setting up the various commands (setname,updateitems,listsales,etc.)?
The LSL Wiki is down and I can't consult it ...
thanks, again!
|
|
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
|
01-23-2007 20:12
Hmmmm. Without seeing the whole script, I'm kinda shooting in the dark, but . . .
If this is a single-item vendor, then I would set it state_entry().
If this is a multi-item vendor, then any time it updates the "current" item, set the payprice to reflect the appropriate amount.
If you need more help, feel free to contact me in SL.
Baron
|