diff options
author | UbitUmarov | 2015-09-01 11:43:07 +0100 |
---|---|---|
committer | UbitUmarov | 2015-09-01 11:43:07 +0100 |
commit | fb78b182520fc9bb0f971afd0322029c70278ea6 (patch) | |
tree | b4e30d383938fdeef8c92d1d1c2f44bb61d329bd /bin/assets/ScriptsAssetSet/llAllowInventoryDrop.lsl | |
parent | lixo (diff) | |
parent | Mantis #7713: fixed bug introduced by 1st MOSES patch. (diff) | |
download | opensim-SC_OLD-fb78b182520fc9bb0f971afd0322029c70278ea6.zip opensim-SC_OLD-fb78b182520fc9bb0f971afd0322029c70278ea6.tar.gz opensim-SC_OLD-fb78b182520fc9bb0f971afd0322029c70278ea6.tar.bz2 opensim-SC_OLD-fb78b182520fc9bb0f971afd0322029c70278ea6.tar.xz |
Merge remote-tracking branch 'os/master'
Diffstat (limited to 'bin/assets/ScriptsAssetSet/llAllowInventoryDrop.lsl')
-rw-r--r-- | bin/assets/ScriptsAssetSet/llAllowInventoryDrop.lsl | 17 |
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..ca6087c --- /dev/null +++ b/bin/assets/ScriptsAssetSet/llAllowInventoryDrop.lsl | |||
@@ -0,0 +1,17 @@ | |||
1 | integer allow; | ||
2 | |||
3 | default | ||
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 | } | ||