Tool-sound lister   Lists sounds in an object's contents.  he list appears in chat history. You can use standard copy to pick it up for reuse.   This TOOL function is normally NOT RUNNING. To use it check the running box  A common use would be to capture a list of sounds for inclusion in a script.  
default {
   state_entry()
 

{ integer InventoryType=INVENTORY_SOUND ;
integer length = llGetInventoryNumber(InventoryType);
llOwnerSay( (string) length);
integer x;

For listing a different type of contents, replace SOUND with: TEXTURE, OBJECT, NOTECARD, or SCRIPT

for ( x = 0; x < length; x++)

The for clause and the tricky way of incrementing the index.

{ llOwnerSay( llGetInventoryName(InventoryType,x) ); }

llOwnerSay () avoids bothering your neighbors. 
   }
}
 
The Thinkerer 05/09/2008
Copyright (c) D. F. Dansereau & S. H. Evans

Site Map

Where start?

LODScr
Famous fables