Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

I want someone to take my object...

Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
05-23-2006 07:21
When someone pay to an object, an another object is rezzed. Then I want him to take it. What should I do?

Ideas that I can't admit:
1. Set it for sale and have him buy it again for L$0.
2. Put the same object into it and have him touch and get the content.

Need idea more unless there is other way:
1. Set it to being copyable and have him take copy. I want the original object to die when he get it. What is the trigger?

I appreciate any help.
_____________________
:) Seagel Neville :)
Yumi Murakami
DoIt!AttachTheEarOfACat!
Join date: 27 Sep 2005
Posts: 6,860
05-23-2006 07:44
I don't think this can be done.

For vendors that do this, like the lotto machines, the usual way is to set the object for sale for the amount you want, have it rezzed in advance, and when the customer buys it, rez another.

Taking a copy of an object doesn't send a message to that object. :(
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
05-23-2006 09:18
Yumi, thanks a lot. Even though it is not a pleasant answer, I don't need to waste my time any more. Thank you. :)
_____________________
:) Seagel Neville :)
Whyzard Lightworker
Registered User
Join date: 3 Dec 2005
Posts: 14
05-23-2006 19:04
Yes. Set it to sell as Original. That way, once bought, the object becomes theirs. If they don't pick it up, you can auto-return it.
Deneb Rosewood
Registered User
Join date: 2 Feb 2006
Posts: 15
05-24-2006 02:03
Use llSensorRepeat (probably with a high timer, doesn't need to be laggy) to search for your items, "if (llDetectedOwner(0) != (llGetOwner() || NULL_KEY))", (not you or nobody, meening it's not yours anymore and it didn't return an error) rez a new one. Or could use a re-rezzer button...

Actually, my shop works very similer to this:

I have a button marked PUSH ME, and when you do it counts up from 0; rezzing the first object in it's inventory at a predetermined location and rotation. The object has a script inside named Delete Me that listens for the button to give it the command to llDie, which happens after timing out or the button being pressed again (where the 1st item needs to get out of the way for the second) It automaticly detects how many objects are in it so it knows when to return to the 1st item again.

It's very effective and primcount friendly =3 I do it this way because I don't trust Pay script venders. (don't have it in a version I can give to anyone though)
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
05-24-2006 07:59
Off topic, but thanks for the tip, Deneb. :) If you care about primcounts, however, what if you set your objects as temp on rez?

Returning the talk to the topic, as Yumi said, the first object was a vendor. A real vending machine dosn't throw its item to your bag, does it? Once it came out and you should take it. I just wanted to imitate the real world. :o

OK, I adopt Whyzard's idea. In the next version's feature, there is "New "Click Action" functionality for objects". So I can set it to the BUY action, and set its original for free by a left click.
Then, does anyone have any security advice? He has already paid for it but he doesn't get it untill he buy it again. If somebody else touches it in advance, he will get it. Yeah, it might happen in the real world, but it is easier than there. So I think I have to protect it. Please?
_____________________
:) Seagel Neville :)