The integer constant CHANGED_INVENTORY has the value 0x1
Prim inventory has changed by someone who has modification rights to a prim.
Inventory changes that cause this event are:
This event does not occur when:
Important : This event is triggered in the root prim by a change in any child prim, unless the child prim has a handler for it. It is not triggered in any other linked prim.
integer CHANGED_INVENTORY = 0x1;
default
{
changed(integer change)
{
if (change & CHANGED_INVENTORY) //note that it's & and not &&... it's bitwise!
{
llOwnerSay("The inventory has changed.");
}
}
}