Jump to content

pixstudio

Resident
  • Posts

    30
  • Joined

  • Last visited

Everything posted by pixstudio

  1. i retrive the 2 uuid of obj a and obj b , but when i try to send the item x the second item doenst recive item
  2. this is my original script that work for one item, (i'm not a good scripter ) ,but if i have 2 rezzed item ,the script still give me error integer channel=-00001; string Pass_Message = "533af431-4bac-803f-e9b2-95b0b3381da7"; delete_all_other_contents() { string thisScript = llGetScriptName(); string inventoryItemName; integer index = llGetInventoryNumber(INVENTORY_ALL); while (index) { --index; // (faster than index--;) inventoryItemName = llGetInventoryName(INVENTORY_ALL, index); if (inventoryItemName != thisScript) llRemoveInventory(inventoryItemName); } } default { on_rez(integer num){ llListen(channel,"",NULL_KEY,""); } listen(integer channel, string name, key id, string message) { llSetTimerEvent(0.0); Pass_Message = message; llSetTimerEvent(0.1); } state_entry() { llListen(channel,"",NULL_KEY,""); llAllowInventoryDrop(TRUE); } touch_start(integer num_detected) { float j = (float)Pass_Message; string thisScript = llGetScriptName(); list inventoryItems; integer inventoryNumber = llGetInventoryNumber(INVENTORY_ALL); integer index; for ( ; index < inventoryNumber; ++index ) { string itemName = llGetInventoryName(INVENTORY_ALL, index); if (itemName != thisScript) { if (llGetInventoryPermMask(itemName, MASK_OWNER) & PERM_COPY) { inventoryItems += itemName; } else { llSay(0, "Unable to copy the item named '" + itemName + "'."); } } } if (inventoryItems == [] ) { llSay(0, "No copiable items found, sorry."); } else { llGiveInventoryList(Pass_Message, llGetObjectName(), inventoryItems); // 3.0 seconds delay delete_all_other_contents(); } } }
  3. tnx Rolig ,but i need to send to every 2 item rezzed ( a, copy_a ) in all the way i used , LListent , of llsensor ,the final result is still the same "Unable to give inventory list: Cannot find destination"
  4. good day someone can give me a hint for solving my problem i have a box with allowdrop active trought function i want to move item dropped inside the box to other item rezzed on floor,now the problem if i have only one item rezzed the script work without problem, when i use the function for having a spare copy of the item , the script give to me the error unable to find destination 1° object uuid is obtained trought llisten string a 2° object uuid using sensor ( i used llsay for check if the script work,and llsay give to me the correct uuid of the item)
×
×
  • Create New...