Jump to content

Stacy Aquila

Resident
  • Posts

    4
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. thank you Helium, your script had a couple of errors with the declaration of the integers and using a instead of i on the setlinkalpha statement, it was good they where there, giving me a bit more practice in coding, I got it working great now, a nice little script. Thanks for everyone replying and helping, a couple of hours here saved me untold days(and some hair), LOL
  2. Hi Dale, I had my script as you described using for loops but I read that using "do... while" makes for a faster script, I may have to go to this;(posted below) if I have trouble with the "do...while" loop. (the for loop is different from what I had) integer i; string MSG = llToUpper(msg); if (MSG == "SHOWD1") { for (i=0;i<llGetListLength(DildoPrims);i++) llSetLinkAlpha(llList2Integer(DildoPrims,i),1.0,ALL_SIDES); return; } if (MSG == "SHOWD2") {
  3. The "while(a++ < b);" line should be "do" I messed up there but it still compiled. Change number 1 llListen is now set to owner only. change number 2 the first do..... while loop for the llOwnerSay will be removed once the script is working right, leaving just the one remaining. Thanks for the feedback guys, that was quick and very appreciated, now to try the changes :smileyhappy:
  4. I am having trouble with this script below, I would like for it to show/hide 3 sets of prims. The prims have D1, D2 and D3 in there name and I can see the list is being built for each set. The problem is the script seems to not see my input (showd1, hided1 etc) from local and it does not set Alpha with llSetLinkAlpha. the llOwnerSay lines will be removed once the script is working. Any help to get this script running would be great and appreciated --------------------------------------------------------------------------------------------------------------------------------- list PussyPrims; list PrimList; key Owner; list DildoPrims; list AssPrims; init() { integer link; for (link = llGetNumberOfPrims(); link >= 1; --link) { if (llSubStringIndex(llGetLinkName(link), "D1") != -1) { DildoPrims += (list)link; } else if (llSubStringIndex(llGetLinkName(link), "D2") != -1) { PussyPrims += (list)link; } else if (llSubStringIndex(llGetLinkName(link), "D3") != -1) { AssPrims += (list)link; } else if (llSubStringIndex(llGetLinkName(link), "") != -1) { PrimList += (list)link; } } } default { state_entry() { init(); Owner = llGetOwner(); integer NumLink = llGetNumberOfPrims(); llListen(97, "", NULL_KEY, ""); integer i = 0; do { llOwnerSay("Dildo=" + (string)llList2Integer(DildoPrims,i)); llOwnerSay("**bleep**=" + (string)llList2Integer(PussyPrims,i)); llOwnerSay("Ass=" + (string)llList2Integer(AssPrims,i)); llOwnerSay("PrimList=" + (string)llList2Integer(PrimList,i) ); } while ((++i)<NumLink); } listen(integer channel, string name, key id, string msg) { integer a = 0; integer b = 5; string MSG = llToUpper(msg); while(a++ < b); { if (MSG == "SHOWD1") { llSetLinkAlpha(llList2Integer(DildoPrims,a),1.0, ALL_SIDES); return; } else if (MSG == "HIDED1") { llSetLinkAlpha(llList2Integer(DildoPrims,a),0.0, ALL_SIDES); return; } else if (MSG == "SHOWD2") { llSetLinkAlpha(llList2Integer(PussyPrims,a),1.0, ALL_SIDES); return; } else if (MSG == "HIDED2") { llSetLinkAlpha(llList2Integer(PussyPrims,a),0.0, ALL_SIDES); return; } else if (MSG == "SHOWD3") { llSetLinkAlpha(llList2Integer(AssPrims,a),1.0, ALL_SIDES); return; } else if (MSG == "HIDED3") { llSetLinkAlpha(llList2Integer(AssPrims,a),0.0, ALL_SIDES); return; } } while ((++a)<b); } }
×
×
  • Create New...