Hi,
A screen script allows people to drop textures into it. I can find llGetInventoryCreator which tells me who created the texture that was dropped in, but I cannot find a llGetInventoryOwner command.
Is it possible?
TIA
Rock
These forums are CLOSED. Please visit the new forums HERE
Getting the owner of a texture |
|
|
Rock Vacirca
riches to rags
Join date: 18 Oct 2006
Posts: 1,093
|
12-16-2008 16:26
Hi,
A screen script allows people to drop textures into it. I can find llGetInventoryCreator which tells me who created the texture that was dropped in, but I cannot find a llGetInventoryOwner command. Is it possible? TIA Rock |
|
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
|
12-16-2008 16:39
Wouldn't you be looking for the previous owner?
The owner of the object would be the owner of a texture in the object's inventory, wouldn't it? _____________________
-
So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them. I can be found on the web by searching for "SuezanneC Baskerville", or go to http://www.google.com/profiles/suezanne - http://lindenlab.tribe.net/ created on 11/19/03. Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard, Robin, and Ryan - |
|
Wildefire Walcott
Heartbreaking
Join date: 8 Nov 2005
Posts: 2,156
|
12-16-2008 17:18
If it's your inventory item, then you are the owner. I THINK what you're asking is, if someone drops a texture onto your object, how do you know who did it? If that is the case, LSL does not offer a way to know that. When someone with write permissions drops an item on a prim, all you get is the changed event with the CHANGED_INVENTORY flag. That's it.
You could perhaps combine it with a sensor so that when you caught the changed event you looked for avatars nearby, but if there were multiple avs in sensor range, you wouldn't know who dropped the item. But anyway, yeah, once the item hits your prim it no longer belongs to the giver. _____________________
Desperation Isle Estates: Great prices, great neighbors, great service!
http://desperationisle.blogspot.com/ New Desperation Isle: The prettiest BDSM Playground and Fetish Mall in SL! http://desperationisle.com/ Desperation Isle Productions: Skyboxes for lots (and budgets) of all sizes! |
|
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
|
12-16-2008 17:58
When someone with write permissions drops an item on a prim, all you get is the changed event with the CHANGED_INVENTORY flag. That's it.. A JIRA suggestion for some llDetectedStuff functionality in the changed event might be nice.. Being able to see who triggered an inventory change, who sat down, etc. That or a new event for when inventory changes.. If I wasn't so lazy, I might add it myself.. |
|
Escort DeFarge
Together
Join date: 18 Nov 2004
Posts: 681
|
12-16-2008 19:49
I notice that your local inventory cache lists last_owner as an attribute. However, every single one is a NULL_KEY. Guess early on, LL must have thought about it, but then decided not to - or never got around to - implementing that.
/esc _____________________
http://slurl.com/secondlife/Together
|
|
Klug Kuhn
Registered User
Join date: 7 Sep 2007
Posts: 126
|
12-16-2008 22:46
You could add a touch (or pay etc.) procedure before dropping. e.g. :
1. ➛ the person touches the prim, it records the llDetectedName(0) or llDetectedKey(0) 2. ➛ the script moves to a dropping state (or enable TRUE for, integer drop_allow = TRUE) 3. ➛ the person then is informed and allowed to the texture inside 4. ➛ once the texture is dropped and trigger a change event, the script will be back to the default state (or drop_allow = FALSE) 5. ➛ finally by using llOwnerSay() or llInstantMessage() to you for the data recorded at step 1. ![]() |