llGetInventoryLastOwner
Jeremy Duport
Scripts can act on object inventory and objects can be configured to accept inventory from any source (llAllowInventoryDrop), as well as from agents with permission to modify the owner's objects. Being able to interrogate object inventory entries for their last owner would be good addition to scripting - it would make CHANGED_INVENTORY events more able to richly react to the users causing them, as well as allowing for (slightly) better behavior security.
Objects have a property OBJECT_LAST_OWNER_ID but this can only be interrogated (in script land) with llGetObjectDetails, while the object exists in the world.
It would be nice if this property was:
- available on all kinds of asset,
- set on them when they are added to an object's inventory,
- and accessible via a key llGetInventoryLastOwner(string item)call; the same approach as llGetInventoryCreator.
Log In
Peter Stindberg
I had the very same issue a few years ago, with items dropped by llLallowInventoryDrop. I ended up with a very complex process of determining a probability who the last owner (or the dropper) might have been. It works fine and is correct most of the time, but a proper last-owner setting would make all this unnecessary.