Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Can a script rez an object and have a user be able to pick it up?

Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
01-18-2006 11:44
Preferably right-click and 'Take'. Is this doable with any combination of permissions? I think 'Take Copy' can work if the rezzed object is set to 'Allow anyone to copy' and its contents are copiable as well, and so the object could say "Please right click and take a copy, this object will die in X seconds". I could also use 'Buy' and set the price to 0. But I'm wondering if someone can directly take an object that they don't own. I didn't find llSetOwner() or anything along those lines either.

Here's why I want to rez it instead of just giving it to the user - the rezzer needs to communicate with the rezzed object and set it up. I'm sure that's a common scenario - how do people usually handle it? I could llGiveInventory, then ask the user to rez the object on the ground so I can set it up. But that involves timers and sensors and other error conditions that would need to be handled.

What's a clean way to handle this?
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
01-18-2006 15:09
I think you can take items that are over your land, although that might be you can only take objects you've got mod permissions over.

Free to copy should work though.

I've got to ask what setting up can't be done with the script, a notecard or an exchange of emails with a setup server in world or elsewhere?
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
01-18-2006 15:26
Transferring a bunch of inventory :) Which I'm not sure if O2O inventory transfer works any more or not, it did, then it didn't, then it did again...

I'm trying to make something where the end result needs to be copy/trans, because of the way it's used - the person who would use this item would set it up in a certain way, then re-distribute it. So... level 1 user buys it from me, sets it up, and then level 2 users can get copies of it.

If I have to sell the item as copy/trans to the level 1 user, I might as well give it away for free. So I'm trying to think of a way around that. One idea I had is to sell a no copy/no trans rezzer, so the person configures the rezzer instead of configuring the end item, then the rezzer creates the copy/trans end items on demand, and sets them up. And like I said, the setup involves inventory transfer. No, this isn't some fancy new vendor concept :)

One way would be to ask the level 1 user to set up the end item and do a "save back to inventory". I'm trying to avoid that and keep it simple, so the level 1 user only sets up the rezzer, and then the level 2 users get the end objects which are set up by the rezzer.

I'm not sure if I'm making any sense at all :)

Hmm... the end object will most likely be an attachment, so maybe I should do it the way I was hesitating to do it... give that to the level 2 user, ask him to wear it right away, have the item find the rezzer, and then have the rezzer download the inventory into the end object. Think that's the cleanest way to do this?
Rickard Roentgen
Renaissance Punk
Join date: 4 Apr 2004
Posts: 1,869
01-18-2006 16:21
Ziggy, set the touch text to "Take" and put an llGiveObject in the touch event. Yes it's fake but you could make it look like they were taking it, except the Take would be in the wrong place on the pie menu.
_____________________
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
01-18-2006 16:33
That could work too...
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
01-18-2006 23:10
I've not tried o2o give inventory in a while - but the wiki says it doesn't work unless the objects are in the same sim.

You can, however, give objects to avies wherever they are (see proof we're more than just a prim!).

You might end up with a not-entirely graceful situation where the tier 1 agent rezzes something, the potential tier 2 agent touches it, that triggers an email to a server which gives the object to now actual tier 2 agent...

I've again got to ask why, is it just for tracking? If so why not have a change & CHANGED_OWNER event trigger an IM to you? Your agents sell on (for 0 ideall I guess) the object and you still get your reporting.
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
01-19-2006 08:16
Nope... not for tracking. It's difficult to explain without telling you exactly what it is, which I don't want to do just yet :)

Let's say... it's like a tool, which I would sell to the tier 1 agent, who would then use the tools to make something else, which they could then sell/give away to the tier 2 agents. The final product made has to be copy/trans so one tier 1 agent can give it to multiple tier 2 agents. But I want the tool itself to be no copy or no trans, so I have some hope of being able to make some money selling it.

The "tool" itself is pretty simple, not much more than a few lines of code. So this is more of an intellectual exercise for me in some senses, just me being stubborn and seeing if this can be done :)
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
01-21-2006 10:44
I've been thinking about this a bit, and I can't see any *neat* way of doing it.

Some of the hacks, like altering the touch text seem as neat as anything else. Your last post says it's become an intellectual challenge for you - I think the answer is it should become a practical one! Until you try it and see where it doesn't work and tweak it I think it might not be that solvable. (Can you tell I'm an experimental scientist by background, not a mathematician!)

I have to admit that, at least in part, it's because I don't trust the permissions systems in SL and how they actually interact with changes in ownership etc. and so my mind starts balking at mapping what's going on... Good luck with it though!
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
01-21-2006 16:04
Well, at this point I'm going with giving them the object, then asking them to wear it so I can talk to it and set it up. Seems like the cleanest option so far, from a usability point of view.