Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Give specific item to specific avatar only?

Charlotte Morellet
Registered User
Join date: 14 Aug 2006
Posts: 64
08-27-2008 10:30
Hey guys!

I am no scripter by any means, so what I want to do might be super simple or it might be impossible, but lets give it a go anyways, shall we? :)

So I basically want to create a kiosk where customers can come pick up and pay for custom items that i have previously created for them. So ideally, they order the item, i create it, and when i am done, i put it into the kiosk. The customer can then come and pay the kiosk and get the item in return.

But obviously, I want them to only receive the item that is meant for them. Is there a way to associate an item in an object's contents with a specific avatar? So that if someone comes to the kiosk and is NOT the avatar in question it will throw out a message like "You have no items waiting" or whatever. And if this is possible, will it work with multiple items/avatars at once? I realize I will probably have to update the script every time i put new items in, but i am okay with that.

Thanks in advance for your help :)
_____________________
Visit Soda: Skins, clothing, eyes and more!
http://slurl.com/secondlife/Soigne/132/124/24

Watch the Soda Blog for updates and Specials:
http://sodadesigns.blogspot.com
Nika Talaj
now you see her ...
Join date: 2 Jan 2007
Posts: 5,449
08-27-2008 10:35
Well, one obvious way to do it would be to make the script read a notecard where each line starts with a person's name, then a list of the items they're entitled to get from the vendor. Or vice versa, whichever is less work. It's not clear from your description whether each item in the vendor is intended for only one person, or whether the same item can go to multiple avatars.

But anyway, this way you wouldn't have to change the script, just the notecard.

The script would, of course, be rather slow if the number of items or avatars you wanted to have in the vendor gets very large.

edit: it's a rather easy script to write; I don't think I've seen one around, but if you stick around perhaps someone will simply whip it up for you.
:)
Charlotte Morellet
Registered User
Join date: 14 Aug 2006
Posts: 64
08-27-2008 11:11
thanks, Nika. Each item would be for a single avatar only. But there might be numerous avatars who have ordered items at a single time, so there would be one item for every person.

Yeah i really dont code at all, so i had been looking for something similar that already existed, but havent had much luck yet!
_____________________
Visit Soda: Skins, clothing, eyes and more!
http://slurl.com/secondlife/Soigne/132/124/24

Watch the Soda Blog for updates and Specials:
http://sodadesigns.blogspot.com
Charlotte Morellet
Registered User
Join date: 14 Aug 2006
Posts: 64
08-28-2008 04:04
So I am assuming this is not possible, then?


i tracked down a script on SLX that gives the entire contents of an object to one avatar only, but now i need it to give only one object from the contents to that one avatar.. its got to be possible! anyone done this before ?
_____________________
Visit Soda: Skins, clothing, eyes and more!
http://slurl.com/secondlife/Soigne/132/124/24

Watch the Soda Blog for updates and Specials:
http://sodadesigns.blogspot.com
Cheree Bury
ChereeMotion Owner
Join date: 6 Jun 2007
Posts: 666
08-28-2008 04:40
From: Charlotte Morellet
So I am assuming this is not possible, then?


i tracked down a script on SLX that gives the entire contents of an object to one avatar only, but now i need it to give only one object from the contents to that one avatar.. its got to be possible! anyone done this before ?


I do not see this as being very difficult to write.

I would put all the items for a particular avatar in a box. Name the box with that person's name and append the price to the name. Then I would have the script read the name of the object and parse it down to the avatar's name and the price when you load the item in. Then have the person pay the correct amount. If they pay the correct amount, you give them their item. If they do not pay the correct amount, you refund their money.

You could add a touch event to tell the avatar the price.

You could have any number of items inside one vendor.

Unless I' am misunderstanding something, it doesn't seem that hard to me. IM me if no one else comes up with a solution for you.
_____________________
Visit ChereeMotion - Life's Best Pinup Poses
http://slurl.com/secondlife/Wild%20Rice/38/230/51
Nika Talaj
now you see her ...
Join date: 2 Jan 2007
Posts: 5,449
08-28-2008 08:23
Charlotte, both the solutions you've been given are easy to do. You've posted in the "scripting tips" subforum, which actually is for scripters who are looking for advice on how to write a script.

If you instead want someone to write one for you, or sell you one they already have, try posting on the "products wanted" subforum, I would suggest a title like "Script Needed: sell to one avatar".
.
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
09-04-2008 09:09
why not just have them pay you directly, and then you give them the object?