Jump to content

bulk copy to inventory


Rikki Clip
 Share

You are about to reply to a thread that has been inactive for 2248 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

and that will remove the contents of those prims? like if i have a bunch of items with scripts i want to remove but save in my inventory, this command would do that at once without having to rez each one and open-copy to inventory- delete.

 

Link to comment
Share on other sites

this is what i have so far. 

 

{
touch_start(integer num_detected)
{
key owner = llGetOwner();
if (llDetectedKey(0) != owner)
return;

list inventoryItems;
integer inventoryNumber = llGetInventoryNumber(INVENTORY_ALL);

integer index;
for ( ; index < inventoryNumber; ++index )
{
string itemName = llGetInventoryName(INVENTORY_ALL, index);
if (Comer/Eat [G&S] != llGetScriptName() )
{
if (llGetInventoryPermMask(itemName, MASK_OWNER) & PERM_COPY)
{
inventoryItems += Comer/Eat [G&S];
}
else
{
llGiveInventory(owner, Comer/Eat [G&S]); // 2.0 seconds delay
}
}
}

if (inventoryItems != [] )
llGiveInventoryList(owner, llGetObjectName(), inventoryItems); // 3.0 seconds delay
}
}

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2248 days.

Please take a moment to consider if this thread is worth bumping.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...