Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- touch_start(integer num_detected)
- {
- string thisScript = llGetScriptName();
- list inventoryItems;
- integer inventoryNumber = llGetInventoryNumber(INVENTORY_ALL);
- integer index;
- for ( ; index < inventoryNumber; ++index )
- {
- string itemName = llGetInventoryName(INVENTORY_ALL, index);
- if (itemName != thisScript)
- {
- if (llGetInventoryPermMask(itemName, MASK_OWNER) & PERM_COPY)
- {
- inventoryItems += itemName;
- }
- else
- {
- llSay(0, "Unable to copy the item named '" + itemName + "'.");
- }
- }
- }
- if (inventoryItems == [] )
- {
- llSay(0, "No copiable items found, sorry.");
- }
- else
- {
- llGiveInventoryList(llDetectedKey(0), llGetObjectName(), inventoryItems); // 3.0 seconds delay
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement