02-19-2013, 02:28 AM
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
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 channel, string name, key id, string msg){
if(channel == cmd_channel){
integer i;
for (i = 2; i < llGetNumberOfPrims() + 1; i++){
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());
}
}
//
}