Weekly Raffle
Top Free Scripts
ASD Web Tools
Give Folder [Anyone Version]
 
Script ID : 41
Published Date: 2010/5/12 5:19:36
Reads : 3422
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=0i<max; ++i)
            {
                if (
llGetInventoryType(llGetInventoryName(INVENTORY_ALLi)) != INVENTORY_SCRIPT)
                {
                    
inv += [llGetInventoryName(INVENTORY_ALLi)];
                }
            }
            
llGiveInventoryList(targetllGetObjectName(), inv);
        }
    }
}

Printer Friendly Page Send this Script to a Friend

Disclaimer: While I do not mind if these scripts are used in things you sell, I do not wish for these scripts to be sold either on their own or in script packs.
Now Available
Visit ASD Studios Hollywood
Search for Help
Monthly Free Item
Confetti Machine


Limit one per avatar
Teleport Now!



Sponsor

Site Info
Total Hits: