Join us in Outworldz at or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Giver Give Inventory List  

Give Inventory List

Give inventory List

Category: Giver
By : Ferd Frederix
Created: 2013-09-06 Edited: 2013-09-07
Worlds: Second Life

the Zip file

Download all files for Give Inventory List
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Script.lsl

This script by Ferd Frederix may be used in any manner, modified, and republished.  Unless specified otherwise, my scripts are always free and open source.  Objects made with these scripts may be sold with no restrictions.  All I ask is that you point others to this location should they ask you about it and to not sell this script, unless it is for $0 L. Please help improve my work by reporting bugs and improvements.

6 // llGiveInventoryList
9 // * This function causes the script to sleep for 3.0 seconds.
10 // * If inventory is missing from the prim's inventory then an error is shouted on DEBUG_CHANNEL.
11 // * Avatar must be, or have recently been, within the same Region as sending object.
12 // * Does not create a folder when avatar is a prim UUID.
13 // o The prim must be in the same region.
15 //Examples
17 // When a user clicks this object, this script will give a folder containing everything in the objects inventory
18 // This can serve as a unpacker script for boxed objects
20 default {
22 touch_start(integer total_number) {
24 list inventory;
25 string name;
27 integer i;
29 for (i = 0; i < num; ++i) {
32 inventory += name;
33 else
34 llSay(0, "Don't have permissions to give you \""+name+"\".");
35 }
38 //we don't want to give them this script
39 i = llListFindList(inventory, [llGetScriptName()]);
40 inventory = llDeleteSubList(inventory, i, i);
42 if(llGetListLength(inventory) < 1) {
43 llSay(0, "No items to offer.");
44 } else {
45 // give folder to agent, use name of object as name of folder we are giving
47 }
49 }
50 }

Back to the Best Free Tools in Second Life and OpenSim.