Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Simple Distributor

TigerZak Lorefield
Registered User
Join date: 26 Jun 2008
Posts: 4
07-20-2009 08:04
I'm working on a Script to completely clean my objects of scripts and scripting effect (similiar to the scrubber, but work on a large prim object)
however, the only Solution I can find to work this, other than putting the scrubber script in every prim, is to make it so the script copies itself an places it into every prim.

I have no idea how to correctly make this happen, but have seen other scripts similiar to this for sale as 'Script distributors'. I dont know if anyone would give away the 'secret' of how it works, but I would like to as kall the professional scripters out there for a simple way of moving a single script into every prim of a 70prim + object.
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
07-20-2009 08:18
Take a look at Emma Nowhere's script in the Library:
http://wiki.secondlife.com/wiki/Fix_Small_Prims

But it is rather simple to accomplish, here is a snippet that will copy the script it is in, from the root to all children:
CODE
integer i;
for ( i = 2; i <= llGetNumberOfPrims(); i++ ) llGiveInventory( llGetLinkKey( i ), llGetScriptName());
Happy scripting:)
_____________________
From Studio Dora
TigerZak Lorefield
Registered User
Join date: 26 Jun 2008
Posts: 4
07-20-2009 08:53
It works now! Thankyou very much for your help.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
07-20-2009 14:46
nevermind, skimmed and misread
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -