Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llGiveSelf

Coyote Murphy
Beelphazoaric
Join date: 12 Aug 2003
Posts: 91
09-15-2003 20:44
llGiveSelf(key destination)

Follows permissions for drop, triggers CHANGED (owner and allowed), etc etc.

I can't explain how happy this would make me, so I won't try. But man. So happy.
Coyote Murphy
Beelphazoaric
Join date: 12 Aug 2003
Posts: 91
09-15-2003 20:45
Er, perhaps I should be less vague. This function would place the object calling it into the destination's inventory, if both are in the same Sim.
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
09-15-2003 21:17
Id love this. Totaly, utterly, and entirely.
_____________________
October 3rd is the Day Against DRM (Digital Restrictions Management), learn more at http://www.defectivebydesign.org/what_is_drm
Water Rogers
Registered User
Join date: 1 May 2003
Posts: 286
09-16-2003 05:57
heh...

you could make a copy of itself and put it into it's inventory

llGiveInventory(key id, string name) //i think that's the call..

If you don't want the object after it's given a copy of itself, you could kill it off (llDie()).


I agree with you though... shouldn't have to do so much workaround for what seems simple results.

--H2o
_____________________
From: Philip Linden

For the more technically minded - the problem is actually NOT the asset server (or 'asshat' as you prefer to affectionately call it herein).
Coyote Murphy
Beelphazoaric
Join date: 12 Aug 2003
Posts: 91
09-16-2003 06:34
llInventoryChangeName(string oldname,string newname) would also make me terribly happy.
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
09-16-2003 06:56
You cant rely on name, its not a unique identifier. You should get a key for that. If you dont have a key instead of the old name which of my 1000 "Object"s would you be acting upon?
I wish we could iterate through inventory objects like they were a folder full of files, sort of like the opendir, readdir and related C functions.
Coyote Murphy
Beelphazoaric
Join date: 12 Aug 2003
Posts: 91
09-16-2003 09:12
Object name is a unique identifier for object inventories (you can't have multiple 'Object' entries -- each additional one will rename itself 'Object 1', 'Object 2', etc.)

Since Avs can't call library functions, their inventories wouldn't be affected by llInventoryChangeName. This is the same model that llGetInventoryKey(string name) follows.
Coyote Murphy
Beelphazoaric
Join date: 12 Aug 2003
Posts: 91
09-16-2003 09:13
Er. Am I right? Now I'm not so sure.

Will attachments call their llGetInv* functions on the avatar inventory, or on their own?

If so, you're right, it'd need a key.
Jake Cellardoor
CHM builder
Join date: 27 Mar 2003
Posts: 528
09-16-2003 10:43
You're right, Coyote. Asset names are unique within an object's inventory, but not within your av's inventory. The llGetInv* functions use the object's inventory.
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
09-16-2003 17:35
From: someone
Originally posted by Water Rogers
heh...
you could make a copy of itself and put it into it's inventory

llGiveInventory(key id, string name) //i think that's the call..
--H2o


The thing is, is that *you* have to manually copy the object into its contents, and when it gives itself over and dies, it cant do the process again without manual intervention.



From: someone
Originally posted by Eggy Lippmann
You cant rely on name, its not a unique identifier. You should get a key for that. If you dont have a key instead of the old name which of my 1000 "Object"s would you be acting upon?
I wish we could iterate through inventory objects like they were a folder full of files, sort of like the opendir, readdir and related C functions.


I wrote up a few functions that would allow you to do *almost* this. Look in the script library for "Object Inventory Functions".


From: someone
Originally posted by
Coyote Murphy
llInventoryChangeName(string oldname,string newname) would also make me terribly happy.
[/B]

llRenameInventory(key id, string newName);

or

llRenameInventory(string oldName, string newName);

would also make me wanna hug a linden till he/she 'splodes :D

-Chris
_____________________
October 3rd is the Day Against DRM (Digital Restrictions Management), learn more at http://www.defectivebydesign.org/what_is_drm
Coyote Murphy
Beelphazoaric
Join date: 12 Aug 2003
Posts: 91
09-16-2003 17:40
*drool*