Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llGiveInventory to No Mod object. Bug or expected behavior.

Gattz Gilman
Banned from RealLife :/
Join date: 29 Feb 2004
Posts: 316
04-02-2006 06:04
If object A gives item 1a (using llGiveInventory) to object B, and object B has a script that detects inventory change and object B is No Modify.
Seems that the script inside object B does not detect receiving the item (1a) but will have it in its contents.

I dont know if this is a permission bug where it shouldnt be able to receive the item, or if its a bug where the "changed" event doesnt detect it if the prim the script is inside is No Modify or if this is the expected behavior.

Ive even checked the LSL Wiki and didnt find any info. I did post my findings on it.

**Edit: Upon further search on the LSL Wiki, I found out what I was doing wrong. I was just looking for the CHANGED_INVENTORY, and not CHANGED_ALLOWED_DROP.
_____________________
Kelly Linden
Linden Developer
Join date: 29 Mar 2004
Posts: 896
04-03-2006 21:41
Your edit is correct. If a scripted object sets the status ALLOW_INVENTORY_DROP then it can receive items, even if it is no mod. Items that were received only because of this flag will trigger CHANGED_ALLOWED_DROP change events instead of CHANGED_INVENTORY. In many cases it is a good idea to check for both flags in the changed event.
_____________________
- Kelly Linden