aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin/assets/ScriptsAssetSet/llAllowInventoryDrop.lsl
diff options
context:
space:
mode:
authorBrian McBee2008-01-07 01:03:46 +0000
committerBrian McBee2008-01-07 01:03:46 +0000
commit35b0c2e9dfbbf811c12c9e3e7d4359a13b987977 (patch)
tree42e91b37aa581006dc9defb6780ff15319049d3f /bin/assets/ScriptsAssetSet/llAllowInventoryDrop.lsl
parentFactor out inventory code in SceneObjectGroup into seperate class. (diff)
downloadopensim-SC_OLD-35b0c2e9dfbbf811c12c9e3e7d4359a13b987977.zip
opensim-SC_OLD-35b0c2e9dfbbf811c12c9e3e7d4359a13b987977.tar.gz
opensim-SC_OLD-35b0c2e9dfbbf811c12c9e3e7d4359a13b987977.tar.bz2
opensim-SC_OLD-35b0c2e9dfbbf811c12c9e3e7d4359a13b987977.tar.xz
More inventory work for CharlieO. Final patch to make it all work yet to come.
Diffstat (limited to 'bin/assets/ScriptsAssetSet/llAllowInventoryDrop.lsl')
-rw-r--r--bin/assets/ScriptsAssetSet/llAllowInventoryDrop.lsl17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/assets/ScriptsAssetSet/llAllowInventoryDrop.lsl b/bin/assets/ScriptsAssetSet/llAllowInventoryDrop.lsl
new file mode 100644
index 0000000..162396a
--- /dev/null
+++ b/bin/assets/ScriptsAssetSet/llAllowInventoryDrop.lsl
@@ -0,0 +1,17 @@
1integer allow;
2
3default
4{
5 touch_start(integer num)
6 {
7 llAllowInventoryDrop(allow = !allow);
8 llOwnerSay("llAllowInventoryDrop == "+llList2String(["FALSE","TRUE"],allow));
9 }
10 changed(integer change)
11 {
12 if (change & CHANGED_ALLOWED_DROP) //note that it's & and not &&... it's bitwise!
13 {
14 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.");
15 }
16 }
17}