Jump to content

Ghostwitness

Resident
  • Posts

    19
  • Joined

  • Last visited

Everything posted by Ghostwitness

  1. Went with Stealthic. Looks great, lowered my complexity dramatically. Thanks for info!
  2. I’m in process of updating my avatar from 7 years ago. I have a Gianni body and Catwa head. I’m looking to replace my hair as it’s adding 30000 to my current complexity. Are there any good shops for men’s hair and beards?
  3. I’m in process of updating my avatar from 7 years ago. I have a Gianni body and Catwa head. I’m looking to replace my hair as it’s adding 30000 to my current complexity. Are there any good shop for men’s hair and beards?
  4. Having recently returned from a six year break I find myself with old clothing/accessories with a complexity of 125000 to 150000 depending on what I try to wear. No prim items on me, although my inventory is full of prim and high complexity mesh clothing. Not wanting to dish out a ton of money, I’ve gone with a $L1 Altamura bento body and parts. My clothes need a complete revamp. Where is a guy to go for low complexity clothes at discount prices that will work on my discount body?
  5. The number of non-UK people who show up in London City…. People want to hear and trust someone with a British accent.
  6. All fixed up thanks to Freya! Here's the working script if anyone is interested. I'll be cleaning it up a bit for my version and making a few cosmetic changes, but it works // leave music_url blank if set in object's descriptionstring music_url = "http://66.7.214.7:8064"; key HTTPRequest;string feed;string URL;string currSongTitle;string lastSongTitle;list feedList;default{ state_entry() { llSetText(" ",<1,1,1>,1); llSetTimerEvent(5.0); if(music_url) { URL = music_url; } else { URL = llGetObjectDesc(); } } timer() { HTTPRequest=llHTTPRequest(URL + "/7.html HTTP/1.0\nUser-Agent: LSL Script (Mozilla Compatible)\n\n",[],""); }http_response(key k,integer status, list meta, string body) { //llOwnerSay((string)status + " : " + llGetSubString(body,63 + 3, 63 + 3)); if(status != 200) { llSetColor(<0.067, 0.067, 0.067>, ALL_SIDES); llSetText("",<0,0,0>,0); //REMOVED 'return;' } else { if(llGetSubString(body,63 + 3,63 + 3) == "0") { lastSongTitle = "-1"; currSongTitle = "-2"; llSetColor(<0.067, 0.067, 0.067>, ALL_SIDES); llSetText("",<0,0,0>,0); } else { feed = llGetSubString(body,llSubStringIndex(body, "<body>") + llStringLength("<body>"), llSubStringIndex(body,"</body>") - 1); feedList = llParseString2List(feed,[","],[]); currSongTitle = llList2String(feedList,6); integer length = llGetListLength(feedList); if(llList2String(feedList,7)) { integer a = 7; for(; a<length; ++a) { currSongTitle += ", " + llList2String(feedList,a); } } if (currSongTitle != lastSongTitle) { llSetText(currSongTitle,<1,1,1>,0.75); llSetColor(<1.000, 1.000, 1.000>, ALL_SIDES); lastSongTitle = currSongTitle; } } } //LINE ADDED }}
  7. It still does nothing. Here is the complete code as it stands. You've been a great help, I'm really sorry to take up your time, but I'm incompetent // leave music_url blank if set in object's descriptionstring music_url = "http://66.7.214.7:8064"; key HTTPRequest;string feed;string URL;string currSongTitle;string lastSongTitle;list feedList;default{ state_entry() { llSetText(" ",<1,1,1>,1); llSetTimerEvent(5.0); if(music_url) { URL = music_url; } else { URL = llGetObjectDesc(); } } timer() { HTTPRequest=llHTTPRequest(URL + "/7.html HTTP/1.0\nUser-Agent: LSL Script (Mozilla Compatible)\n\n",[],""); }http_response(key k,integer status, list meta, string body) { if(status != 200 || llGetSubString(body,63 + 3,63 + 3) == "0") //FIXED KEY TEST, AS POST ABOVE FROM Nova Convair { llSetColor(<0.067, 0.067, 0.067>, ALL_SIDES); //REMOVED 'return;' } else //LINE ADDED { //LINE ADDED feed = llGetSubString(body,llSubStringIndex(body, "<body>") + llStringLength("<body>"), llSubStringIndex(body,"</body>") - 1); feedList = llParseString2List(feed,[","],[]); currSongTitle = llList2String(feedList,6); integer length = llGetListLength(feedList); if(llList2String(feedList,7)) { integer a = 7; for(; a<length; ++a) { currSongTitle += ", " + llList2String(feedList,a); } } if (currSongTitle != lastSongTitle) { llSetText(currSongTitle,<1,1,1>,0.75); llSetColor(<1.000, 1.000, 1.000>, ALL_SIDES); lastSongTitle = currSongTitle; } } //LINE ADDED }}
  8. I changed if(status != 200 || llGetSubString(body,63 + 3,63 + 3 = "0") to if(status != 200 || llGetSubString(body,63 + 3,63 + 3 = "0")) to close off the brackets, but I still get a syntax error "37:62 ERROR: Syntax Error". I get the syntax eror rwith the brackets unclosed too.
  9. With stream off --> Animated Belt Buckle: 0 With stream on but not playing music --> Animated Belt Buckle: 1 With stream on and playing music --> Animated Belt Buckle: 1
  10. With stream off --> Animated Belt Buckle: ,0 With stream on and no song --> Animated Belt Buckle: ,1 With stream on and a song playing --> Animated Belt Buckle: ,0, then after 5 ticks, went to --> Animated Belt Buckle: ,1
  11. When stream is turned off --> Animated Belt Buckle: 2014-03-07T15:45:43.312322Z: >0,0,22,100,0,128,blink-182 - First Date</body></html> - Seems to be displaying last song played When stream is on with no song --> Animated Belt Buckle: 2014-03-07T15:46:53.327011Z: >0,1,22,100,0,128,blink-182 - First Date</body></html> - Still appears to display the last song played When streaming with a song on --> Animated Belt Buckle: 2014-03-07T15:48:18.314447Z: >0,1,22,100,0,128,Bob Seger - Her Strut</body></html> - Displays current song
  12. When off --> Animated Belt Buckle: 2014-03-07T15:35:53.992924Z: <HTML><meta http-equiv="Pragma" content="no-cache"></head><body>0 When on with no song playing --> Animated Belt Buckle: 2014-03-07T15:37:13.985207Z: <HTML><meta http-equiv="Pragma" content="no-cache"></head><body>0 When on with a song playing --> Animated Belt Buckle: 2014-03-07T15:38:29.001873Z: <HTML><meta http-equiv="Pragma" content="no-cache"></head><body>0 Seems to be the same no matter what. Yet song still displays in floating text while playing and updates when new song comes on.
  13. http://66.7.214.7:8064/7.html This returns the last song when the stream is off.
  14. Returns "2014-03-07T15:29:13.819041Z: 200" with changing times whether I am stream from Sam Broadcaster to the site or not.
  15. Thank you Freya. I tried that and it works as it did before. Songs will update as they play, but when I turn off the stream, I don't get a blank song name and the ON AIR still stays white.
  16. As I mentioned, I do not fully understand the code. I thought the timer was updating the HTTP request, is it not? When a new song comes on, it displays that name?
  17. The above script is working when a song is being played, and it switches when a new song comes on. However, if I turn off the stream, it does not blank the hover text and set the color to black. I believe I am misunderstanding the code somewhere.
  18. I'm trying to do something really simple. I want to check to see if my music feed is active and if it is, set the prim color to white. If the feed is not active, set it to black. This would need to check every say 5 minutes or something. What I'm doing is a belt buckle with an ON AIR sign on it that lights up when I am on. I borrowed this code from another tread and thought I understood it enough, but it doesn't see to do anything when the feed is off. Perhaps this script is overkill, I dunno, not a big scripter. Any help would be appreciated :) // leave music_url blank if set in object's description string music_url = "http://66.7.214.7:8064"; key HTTPRequest; string feed; string URL; string currSongTitle; string lastSongTitle; list feedList; default { state_entry() { llSetText(" ",<1,1,1>,1); llSetTimerEvent(5.0); if(music_url) { URL = music_url; } else { URL = llGetObjectDesc(); } } timer() { HTTPRequest=llHTTPRequest(URL + "/7.html HTTP/1.0\nUser-Agent: LSL Script (Mozilla Compatible)\n\n",[],""); } http_response(key k,integer status, list meta, string body) { if(k != HTTPRequest) { llSetColor(<0.067, 0.067, 0.067>, ALL_SIDES); return; } feed = llGetSubString(body,llSubStringIndex(body, "<body>") + llStringLength("<body>"), llSubStringIndex(body,"</body>") - 1); feedList = llParseString2List(feed,[","],[]); currSongTitle = llList2String(feedList,6); integer length = llGetListLength(feedList); if(llList2String(feedList,7)) { integer a = 7; for(; a<length; ++a) { currSongTitle += ", " + llList2String(feedList,a); } } if (currSongTitle != lastSongTitle) { llSetText(currSongTitle,<1,1,1>,0.75); llSetColor(<1.000, 1.000, 1.000>, ALL_SIDES); lastSongTitle = currSongTitle; } } }
×
×
  • Create New...