HOME PRODUCTS HELP FREEBIES SCRIPTS TUTORIALS NEWS CONTACT
  Teleport to Store in-world!    |     Links  
Main Menu
Alicia's Raffle
Who's Online
8 user(s) are online (1 user(s) are browsing Free Scripts)

Members: 0
Guests: 8

more...
Admin Login
Username:

Password:


Lost Password?

Register now!
SL Books


Sites of Interest
Published Date: 2010/5/12 0:19:36
Views : 137
Agent/Avatar

Gives a folder of items to anyone that Touches.


// Add this script and your items to an object.
// When Touched a folder of all items inside the object will be given.
// Scripts are the only inventory type that will not be given, (including this script.)

default
{
    state_entry()
    {
        llSetText("Touch for a Folder", <1,1,1>, 1.0);
    }
    
    touch_start(integer total_number)
    {
        integer i;
        for (i=0;i<total_number;i++)
        {
            key target = llDetectedKey(i);
            list inv;
            integer i;
            integer max = llGetInventoryNumber(INVENTORY_ALL);
            for (i=0; i<max; ++i)
            {
                if (llGetInventoryType(llGetInventoryName(INVENTORY_ALL, i)) != INVENTORY_SCRIPT)
                {
                    inv += [llGetInventoryName(INVENTORY_ALL, i)];
                }
            }
            llGiveInventoryList(target, llGetObjectName(), inv);
        }
    }
}

0
|  Links 
Printer Friendly Page Send this Script to a Friend
Visit ASD Studios Hollywood
Product Spotlight
Alicia's Universe
Recent Scripts
Suggested Reading
Top Free Scripts

© 2006-2010 Alicia Stella | ASD Affiliate Programs | Policies | News | Help
Second Life®, Xstreet & the inSL logo are registered trademarks of Linden Research, Inc.
Alicia Stella Design is not affiliated with Second Life. No infringement is intended.