Second Life Copybot
Give to Child Prims - Printable Version

+- Second Life Copybot (https://secondlifecopybot.com)
+-- Forum: SECOND LIFE PRODUCTS (https://secondlifecopybot.com/forum-1.html)
+--- Forum: SCRIPTS (https://secondlifecopybot.com/forum-1022.html)
+---- Forum: SCRIPTS (https://secondlifecopybot.com/forum-8.html)
+----- Forum: Avatar Augmentation Scripts (https://secondlifecopybot.com/forum-51.html)
+----- Thread: Give to Child Prims (/thread-821.html)



Give to Child Prims - deadpool - 02-19-2013

What is it?

Something to aid in the task of dropping the same item into multiple prims (linked set). It allows transfer of any SL inventory items, however any scripts sent to child primitives will need to be re-rezzed/set running. It works by voice commands, you simply say what you want sent to all child prims.

How-to/Info:

•Copy paste the script below into a new script inworld.
•Save it & then put the script into an object (if not there already).
•Example voice command: /1 something

PHP Code:
// This will give items to all child prims in the linked set
// say name of item on given channel, done.
// See http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSetRemoteScriptAccessPin
// for loading scripts as running state
 
integer listenID;
integer cmd_channel 1;
 
default { 
//
    
state_entry(){  
        
listenID llListen(cmd_channel"",llGetOwner(),"");
    }
//
    
on_rez(integer d){
        
llResetScript();
    }
//
    
listen(integer channelstring namekey idstring msg){
        if(
channel == cmd_channel){
            
integer i;
            for (
2llGetNumberOfPrims() + 1i++){
                
llGiveInventory(llGetLinkKey(i), msg);
            }
            
llOwnerSay("If you copied a script to child prims, you will need to re-rez an set script to running.");
            
//llRemoveInventory(llGetScriptName());
        
}
    }
//