Douglas Callahan
Fresh Prince Of SL
Join date: 2 Jul 2004
Posts: 349
|
05-15-2005 17:46
Incase anyone hasn't been reading the general forum, there is an effort to clean out everyone's inventory going on. Incase you don't want to keep pressing delete, put this script into an object and simply drag your unwanted items onto that object. This will work for everything but scripts //Trash by Douglas Callahan, If there are any compile errors, let me know as I'm writing this in the forumns since I can't get it.
default { state_entry() { llAllowInventoryDrop(TRUE); }
changed(integer change) { if ( change & CHANGED_ALLOWED_DROP ) { integer num = llGetInventoryNumber(llGetScriptName()); integer a = 0; while (a < num) { string name = llGetScriptName(); string tobedeleted = llGetInventoryName(INVENTORY_ALL); if ( name != tobedeleted ) { llRemoveInventory(tobedeleted); } else { ++i; } } } } }
This can be used by multiple people, not just the owner, so invite your friends to do it too! Feel free to fix any errors I made as I am writing this in the forums. We could have a party doing this! Come to Vitos Pizza and we'll have a save SL day, kind of like Earth Day 
_____________________
Other than that, Mrs. Lincoln, how was the play?
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
05-16-2005 06:16
default { state_entry() { llAllowInventoryDrop( TRUE); } changed(integer change) { if (llGetInventoryNumber( INVENTORY_ALL) - 1) { string name = llGetScriptName(); string tobedeleted; while(name != (tobedeleted = llGetInventoryName( INVENTORY_ALL, 0))) llRemoveInventory( tobedeleted); integer num = llGetInventoryNumber( INVENTORY_ALL); while(--num) llRemoveInventory( llGetInventoryName( INVENTORY_ALL, 1)); // llRemoveInventory( name); } } }
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
Stinky Queso
Second Life Resident
Join date: 29 Nov 2004
Posts: 53
|
05-17-2005 17:14
Sorry if I do not understand here, but as long as the object from your inventory is copyable this wont do anything, really. I mean, the "original" still exists in your inventory. All this would accomplish would be well, nothing.
And didn't the lindens say NOT to delete your inventories as this would be more of a strain on the system than leaving the existing data there?
|