Jump to content

Oddball Otoole

Resident
  • Posts

    13
  • Joined

  • Last visited

Everything posted by Oddball Otoole

  1. Why not combining both scripts if this is needed for a street lamp or something? :smileyhappy: float sun_height;vector sun_position;default{ state_entry() { llSetTimerEvent(150); } timer() { sun_position = llGetSunDirection(); sun_height = sun_position.z; if(sun_height < 0.0) { llSetPrimitiveParams([PRIM_POINT_LIGHT,TRUE,<1.0, 1.0, 1.0>,1.0,15,0.750, PRIM_GLOW, ALL_SIDES, 0.4]); } else { llSetPrimitiveParams([PRIM_POINT_LIGHT,FALSE,<1.0, 1.0, 1.0>,1.0,15,0.750, PRIM_GLOW, ALL_SIDES, 0.0]); } }} Or add a random timer to it to simulate a broken flourecent light...:smileysurprised: float glow;float time;//-------------------------------------// Main programdefault{ state_entry() { llSetColor(<1.0, 1.0, 1.0>, ALL_SIDES); state begin; }}//-------------------------------------// Begin statestate begin { state_entry() { glow = (integer) llRound(llFrand(1)); // Random on or off time = (float) llFrand(2); // Random wait time llSetPrimitiveParams([PRIM_POINT_LIGHT, TRUE, <1.0, 1.0, 1.0>, glow, 5.0, 0.5, PRIM_GLOW, ALL_SIDES, glow]); // Set prim light on/of state wait; // Go to the Wait State } }//-------------------------------------// Wait statestate wait { state_entry() { llSetTimerEvent(time); //Wait } timer() { llSetTimerEvent(0.0); //remove the timer state begin; // Go back to the Begin State } } Have fun!
  2. I miss his friendly greetings n stuff. Torley was my 'human' connection with LL back then, now LL is just a tiny 3D thing with some flickr folks who give us a link to some 'art' on their website once or twice a day. I really don't care about screenshots of folks I never heard off, I 'm not interested what the CEO has to say, Rolling restarts are not the end of the world, server roll-backs are nothing new, new features are way past due, etc, etc... I just want Torley being ADHD-ing all over my @ss! :) Odd
  3. I had the same issue, but for some reason it resolved itself. Even went into live chat, filed a support ticket etc, but I could not upload meshes. I logged out, went to bed, woke up, went to work, and later on the day I logged in and could upload meshes.
  4. Try this: http://www.free-lsl-scripts.com/freescripts.plx?ID=1601
  5. YAY! It works. Thanks for the advice. I really appreciate it!. Oddy
  6. Hello! As said in the subject of this message, I'm a non (very non)-scripter. But willing to learn:) I'm trying to combine some scripts (a menu driven script that gives folks who touch a prims, a menu with two (2) choices: Receive a notecard from prims inventory, and option #2: open a website). I made this: // Basic dialog script integer CHANNEL = 42; // dialog channel list MENU_MAIN = ["Notecard", "Website"]; // the main menu default { state_entry() { llListen(CHANNEL, "", NULL_KEY, ""); // listen for dialog answers (from multiple users) // llSetText("Dialog Test",<1,1,1>,1.0); } touch_start(integer total_number) { llDialog(llDetectedKey(0), "What do you want to do?", MENU_MAIN, CHANNEL); // present dialog on click } listen(integer channel, string name, key id, string message) { if (message == "Notecard") { llGiveInventory(llDetectedKey(0), llGetInventoryName(INVENTORY_NOTECARD, 0)); } else if (message == "Website") { llLoadURL(llDetectedKey(0), "Oddballs Second Life Forum", "http://www.oddball.be"); } else if (message == "...Back") { llDialog(id, "Select option", MENU_MAIN, CHANNEL); // present main menu on request to go back } } } It compiles ok, no script errors, if I touch the prim, a menu appears (YAY), then things go wrong.... If I click on the 'Notecard' button, nothing happens. If I click on the 'Website' button, I receive a script error: Object: llLoadURL - cannot find avatar. What am I doing wrong here? Greetz, Oddy
  7. We have a museum called 'The Guitar Museum.' At the Guitar Museum, you'll learn about some of the world's most famous real life and Second Life guitar players. Walk around, find your favorite guitar player and discover more about each artist. We have live gigs and some of the hottest DJ's on a regular base. If we have no gig or soemthing, you can enjoy some of the best SL musicians via the land stream. There is a 'game room' where you can play some games or go on a coin hunt. All are welcome!! See you there, Oddy
×
×
  • Create New...