Guest User

Untitled

a guest
Sep 10th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. default
  2. {
  3.     state_entry()
  4.     {
  5.         llSetText("Touch for a free copy of:\n" + llGetInventoryName(INVENTORY_OBJECT, 0), <0,1,1>, 1);
  6.     }
  7.    
  8.     touch_start(integer total_number)
  9.     {
  10.         llGiveInventory(llDetectedKey(0), llGetInventoryName(INVENTORY_OBJECT, 0));
  11.         llInstantMessage(llGetOwner(), llKey2Name(llDetectedKey(0)) + " took a copy of " + llGetInventoryName(INVENTORY_OBJECT, 0) + ".");
  12.     }
  13.    
  14.     changed(integer change)
  15.     {
  16.         if(change & CHANGED_INVENTORY)
  17.         {
  18.             llResetScript();
  19.         }
  20.     }
  21. }
Add Comment
Please, Sign In to add comment