mirror of
https://github.com/opensim/opensim.git
synced 2026-05-18 13:35:35 +08:00
18 lines
515 B
Plaintext
18 lines
515 B
Plaintext
integer allow;
|
|
|
|
default
|
|
{
|
|
touch_start(integer num)
|
|
{
|
|
llAllowInventoryDrop(allow = !allow);
|
|
llOwnerSay("llAllowInventoryDrop == "+llList2String(["FALSE","TRUE"],allow));
|
|
}
|
|
changed(integer change)
|
|
{
|
|
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.");
|
|
}
|
|
}
|
|
}
|