Rikki Clip Posted August 2, 2016 Posted August 2, 2016 Is there a functionable way i can unbox multiple prims at once to inventory automaticly?
Rolig Loon Posted August 2, 2016 Posted August 2, 2016 Certainly. That's what llGiveInventoryList does.
Rikki Clip Posted August 3, 2016 Author Posted August 3, 2016 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.
Rikki Clip Posted August 3, 2016 Author Posted August 3, 2016 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 } }
Rolig Loon Posted August 3, 2016 Posted August 3, 2016 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.
Recommended Posts
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