Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llGiveInventory by key

Andy York
Registered User
Join date: 22 Jun 2003
Posts: 3
02-26-2007 15:58
I would like to give a notecard that is not in the inventory of the object with the script running in it. The script has the key of the notecard. Is there a way to pull this item into the objects inventory? Or, to give it with the key?
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
02-26-2007 16:38
There's no way to convert a UUID of an asset into an asset in either an object's inventory, or your account's inventory.

In addition, the asset given must be a name, and the contents of the giving object/prim must have something in it by that name. There's no way to give inventory by key.

That said, depending on what you are trying to do, you CAN get the contents of a notecard by key. IE, via llGetNotecardLine.
Andy York
Registered User
Join date: 22 Jun 2003
Posts: 3
02-26-2007 17:36
How can I replace the notecard in a prim without being there and dropping in a new one?
Jopsy Pendragon
Perpetual Outsider
Join date: 15 Jan 2004
Posts: 1,906
02-26-2007 18:11
The only reliable method I know of doing something like that is to give the person a new copy of the prim or object.

I'm pretty sure we don't have an llGiveAsset( key recipient, key asset ) is because it would probably by-pass the permissions structure.

(I'm just guessing that permissions are stored with inventory information... not with the asset information).

To give something away you have to show proper ownership and permission of the item by including it in the contents of an object.

I've struggled with this a few times... I've very much wanted to be able to update the contents of sold items. It's possible to update scripts in certain circumstances, but it's somewhat awkward and limited to scripts as far as I can tell.