Jump to content

YaniiMarie

Resident
  • Posts

    35
  • Joined

  • Last visited

Reputation

86 Excellent

Retained

  • Member Title
    Living life or whateva *hair flip*

Recent Profile Visitors

191 profile views
  1. Okay, so completely moved a bunch of stuff around after your fixes didn't work 🙃 I wish there was a way to post the code shorter or in a spoiler. But I'll drop the new bong script and lighter script here. Now the lighter disappears but way too soon lol. I know it has something to do with whatever's happening with my attach event or maybe the bongCheck() but I just can't nail it. (Also might have some unnecessary/unused integers and strings sitting at the beginning that I need to nix, I'll get around to it lol) >> Bong Script: >> Lighter Script:
  2. Smh, I always forget about using "==". I'd done this bit before, but only "=". I'll give this a shot. Thank you for this. I'm always botching my variables, gotta remember to keep the ones within the function more general so I'm not making the script all screwy. I'll give this a shot, too, and let ya know how it goes. This was my attempt at piecing various parts of the wiki and other thread answers together lol
  3. And the bong script for anyone interested: //Regular animation script //Animate on attach //Add lighter temp attachment from bong inventory integer channel = 525600; string msg; string detect = "Still here"; string detach = "Bye, bye!"; //Animation names string idle = "LoopTest2"; string hit = "HitBong2"; float time = 3.0; integer counter; key id; string lighter; integer attach_point = ATTACH_LHAND; integer perms; //Animation functions idleHold() { llStartAnimation(idle); } bongHit() { llStartAnimation(hit); } /////// default { state_entry() { id = llGetOwner(); //Temp lighter lighter = llGetInventoryName(INVENTORY_OBJECT,0); perms = PERMISSION_TRIGGER_ANIMATION | PERMISSION_OVERRIDE_ANIMATIONS; llRequestPermissions(id, perms); llListen(channel, lighter, "", ""); } on_rez(integer attach_point) { id = llGetOwner(); if(id) { llRequestPermissions(id, perms); } else { llResetScript(); } } run_time_permissions(integer perms) { if(!perms) { llRequestPermissions(id, perms); } else { llSetTimerEvent(3.0); } } attach(key id) { id = llGetOwner(); vector position = llGetPos() + <0,0,1>; if(llGetAttached()) { llRezObject(lighter, position, ZERO_VECTOR, ZERO_ROTATION, OBJECT_TEMP_ON_REZ); llStartAnimation(idle); } else { llSay(channel, "Detached"); } } object_rez(key obj) { obj = (key)lighter; //save lighter key, wait for listen event } listen(integer channel, string name, key id, string message) { if(id == (key)lighter && message == "Spark up"); { llSetTimerEvent(time); } } timer() { counter++; if(counter >= 10) { counter = 0; llSetTimerEvent(time); } if(counter == 8) { bongHit(); } if(counter == 6) { idleHold(); } if(counter == 2) { bongHit(); } if(counter == 0) { idleHold(); } } changed(integer mask) { //Triggered when the object containing this script changes owner. if(mask & CHANGED_OWNER) { llResetScript(); // This will ensure the script listens to the new owner, and doesn't continue listening to the creator. } } }
  4. Here's the lighter code: //All Listen-related types integer channel = -525600; //chat channel for bong key bongKey; //listen for bong in findBongName key lightKey; //detect key for lighter, say to bong? string message; //whatever key the bong sends over as a string string lightName; //llGetObjectName() string bongName; //actual bong attachment name //integers integer param; integer perms; integer attachLight = ATTACH_RHAND; //attach lighter integer counter; //misc list find; float time = 3.0; ///////custom events findBongName() { // Listen for messages on the shared channel, from only the rezzer. llListen(channel, "", bongKey, ""); } bongCheck() { key id = llGetOwner(); list invo = llGetAttachedList(id); list bong = [OBJECT_REZZER_KEY]; if(llListFindList(invo, bong)) { ; } else { llDetachFromAvatar(); } } ///////main script default { state_entry() { llSay(0, "Hello, Avatar!"); key id = llDetectedKey(0); //who's holding it key own = llGetOwner(); //who owns it lightName = llGetObjectName(); //remove if it breaks// perms = PERMISSION_ATTACH; llListen(channel, "", bongKey, message); } on_rez(integer param) { key id = llGetOwner(); //who owns it list find = llGetAttachedList(id); key bongKey = (string)OBJECT_REZZER_KEY; if(llListFindList(find,[OBJECT_REZZER_KEY])) { llRequestPermissions(id,perms); } else { llDetachFromAvatar(); } } run_time_permissions(integer perms) { key id = llGetOwner(); if(id) { if(perms == perms) { llAttachToAvatarTemp(attachLight); } } else if(!llGetAttached()) { llDetachFromAvatar(); llDie(); } } attach(key id) { lightKey = llGetKey(); llRequestPermissions(id, perms); llSay(channel, "Spark up"); llSetTimerEvent(time); if(llGetAttached()) { findBongName(); //listen for bongkey } else if(id == NULL_KEY) { llDie(); } } //OBJECT_REZZER_KEY need to use somewhere, don't forget listen(integer channel, string name, key id, string message) { find = llGetAttachedList(id); // Get the key of the object which rezzed this object. list details = llGetObjectDetails(llGetKey(), [OBJECT_REZZER_KEY]); bongKey = llList2Key(details, 0); /// if(id == bongKey) { bongName = llKey2Name(bongKey); if((counter >= 6) && llListFindList(find, [OBJECT_REZZER_KEY])) { counter = 0; llSetTimerEvent(time); } else if(message == "Detached") { llDetachFromAvatar(); } } else if(channel && (name == bongName)) { if(message == "Detached") { llDetachFromAvatar(); } } } timer() { counter++; if(counter >= 6) { bongCheck(); counter = 0; llSetTimerEvent(time); } if(counter == 2) { bongCheck(); } if(counter == 2) { bongCheck(); } } }
  5. Hey all So I've been fiddling with a script in a bong that rezzes and attaches temporary lighter from its inventory using llRezObject, animates and all that jazz, and when I detach the bong, the lighter also detaches and requests perms again from its original rezzed position (which is in front of my face, for the time being). I've tried incorporating llDie at different parts of the script to coincide with the detachment and nothing. If you need code posted, I can attach it, just didn't wanna make the post gross and clogged. I've messed around with start parameters, from default to prim temp on rez, object temp on rez. I use llAttachToAvatarTemp inside the lighter. I have them say/listen to each other briefly to get the animations started. And I try to have the lighter check for the OBJECT_REZZER_KEY in the attachment list on a timer. A whole rigmarole of adjustments and changes that sometimes worked, sometimes broke it. Any ideas on what might be causing that or if it's just normal behavior? **Edit** Lighter and bong scripts are in the second and third comments.
  6. Hey hey. I know the post is a smidge old, but I noticed the link is giving a 404 error. I've been itching to test this plugin. Any chance there's an updated link? I couldn't find you by name over there either.
  7. ❤︎ Love is in the air at Raynier's Hotel ❤︎ Join us for two wonderful performances from Grace Loudon and Aaron Cabott Jones, starting at 4PM SLT. ✫✫✫✫✫ Grace Loudon is a musician, singer, and songwriter, accompanying herself with both guitar and keys. Her covers span across multiple genres, so there's always variety in her performance. She has a unique bluesy-country sound that you'll absolutely fall in love with. ✫✫✫✫✫ Aaron is a singer/songwriter/muscian whose cover songs range from Tom Petty, Bruce Springsteen, Foo Fighters, Rolling Stones, and a whole lot more. Of course his original material is what is closest to his heart. He's full of energy and rocks to classic rock and blues. You'll always leave with a smile when he performs. ✫✫✫✫✫ After the show, enjoy the scenery of the island, take a romantic stroll along our beach, or take a boat out onto the water with your special someone. Dress code is semi-formal or formalwear. Can't wait to see you there! 🚖 http://maps.secondlife.com/secondlife/Malolo Island/105/186/24 🚖
  8. ░░ Beatles Cover Concert LIVE x Aaron Cabott Jones ░░ ═▶ February 2nd, 2023 @ 4pm SLT ◀︎═ Come visit Raynier's Hotel on the beautiful Blake Sea to hear a live performance from Aaron Cabott Jones, featuring the best of the Beatles. Aaron is a singer/songwriter/musician. His cover songs range from Tom Petty, Allman Bros., Bruce Springsteen, Foo Fighters, Rolling Stones, U2, Lynyrd Skynrd, and a whole lot more. Of course his original material is what is closest to his heart. He's full of energy and rocks to classic rock and blues. You will leave with a smile, wanting more. Don't miss this wonderful LIVE performance. Here's your taxi: http://maps.secondlife.com/secondlife/Malolo Island/105/186/24
  9. Velour is actually where I was getting the skin from haha, so that's super good to know. I'll go back there and check that out, just in case they're any different from the ones that came with the skin itself.
  10. Neck faders are always hit or miss for me. I've considered making my own on an as-needed basis but that's a hassle. My head skin didn't come with a fader, but I have lots of faders from my Freya body, and I think some came with Lelutka. Whichever skin I get, hopefully that'll have some too
  11. I just got a new head skin and went to the store for the recommended body skin in the style card. No support for Belleza Freya. But I demoed the Maitreya skin and it looks fine from what I can see. Is there any downside or issue with wearing one skin type for a different body? Or is it pretty much if it looks fine, go ahead?
  12. ~ It's a 70s Throwback party with Stinna at Raynier's Hotel ~ Get ready for a blast from the past when Stinna's voice carries us back to the 70s at Raynier's this Thursday! Raynier's Hotel, Resort, and Conference Center is located on the beautiful Blake Sea. It's the perfect place to enjoy musical artists at our concert hall, sail along the coast, and enjoy the sunset from the balcony of one of our luxury hotel rooms. Stinna is one of SL's finest live vocalists! Covering rock, pop, celtic and much more! Stinna´s amazing velvet voice has been described as magically smooth and soul soothing. She mesmerizes her audience with versatile sets that are a variety of melodic, upbeat and playful tunes. MORE INFO ON STINNA: www.skylight-sl.dk Don't miss this amazing performance THURSDAY, January 26th at 11am SLT. 🚖 Here's your taxi: http://maps.secondlife.com/secondlife/Malolo Island/105/186/24 🚖
  13. ⬂⬂⬂═════▶︎▶︎▶︎RAYNIER'S HOTEL ∙ DJ DIRTYANGEL LIVE ∙ Saturday, January 21st◀︎◀︎◀︎═════⬃⬃⬃ ❖ ★𝙒𝙝𝙤 ★ ☆ DJ DIRTYANGEL ☆ ❖ STYLE ━► Progressive House ❖ WHEN ━► January 21st ❖ TIME ━► 5:00 - 6:30 PM SLT ❖ WHERE ━► Raynier's Hotel, Resort, and Conference Center ❖ TAXI ━► http://slurl.com/secondlife/Malolo%20Island/105/186/24
  14. ~ Come enjoy the sounds of Samuel James on Blake Sea at Raynier's Hotel ~ Raynier's Hotel, Resort, and Conference Center is located on the beautiful Blake Sea. It's the perfect place to enjoy musical artists at our concert hall, sail along the coast, and enjoy the sunset from the balcony of one of our luxury hotel rooms. Samuel James is a must listen to Autistic artist from Australia. He is a true treasure and an amazing kind of unexpected. Verified Spotify Artist with songs available everywhere music is found. He Began writing songs early 2020 and has been enjoying every step along the musical journey. With unique covers and catchy originals. Chill Acoustic Vibes and a wide variety of covers and a whole stack of originals Samuel James is a singer-song writer with a whole lot of passion and love for the SL music scene. Don't miss this amazing performance TOMORROW, January 18th at 5pm SLT. Here's your taxi: http://maps.secondlife.com/secondlife/Malolo Island/105/186/24
  15. ~ Come enjoy the sounds of Samuel James on Blake Sea at Raynier's Hotel ~ Samuel James is a must listen to Autistic artist from Australia. With his mesmerizing voice and captivating lyrics, he delivers a one of a kind musical experience that will leave you absolutely breathless. He is a true treasure and an amazing kind of unexpected. Verified Spotify Artist with songs available everywhere music is found. Raynier's Hotel, Resort, and Conference Center is located on the beautiful Blake Sea. It's the perfect place to enjoy musical artists at our concert hall, sail along the coast, and enjoy the sunset from the balcony of one of our luxury hotel rooms. Don't miss this amazing performance this Wednesday, January 18th at 5pm SLT. Here's your taxi: http://maps.secondlife.com/secondlife/Malolo Island/105/186/24
×
×
  • Create New...