Weekly Raffle
Top Free Scripts
ASD Web Tools
Give Inventory
 
Script ID : 8
Published Date: 2006/10/16 16:38:41
Reads : 18832
Agent/Avatar

Use this script to give an inventory item when the object is Touched to the avatar touching.

I've listed all versions for each inventory type below. If you have more than one of the same kind of inventory in the object's contents, use the version at the very bottom.

Give Notecard

default {
    
touch_start(integer total_number)
    {
        
llGiveInventory(llDetectedKey(0),llGetInventoryName(INVENTORY_NOTECARD0));
    }
}


Give Object
default {
    
touch_start(integer total_number)
    {
        
llGiveInventory(llDetectedKey(0),llGetInventoryName(INVENTORY_OBJECT0));
    }
}


Give Texture
default {
    
touch_start(integer total_number)
    {
        
llGiveInventory(llDetectedKey(0),llGetInventoryName(INVENTORY_TEXTURE0));
    }
}


Give Sound
default {
    
touch_start(integer total_number)
    {
        
llGiveInventory(llDetectedKey(0),llGetInventoryName(INVENTORY_SOUND0));
    }
}


Give Landmark
default {
    
touch_start(integer total_number)
    {
        
llGiveInventory(llDetectedKey(0),llGetInventoryName(INVENTORY_LANDMARK0));
    }
}


Give Clothing
default {
    
touch_start(integer total_number)
    {
        
llGiveInventory(llDetectedKey(0),llGetInventoryName(INVENTORY_CLOTHING0));
    }
}


Give Animation
default {
    
touch_start(integer total_number)
    {
        
llGiveInventory(llDetectedKey(0),llGetInventoryName(INVENTORY_ANIMATION0));
    }
}


Give Gesture
default {
    
touch_start(integer total_number)
    {
        
llGiveInventory(llDetectedKey(0),llGetInventoryName(INVENTORY_GESTURE0));
    }
}


Give Bodypart
default {
    
touch_start(integer total_number)
    {
        
llGiveInventory(llDetectedKey(0),llGetInventoryName(INVENTORY_BODYPART0));
    }
}


Give ANYTHING in Inventory (change name at top)
string item "Name of Item";

default
{
    
touch_start(integer total_number)
    {
        
llGiveInventory(llDetectedKey(0),item);
    }
}

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.
Most Popular Raffle System In Second Life
Visit ASD Studios Hollywood
Search for Help
Monthly Free Item
Party Sploder


Limit one per avatar
Teleport Now!



Sponsor

Site Info
Total Hits: