Jump to content

Search the Community

Showing results for tags 'script'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • People Forum
    • Your Avatar
    • Make Friends
    • Lifestyles and Relationships
    • Role Play
    • General Discussion Forum
    • Forums Feedback
    • Missed Connections
    • Second Life Education
  • Places and Events Forum
    • Favorite Destinations
    • Upcoming Events and Activities
    • Games in Second Life
  • Official Contests & Events
    • Leap Into Love Snapshot Contest
  • Creation Forum
    • Fashion
    • Art, Music and Photography
    • Animation Forum
    • Bakes on Mesh
    • Environmental Enhancement Project
    • Machinima Forum
    • Building and Texturing Forum
    • Mesh
    • LSL Scripting
    • LSL Library
    • Experience Tools Forum
    • Sansar for Second Life Residents
  • Technology Forum
    • Second Life Server
    • Second Life Viewer
    • Second Life Web
    • General Second Life Tech Discussion
  • Commerce Forum
    • Merchants
    • Inworld Employment
    • Wanted
  • Land Forum
    • General Discussion
    • Mainland
    • Linden Homes
    • Regions for Sale: Full Private Island
    • Region for Rent: Full Private Island
    • Regions for Sale: Homesteads
    • Region Rentals: Homestead
    • Parcels for Sale: Mainland
    • Parcels for Rent: Mainland
    • Wanted: Full Private Island
    • Wanted: Homesteads
    • Wanted: Mainland
  • International Forum
    • Deutsches Forum
    • Foro en español
    • Forum in italiano
    • Forum français
    • 日本語フォーラム
    • 한국어 포럼
    • Fórum em português
    • Forum polskie
    • المنتدى العربي
    • Türkçe Forum
    • Форум по-русски
  • Adult Content Forum
    • Highlight Upcoming Events
    • General Discussion
    • General Announcements
  • Answers
    • Abuse and Griefing
    • Account
    • Avatar
    • Creation
    • Inventory
    • Getting Started
    • Controls
    • Land
    • Linden Dollars (L$)
    • Shopping
    • Technical
    • Viewers
    • Everything Else
    • International Answers

Blogs

  • Commerce
  • Featured News
  • Inworld
  • Tools and Technology
  • Tips and Tricks
  • Land
  • Community News

Categories

  • English
  • Deutsch
  • Français
  • Español
  • Português
  • 日本語
  • Italiano
  • Pусский
  • Türkçe

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me

