Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Gift Card question.

Yingzi Xue
Registered User
Join date: 11 Jun 2008
Posts: 144
01-06-2009 09:24
I have a friend that wants me to write a gift card script for her shop. I can do it, but I have a question about objects and how they vend. Here's what I'm trying to do...

She uses the "For Sale" option on the vendor prim, which gives a copy of the inventory of the vendor object. I want to keep that intact and add the gift card script. My question is, from what I'm seeing you can't transfer no copy items via a script can you? But I just saw a store that does that very same thing. It gives inventory like you had bought it, but using the gift card. My question is, what function are they using to allow giving of inventory via a script (into a buyer's inventory as a folder) with no copy items?
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
01-06-2009 09:35
SL-Perms are a nightmare... :)

From what I understand, the permissions you set on an object always apply to the NEXT owner. So if you set an object to no-copy, YOU as the owner still have copy-perms - but the next owner (a.k.a. buyer) doesn't...
Yingzi Xue
Registered User
Join date: 11 Jun 2008
Posts: 144
01-06-2009 09:39
Yes, but here's my dilemma... From what I can tell a script can't transfer an inventory list into a buyer's inventory (as a folder) if there are no-copy items in the mix. In this particular case, the vendor object is doing the selling using "For Sale" of "Contents". If a gift card is in a customer's hand, the vendor finds it (not rocket science), then gives the customer the items as a folder, just like the vendor would. So how is it being done? How are they doing it if it can't be done in a script with no-copy items?
Escort DeFarge
Together
Join date: 18 Nov 2004
Posts: 681
01-06-2009 09:52
Check out llGiveInventoryList() and also think a bit more about what Haruki just said!

/esc
_____________________
http://slurl.com/secondlife/Together
Yingzi Xue
Registered User
Join date: 11 Jun 2008
Posts: 144
01-06-2009 11:48
Duh! Thank you both. :)
Yingzi Xue
Registered User
Join date: 11 Jun 2008
Posts: 144
01-06-2009 12:00
Another quick question... there are only functions to change Sit and Touch text on the radial menu. How did they change the Go Here text?
RvA Hax
Registered User
Join date: 25 Dec 2007
Posts: 10
This One ?
01-06-2009 12:21
You were searching for a script like this ? ::

/15/5f/78451/1.html

btw: great work by Jora Welesa, Dark Lady of the Sith