Top Free Scripts
Script ID : 8
Audience : Default
Version 1.00.04
Published Date: 2006/10/16 16:38:41
Reads : 28235
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);
    }
}

0
|  Links 
Printer Friendly Page Send this Script to a Friend
Search for Help
New Product
Free Item
Sponsor

Site Info
Total Hits