Wuvme Karuna
..:: Spicy Latina ::..
Join date: 6 Jun 2004
Posts: 1,669
|
03-05-2005 14:23
hey guys its me! ROFL okay i dunno if there is a script but i was wondering if there is a script that u put inside an object, and anyone can just drop their inventory items into the object and i can get it.. on mine..
Example-
Joe drops a prim into the object.. and the object comes into my inventory.
LOL let me know ty
|
Cross Lament
Loose-brained Vixen
Join date: 20 Mar 2004
Posts: 1,115
|
03-05-2005 15:46
Untested, and hacky! But I think it should work, unless I'm a tard and screwed up (which is entirely possible)...  Edit: Okay, I wrote a better one. I'm still at work, and still scatterbrained, but it should I think work with multiple-item-drops. I think I even have it so it won't delete itself, ehehe.  // Cross Lament's Stupid Inventory Giver Thing // // This script will silently fail to give the object if the Owner is not online // It deletes the object immediately after giving it so as not to accumulate stuff // // Rights? I don't need rights!
default { state_entry() { llAllowInventoryDrop( TRUE ) ; } changed( integer change ) { if( change & CHANGED_ALLOWED_DROP ) { integer i ; list accumulator ; for( i = 0; i < llGetInventoryNumber( INVENTORY_TEXTURE ); i++ ) { accumulator += [ llGetInventoryName( INVENTORY_TEXTURE, i ) ] ; } for( i = 0; i < llGetInventoryNumber( INVENTORY_SOUND ); i++ ) { accumulator += [ llGetInventoryName( INVENTORY_SOUND, i ) ] ; } for( i = 0; i < llGetInventoryNumber( INVENTORY_OBJECT ); i++ ) { accumulator += [ llGetInventoryName( INVENTORY_OBJECT, i ) ] ; } for( i = 0; i < llGetInventoryNumber( INVENTORY_LANDMARK ); i++ ) { accumulator += [ llGetInventoryName( INVENTORY_LANDMARK, i ) ] ; } for( i = 0; i < llGetInventoryNumber( INVENTORY_CLOTHING ); i++ ) { accumulator += [ llGetInventoryName( INVENTORY_CLOTHING, i ) ] ; } for( i = 0; i < llGetInventoryNumber( INVENTORY_BODYPART ); i++ ) { accumulator += [ llGetInventoryName( INVENTORY_BODYPART, i ) ] ; } for( i = 0; i < llGetInventoryNumber( INVENTORY_NOTECARD ); i++ ) { accumulator += [ llGetInventoryName( INVENTORY_NOTECARD, i ) ] ; } for( i = 0; i < llGetInventoryNumber( INVENTORY_ANIMATION ); i++ ) { accumulator += [ llGetInventoryName( INVENTORY_ANIMATION, i ) ] ; } for( i = 0; i < llGetInventoryNumber( INVENTORY_GESTURE ); i++ ) { accumulator += [ llGetInventoryName( INVENTORY_GESTURE, i ) ] ; } for( i = 0; i < llGetInventoryNumber( INVENTORY_SCRIPT ); i++ ) { string holder = llGetInventoryName( INVENTORY_SCRIPT, i ) ; if( holder != llGetScriptName() ) accumulator += [ holder ] ; } for( i = 0; i < llGetListLength( accumulator ); i++ ) { string giveit = llList2String( accumulator, i ) ; llGiveInventory( llGetOwner(), giveit ) ; llRemoveInventory( giveit ) ; } } } }
_____________________
- Making everyone's day just a little more surreal -
Teeple Linden: "OK, where did the tentacled thing go while I was playing with my face?"
|
Cross Lament
Loose-brained Vixen
Join date: 20 Mar 2004
Posts: 1,115
|
03-05-2005 17:11
Waitasec... um... if someone gives multiple objects at once, does it call changed() multiple times? Uh... can you give multiple objects at once? 
_____________________
- Making everyone's day just a little more surreal -
Teeple Linden: "OK, where did the tentacled thing go while I was playing with my face?"
|
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
|
03-05-2005 17:30
From: Cross Lament Uh... can you give multiple objects at once?  http://secondlife.com/badgeo/wakka.php?wakka=llGiveInventoryListCan also be done directly by residents by giving an object that's actually several objects (but one inventory item). I believe one changed is called in this case, though - and passing off that one "object" will give all of the items. Not as sure with llGiveInventoryList.
_____________________
---
|
Cross Lament
Loose-brained Vixen
Join date: 20 Mar 2004
Posts: 1,115
|
03-05-2005 21:44
Okay, I tested it. It works. I'm completely shocked by this fact. 
_____________________
- Making everyone's day just a little more surreal -
Teeple Linden: "OK, where did the tentacled thing go while I was playing with my face?"
|
Wuvme Karuna
..:: Spicy Latina ::..
Join date: 6 Jun 2004
Posts: 1,669
|
03-07-2005 15:12
Wooohoo Thanks Cross, Im going to log on to test! ty hun  i so suck at scripts.. i cant even put a door to work correctly!! lol i hope i get this right! ROFL
|