1
0

llAllowInventoryDrop.lsl 515 B

1234567891011121314151617
  1. integer allow;
  2. default
  3. {
  4. touch_start(integer num)
  5. {
  6. llAllowInventoryDrop(allow = !allow);
  7. llOwnerSay("llAllowInventoryDrop == "+llList2String(["FALSE","TRUE"],allow));
  8. }
  9. changed(integer change)
  10. {
  11. if (change & CHANGED_ALLOWED_DROP) //note that it's & and not &&... it's bitwise!
  12. {
  13. 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.");
  14. }
  15. }
  16. }