Difference between revisions of "CHANGED ALLOWED DROP"

From Second Life Wiki
Jump to navigation Jump to search
Line 4: Line 4:
|value={{LSL Hex|0x40}}
|value={{LSL Hex|0x40}}
|desc=A user other then the owner (or the owner if the object is no-mod) has added inventory to the prim.
|desc=A user other then the owner (or the owner if the object is no-mod) has added inventory to the prim.
|examples
|examples=
<pre>
default
{
    changed(integer change) //reset script if inventory changes
    {
        if (change & CHANGED_ALLOWED_DROP) //note that it's & and not &&... it's bitwise!
        {
            llOwnerSay("The inventory has changed as a result of a user without mod permissions dropping an item on the prim and it being allowed by the script.");
        }
    }
}
</pre>
|functions=
|functions=
{{LSL DefineRow||[[llAllowInventoryDrop]]|}}
{{LSL DefineRow||[[llAllowInventoryDrop]]|}}
|events=
|events=
{{LSL DefineRow||[[changed]]|}}
{{LSL DefineRow||[[changed]]|}}
|cat1
|cat1=Inventory
|cat2
|cat2
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 19:01, 1 March 2007

Description

Constant: integer CHANGED_ALLOWED_DROP = 0x40;

The integer constant CHANGED_ALLOWED_DROP has the value 0x40

A user other then the owner (or the owner if the object is no-mod) has added inventory to the prim.

Related Articles

Functions

•  llAllowInventoryDrop

Events

•  changed

Examples

default
{
    changed(integer change) //reset script if inventory changes
    {
        if (change & CHANGED_ALLOWED_DROP) //note that it's & and not &&... it's bitwise!
        {
            llOwnerSay("The inventory has changed as a result of a user without mod permissions dropping an item on the prim and it being allowed by the script.");
        }
    }
}

Deep Notes

Search JIRA for related Issues

Signature

integer CHANGED_ALLOWED_DROP = 0x40;