Found 255 results

  1. Hello! Please help to combine these two scripts. I am trying to make a script for a linked door without a "hinge". I need to add the closing / opening sensor to the FIRST SCRIPT. Thank's for any help! FIRST SCRIPT (please help to add sensor here) // 2017 Maschinenwerk, Corp. // All Rights Reserved. /* * Define the rotation in degrees, using the door prim's local coordinate * system */ vector ROTATION = <0.0, 0.0, 80.0>; /* * Define the position of the virtual hinge; usually this is half the door * prim's width and thickness */ vector HINGE_POSITION = <-0.8, 0.05, 0.0>; /* * Define how fast the door opens, in seconds */ float SECONDS_TO_ROTATE = 1.0; /* * Define after how much time the door should close automatically, in seconds; * set to 0.0 to disable autolmatic closing */ float AUTO_CLOSE_TIME = 10.0; /* * Define a sound that plays when the door starts to open; set to NULL_KEY * for no sound. */ key SOUND_ON_OPEN = "e5e01091-9c1f-4f8c-8486-46d560ff664f"; /* * Define a sound that plays when the door has closed; set to NULL_KEY * for no sound. */ key SOUND_ON_CLOSE = "88d13f1f-85a8-49da-99f7-6fa2781b2229"; /* * Define the volume of the opening and closing sounds */ float SOUND_VOLUME = 1.0; /* * NORMALLY, THERE IS NO NEED TO CHANGE ANYTHING BELOW THIS COMMENT. IF YOU DO * YOU RISK BREAKING IT. */ integer gClosed; // Door state: TRUE = closed, FALSE = opened rotation gRotationClosed; // Initial rotation of the door (closed) vector gPositionClosed; // Initial position of the door (closed) vector gRotationPerSecond; // The amount to rotate each second doOpenOrClose() { /* * Only perform the rotation if the door isn't root or unlinked */ integer linkNumber = llGetLinkNumber(); if (linkNumber < 2) return; if (gClosed) { /* * Store the initial rotation and position so we can return to it. * * Rotating back purely by calculations can in the longer term cause the door * to be positioned incorrectly because of precision errors * * We determine this everytime before the door is being opened in case it was * moved, assuming the door was closed whilst being manipulated. */ gPositionClosed = llGetLocalPos(); gRotationClosed = llGetLocalRot(); /* * Play the opening sound and preload the closing sound */ if (SOUND_ON_OPEN) llPlaySound(SOUND_ON_OPEN, SOUND_VOLUME); } vector hingePosition = gPositionClosed + HINGE_POSITION * gRotationClosed; /* * Reset the timer and start moving */ llResetTime(); while (llGetTime() < SECONDS_TO_ROTATE) { float time = llGetTime(); if (! gClosed) /* * Invert the timer for closing direction */ time = SECONDS_TO_ROTATE - time; rotation rotationThisStep = llEuler2Rot(gRotationPerSecond * time) * gRotationClosed; vector positionThisStep = hingePosition - HINGE_POSITION * rotationThisStep; llSetLinkPrimitiveParamsFast(linkNumber, [PRIM_ROT_LOCAL, rotationThisStep, PRIM_POS_LOCAL, positionThisStep]); } /* * Set the new state */ gClosed = !gClosed; if (gClosed) { /* * Finalize the closing movement */ llSetLinkPrimitiveParamsFast(linkNumber, [PRIM_ROT_LOCAL, gRotationClosed, PRIM_POS_LOCAL, gPositionClosed]); /* * Play the closing sound and preload the opening sound */ if (SOUND_ON_CLOSE) llPlaySound(SOUND_ON_CLOSE, SOUND_VOLUME); if (SOUND_ON_OPEN) llPreloadSound(SOUND_ON_OPEN); } else { /* * Finalize the opening movement */ rotation rotationOpened = llEuler2Rot(ROTATION * DEG_TO_RAD) * gRotationClosed; vector positionOpened = hingePosition - HINGE_POSITION * rotationOpened; llSetLinkPrimitiveParamsFast(linkNumber, [PRIM_ROT_LOCAL, rotationOpened, PRIM_POS_LOCAL, positionOpened]); /* * Preload the closing sound */ if (SOUND_ON_CLOSE) llPreloadSound(SOUND_ON_CLOSE); /* * Set a timer to automatically close */ llSetTimerEvent(AUTO_CLOSE_TIME); } } default { state_entry() { /* * Assume the door is closed when the script is reset */ gClosed = TRUE; /* * These doesn't change unless the script is changed, calculate them once */ gRotationPerSecond = (ROTATION * DEG_TO_RAD / SECONDS_TO_ROTATE); /* * Preload the opening sound */ if (SOUND_ON_OPEN) llPreloadSound(SOUND_ON_OPEN); } touch_start(integer agentCount) { doOpenOrClose(); } timer() { llSetTimerEvent(0.0); /* * Close the door if it isn't already closed */ if (! gClosed) doOpenOrClose(); } } SECOND SCRIPT (sensor is here) float TIMER_CLOSE = 5.0; integer DIRECTION = -1; // direction door opens in. Either 1 (outwards) or -1 (inwards); integer DOOR_OPEN = 1; integer DOOR_CLOSE = 2; vector originalPos; door(integer what) { rotation rot; rotation delta; vector eul; llSetTimerEvent(0); if (what == DOOR_OPEN) { // llTriggerSound("doorOpen", 1); eul = < 0, 0, 90 * DIRECTION > ; //90 degrees around the z-axis, in Euler form } else if (what == DOOR_CLOSE) { // llTriggerSound("doorClose", 1); eul = < 0, 0, 90 * -DIRECTION > ; //90 degrees around the z-axis, in Euler form } eul *= DEG_TO_RAD; //convert to radians rotation rot = llGetRot(); delta = llEuler2Rot(eul); rot = delta * rot; llSetRot(rot); } default { on_rez(integer start_param) { llResetScript(); } state_entry() { originalPos = llGetPos(); llSensorRepeat("", "", AGENT, 5, PI, 1); } sensor(integer num_detected) { door(DOOR_OPEN); state open_state; } moving_end() { originalPos = llGetPos(); } } state open_state { state_entry() { llSensorRepeat("", "", AGENT, 5, PI, 1); } no_sensor() { door(DOOR_CLOSE); llSetPos(originalPos); state default; } sensor(integer num_detected) {} moving_start() { door(DOOR_CLOSE); state default; } }
  2. Why particles or hovertext remain even if script deleted?
  3. Hello folks, As the title say, i'm looking to be hired as scripter. I know well the Linden Scripting Language (LSL) and many others (especially web languages like PHP, HTML5, ASP.NET with MVC, JavaScript, NodeJS, Angular). If you need, i can also create projects in: C, C++, C#, Delphi, Perl, Python... I have many customers in SL (since approx 3 years) for custom full permissions LSL scripts mainly. I'm available for any small or mediums projects. I speak mainly French but i'm able to tchat in English (No english voice). I'm also good for security and hacking if you need these types of skills. If you are interested to work together, you can contact me directly in-world (UnderFawkes Resident).
  4. Всем привет. Некоторые пользователи тратят деньги или же часами ищут нужные скрипты для создания партиклей. На самом же деле, в клиенте Firestorm имеется специальный редактор, который облегчит вам процесс работы со скриптами.
  5. I am looking for a free or cheap script that will remember the sequence in which linked prims are touched. The reason I need this, is so that I can make a musical instrument that doesn't include songs, but the ability to create your own. There would be a dialog menu that pops up when you click the root prim. It asks you if you would like to record, or record with a loop, And if you choose option 1 you touch all the strings in the order you want them to play in, hit finish in the dialog menu, and it will play once. If you chose option 2, then the recorded sequence will play in a loop until you hit "stop" on the dialog menu. An extra thing I would like is the option to save your favorite sequences into a memory bank that has 10 slots. So you can easily switch to different sequences, allowing you to make a completely custom song. [Edit]: I would also like for sequences to be stored in notecards, along with a variable that sets the length of each note, so that the user can determine how long each note in their sequence will be. Defaulted to a whole note. This is for a prim object in which each string is a separate prim, that contains its own sound in its contents. So there needs to be communication between the linked prims and the root prim in order for this to work.. I am willing to pay for a script that does its job well.
  6. Hi there, I'm looking for a scripter to make an advanced script for an new idea that will create more simplicity for customers, which of course I will not share here :) Since most scripters are working by the hour and nobody can tell me how long it will take, I'm looking for a fixed price for the end product and/or a share in the profits. The script ownership must be exclusive, so no reselling afterwards. I'm used to working with designers/programmers RL and have completed the user story, so the programming will have a clear goal and set end result. Please IM me when you're able and available to take on this job. Thanks in advance, Truelove Infinity
  7. More specifically.... I can't figure out for the life of me what's causing this. I've tried taking everything off aside from what I physically can't remove aaand: This is driving me crazy. Anyone know what to do about this? It only happens when I try to move any direction (turn left, turn right, move forward/back etc). If I stay still, nothing happens. Crouching or jumping doesn't seem to affect it either.
  8. A day and a half ago I logged into SL and was trying to sit on something at my sim, but was unable to. I did not get an error i did not get something saying unable to sit. As soon as my avatar or anyone elses would sit, they would get kicked off the item without prompt. About 10 other people besides myself have looked everywhere for anything off or strange. The only time people can sit is when i disable scripts or when my avatar is not on the sim. I have submitted a ticket to linden labs but they are taking a while and it's making me really anxious. I'm looking to see if anyone has had any experience like this or has any answers because I am completely confused. I have even gone as far as to detached everything from my avatar and it makes no difference.
  9. Hello! I have a question. Can a single particle system use different textures one by one? or does each texture need a separate system? if it can, please tell me how to implement it. Thanks for any help!
  10. hey, im trying to make a script to check ages of people coming into my hangout, (rl ages not sl) but when i script LLaddtobanlist it doesnt, i can eject people but not add them to ban list, i was wondering if anyone could help as i also wanted to expand it to only ask people once,any sugestions? the script goes as followed string name; string detectedName; string dialogInfo = "\nWelcome to the little things hangout please answer the following questions and read the rules. are you ages 18 or over in real life?"; key id; integer dialogChannel; integer listenHandle; list buttons = ["-", "yes", "no", "no comment"]; default { state_entry() { dialogChannel = -1 - (integer)("0x" + llGetSubString( (string)llGetKey(), -7, -1) ); } collision_start(integer num_detected) { id = llDetectedKey(0); name = llKey2Name(id); llListenRemove(listenHandle); listenHandle = llListen(dialogChannel, "", id, ""); llDialog(id, dialogInfo, buttons, dialogChannel); llSetTimerEvent(180.0); // Here we set a time limit for responses detectedName = llDetectedName(0); dialogChannel = -1 - (integer)("0x" + llGetSubString( (string)llGetKey(), -7, -1) ); } listen(integer channel, string name, key id, string message) { if (message == "-") { llDialog(id, dialogInfo, buttons, dialogChannel); return; } llListenRemove(listenHandle); // stop timer since the menu was clicked llSetTimerEvent(0); if (message == "yes") { llSay(0, "Thank you please use the teleporter to explore the hangout."); } else if (message == "no") { llSay(0, "I'm sorry this hangout is for over 18 years old only, you will now be teleported home any issue with this please contact the hangout staff."); llAddToLandBanList(id,0.0); llEjectFromLand(id); } else { llSay(0, "I'm afraid we need to know the answer to this question to allow acess you will now be ejected feel free to return to answer this question again."); llAddToLandBanList(id,0.1); llEjectFromLand(id); } } timer() { // stop timer llSetTimerEvent(0); llListenRemove(listenHandle); llSay(0, "Sorry, we need a answer to this question we understand that you may have been afk at the time, unfortunatly you will be temp banned for one hour, any issue please contact [secondlife:///app/agent/47f37397-9596-41cb-8713-96c36ea2b685/about sophie]- with any issues. "); llAddToLandBanList(id,0.1); } }
  11. Hello, please help with the script. I make a speedometer and a compass and I decided to make them square planes. Script uses llSetLinkPrimitiveParamsFast. I got this texture repeats on corners. I decided to reduce the scale a little and leave a blank space on the sides so that when rotating at the corners the texture does not repeat. But I need to set the zoom. What do I need to add to this line to make it happen? Thanks a lot for any help. if(COMPASS_PRIM) llSetLinkPrimitiveParamsFast(COMPASS_PRIM, [ PRIM_TEXTURE, 1, "32865340-5893-3e24-c4a0-b511d39246c3", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, PI_BY_TWO]); ..................................................................... llSetLinkPrimitiveParamsFast(COMPASS_PRIM, [PRIM_TEXTURE, 0, "c6a241dd-709a-bf10-e7d0-b2bf49930d2a", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, our_direction_angle_rad * -1]);
  12. since its halloween i was wondering you can actualy hide your nametag from others without hiding your avatar that i see quite common any idea's how this can be done ?
  13. Hello! Help please create a script of a police siren. So far I have managed to create such a script, but for some reason it does not work. please tell me where did i make a mistake? It should turn on / off by click and blink blue / red lights. the sound is excellent, but there is a problem with the light. And when i turn it off, it gives an error : llSetPrimitiveParams error running rule #2 (PRIM_POINT_LIGHT): arg #2 is missing. Thanks for any help! //* script_starts_here // integer run; default { touch_start(integer total_number) { if(llDetectedKey(0)==llGetOwner()) { if(run) { run = FALSE; llStopSound(); llSetLinkPrimitiveParamsFast(llGetLinkNumber(),[PRIM_GLOW,ALL_SIDES,llFrand(0.10),PRIM_POINT_LIGHT,FALSE ]); } else { run = TRUE; llLoopSound("Siren", 1.0); { llSetTimerEvent(0.01); } { llSetLinkPrimitiveParamsFast(llGetLinkNumber(),[PRIM_GLOW,ALL_SIDES,llFrand(0.10),PRIM_POINT_LIGHT,TRUE, <1.0,0.0,0.0> // START COLOR ,1.0 // START INTENSITTY ,10.0 // START RADIUS ,0.2 // START FALLOFF ]); llSleep(llFrand(0.3)); llSetLinkPrimitiveParamsFast(llGetLinkNumber(),[PRIM_GLOW,ALL_SIDES,0.0,PRIM_POINT_LIGHT,TRUE, <0.0,0.0,1.0> // END COLOR ,1.0 // END INTENSITTY ,10.0 // END RADIUS ,0.2 // END FALLOFF ]); llSleep(llFrand(0.3)); } } } } } //* script_ends_here
  14. I am trying to make an object usable by anybody, but only one person at a time. I've seen sales boards that will go to a busy more while one person makes a purchase. How do I set up this busy mode?
  15. Me and a friend were going to turn her store into a haunted house for Halloween. I"ve made a hud based system using experience permissions, in the past that worked. Now it seems like the first time a trap is tripped it works fine. then the second time a trap tries to animate or move the avatar i get permission not granted errors. I do have the experience set as key and as parcel properties. All scripts are under my experience, All items are in the landowners rez group the experience is one i created a while ago, then applied to my friends sim, i did use her rez group and store landmark for the edit properties of my experience,
  16. Hello! Please help to create loop single sound script with volume control via pop-up menu. So far I managed to create this script, but maybe there is the way to simplify it? I will be grateful for any help! Thank you! list MENU_MAIN = ["100%VOL", "50%VOL" , "25%VOL" , "OFF"]; //up to 12 in list string sound = "a78fd32e-0179-437b-9a39-6b24916aa433"; integer menu_handler; integer menu_channel; menu(key user,string title,list buttons) { llListenRemove(menu_handler); //BugFix 5/2008 menu_channel = (integer)(llFrand(99999.0) * -1); menu_handler = llListen(menu_channel,"","",""); llDialog(user,title,buttons,menu_channel); llSetTimerEvent(30.0); //how long to wait for user to press a button before giving up and closing listen } default { state_entry() { //nada } touch_start(integer total_number) { menu(llDetectedKey(0), "\nText for Menu.", MENU_MAIN); } listen(integer channel,string name,key id,string message) { if (channel == menu_channel) { llListenRemove(menu_handler); //close listen llSetTimerEvent(0); //stop timeout timer if (message == "100%VOL") { llStopSound(); llLoopSound(sound, 1.0); } else if (message == "50%VOL") { llStopSound(); llLoopSound(sound, 0.5); } else if (message == "25%VOL") { llStopSound(); llLoopSound(sound, 0.25); } else if (message == "OFF") { llStopSound(); } //else if (message == "Button") //{ //do something //} } } timer() //VERY IMPORTANT menu timeout { llListenRemove(menu_handler); //close listen llSetTimerEvent(0); //stop timeout timer } }
  17. Hello! Help please create an effect script for the old generator (link set). everything should happen in a sequence: pressing the on/off button - prim 1 lights up a lamp - prim 2 >done starter sound - one time ..........................remains??? sound generator - loop >done goes smoke - particles - from prim 3 >done pressing the on/off button - prim 1 smoke does not go the generator's sound stops >done starter stalls .......................................... remains??? the light goes out - prim 2 while I was able to create such a script: //* script_starts_here // integer run; integer PARTICLES_PRIM = 3; default { touch_start(integer total_number) { if(llDetectedKey(0)==llGetOwner()) { if(run) { run = FALSE; llLinkParticleSystem(PARTICLES_PRIM,[]); llStopSound(); llSetLinkPrimitiveParamsFast(LINK_SET, [ PRIM_FULLBRIGHT, ALL_SIDES, FALSE]); } else { run = TRUE; llLinkParticleSystem(PARTICLES_PRIM,[PSYS_PART_MAX_AGE,1.46, PSYS_PART_FLAGS, 263, PSYS_PART_START_COLOR, <0.99, 0.74, 0.73>, PSYS_PART_END_COLOR, <0.79, 0.65, 0.20>, PSYS_PART_START_SCALE,<0.75, 0.39, 0.00>, PSYS_PART_END_SCALE,<1.00, 0.88, 0.00>, PSYS_SRC_PATTERN, 2, PSYS_SRC_BURST_RATE,0.00, PSYS_SRC_BURST_PART_COUNT,4, PSYS_SRC_BURST_RADIUS,0.26, PSYS_SRC_BURST_SPEED_MIN,0.04, PSYS_SRC_BURST_SPEED_MAX,0.93, PSYS_SRC_ANGLE_BEGIN, 1.65, PSYS_SRC_ANGLE_END, 0.00, PSYS_SRC_MAX_AGE, 0.0, PSYS_SRC_TEXTURE, "74e8631c-33a9-bc1a-03d3-ede886272a21", PSYS_PART_START_ALPHA, 0.41, PSYS_PART_END_ALPHA, 0.00, PSYS_SRC_ACCEL, <0.00, 0.00, -0.92>]); llLoopSound("idle", 1.0); llSetLinkPrimitiveParamsFast(2, [ PRIM_FULLBRIGHT, 0, TRUE]); } } } } //* script_ends_here Ok I managed to make it so that the particles were coming from a separate prim. remains to understand how to insert the sound of a starter and a stalling generator. and the main thing is not clear why it turns on when you click on any place of the generator. how to make it work only when you click the on/off button? I will definitely continue to try to do everything myself, but if there are any tips I will be very grateful! Thanks for any help!
  18. I am looking for an experienced, fast and professional scripter to help me script a simple mesh gumball machine. We want a light show mechanism built into the machine as well as an animated ball spinning down the machine and out of the prize door. Please send a notecard with your name and best quote for this job to resident : Eilfie Sugarplum. Thanks!
  19. This movie is Connecting between Second life world and real world I made this item. Would you visit my place ? You can show this item. bye http://maps.secondlife.com/secondlife/Pride/87/231/22
  20. so me and a friend have started making a HUD for puppy sounds, eg woof, growl ect. and as the project came along we've realized that i (myself) need a little help making the script as we would want the buttons to talk back to the root prim so that the hud sounds could be turned on and off, a choice to change name of person wearing the hud, and read setting notcard. i know how to do the parts but making them comunicate together has me confused. any help would be greatly helpful, even if its just the name to what im thinking of as so far the only lllisten ive found is to local chat for the owner to say a phrase.
  21. It would be useful to have an open source benchmark for scripts in SL. Something that could be rezzed / worn, run through a few tests and then give results that can be meaningfully compared over time and to other regions. It must be able to give a consistent result over sequential runs in the same location assuming nothing else changes. Is this even possible? What should be tested and how? What results should be generated? What should be done with the data? Thoughts, ideas, code to test ?
  22. I've found some people, gotten some numbers, etc. I'll be see what I can do. Thanks everyone.
  23. Hello i am looking for someone to create a few scripts for me as well as a few small builds for a business i'm wanting to create. If intetested plz plz comment below or send me a dm r notecard inworld @mzcdropz. Plz and Thank U.
  24. Hi! Another user was so kind to make a bilingual vocabulary memory game for me once: Two matching words in the respective two languages must be matched by clicking them. When the two words match, one of the two is moved on top of the other one. The game is here: https://forums.osgrid.org/viewtopic.php?f=5&t=6116 On the basis of that script I think it should be possible to make a jiggsaw puzzle. It can already be done through the above mentioned script: One piece is the actual puzzle piece, with a texture of a piece from a photo /text /painting etc. The other piece lies on the ground as a background for that picture, with no texture. Several of these background pieces lie next to each other on the ground. The script of each background piece matches one of the puzzle pieces. When the two to matching ones are clicked, the puzzle piece is moved onto its corresponding background piece, and thus, it is in the correct place. This is repeated with all other puzzle pieces until the puzzle is finished. The problem is the following: This makes it possible to randomly click pieces together, without thinking. What I would like to have is this: Each puzzle piece can be matched with each background piece and no correct solution is given in the script. When a piece is clicked a second time, it moves back to its original position. This means the player must solve the puzzle through looking and thinking, like a normal jigsaw puzzle. Do you maybe have any ideas for this? There might also be completely different approaches for this. Thank you very much in advance!
  25. Hello! Need a script for three-button HUD to make one of the objects in the linkset visible. Reward 1000 Ls.
×
×
  • Create New...