Jump to content
You are about to reply to a thread that has been inactive for 3044 days.

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

Recommended Posts

Posted

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.

 

Posted

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
}
}

Posted

It will if you also loop through your inventory and use llRemoveInventory to delete the objects once you have sent them.  Study the LSL wiki for the syntax and usage of both functions and for examples.

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...