Jump to content

childhoodbestfriend489

Resident
  • Posts

    68
  • Joined

  • Last visited

Everything posted by childhoodbestfriend489

  1. Couldn't connect two objects. I need two demo scripts for each objects.
  2. Is there any script in SecondLife which enables two objects to send and receive messages each other? What's that?
  3. And how to include permission in this wrong script: key teleportee; default { touch_start(integer num_detected) { 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 { llDialog(llDetectedKey(0), "\nPlease make a choice.",inventoryItems, 0); integer listenHandle = llListen(0, "", llDetectedKey(0), ""); // 3.0 seconds delay } } listen(integer channel, string name, key id, string message) { llTeleportAgent(teleportee, "message", <0.0, 0.0, 0.0>, <0.0, 0.0, 0.0>); } }
  4. wrong script : default { state_entry() { llSay(0, "Hello, Avatar!"); } touch_start(integer total_number) { list b = []; integer n = llGetInventoryNumber(INVENTORY_ALL); integer x; do { b += llGetInventoryName(INVENTORY_ALL,x); } while (++x <++n); llDialog(llDetectedKey(0), "Please choose one of the below options:",b,0); } }
  5. Two freebie script examples required: Don't want to put down inventory item names in llDialogue script but it will show all inventory list. Don't want to put down all button names in llDialogue script but it will show all lines of notecard in a list.
  6. The script isn't being reset if permission not accepted, rather tping to Region center. Near the end of script... key teleportee; default { state_entry() { llSay(0, "Touch to teleport"); } touch_start(integer total_num) { teleportee = llDetectedKey(0); llRequestPermissions(teleportee, PERMISSION_TELEPORT | PERMISSION_TRACK_CAMERA); } run_time_permissions(integer perm) { if(PERMISSION_TELEPORT & perm | PERMISSION_TRACK_CAMERA) { vector CamPos = llGetCameraPos(); llTeleportAgent(teleportee, "", CamPos, <0, 0, 0>); } else { llResetScript(); } } }
  7. How many coordinates will and object pass through for float tau 1?
  8. and how is the speed counted here? Is it Seconds to pass 1 meter?
  9. How to make it correct? default { state_entry() { llListen(6, "", llGetOwner(), ""); } listen( integer channel, string name, key id, string message ) { llSetStatus(STATUS_PHYSICS, TRUE); llMoveToTarget(message,100); } } How to make it correct?
  10. I need a script which enables objects to chat on public room with the help of a replika chatbot.
  11. May God bless you both. I am really very grateful to Rolig Loon and Fritigern Gothly. The code is now working as I expect. Thank you so very much Fritigern Gothly for your help. Thanks Rolig Loon,to help me to understand what Fritigern Gothly wanted to say. I probably wouldn't understand Fritigern Gothly properly without the explanation of Rolig Loon. It seems to be you both know this process of scripting. You both are expert scripter since you could answer this type of question. Thank you both so very much. :-)
  12. Imagine there is an object which has two objects in it's inventory named Pet and egg. The object will rez Pet and on rez Pet will get egg in it's inventory. I tried the bellow script but error occurred. Who wants to help me removing error editing and not changing the purpose? default { on_rez(integer start_param) { llListen(0,"","",""); llSleep(5); llRezObject("Pet", llGetPos() + <0,0,1>, ZERO_VECTOR, ZERO_ROTATION, 0); } listen(integer channel, string name, key id, string message) { if(message == "die") { llDie(); } } object_rez(key id) { llGiveInventory(id, llKey2Name(egg)); } }
  13. Cannot login and I got the solution of my problem. But I cannot work according to the instruction. I need help to understand.
  14. I am facing this problem now and created a ticket.
×
×
  • Create New...