Jump to content

Ron Khondji

Resident
  • Posts

    351
  • Joined

  • Last visited

Everything posted by Ron Khondji

  1. message = llDumpList2String(llParseStringKeepNulls(message, ["\\n"], []), "\n"); That does the trick.
  2. "The idea of building things -- be they social relationships or objects or just building the world around yourself -- is pretty broadly appealing, in particular to soccer moms or teenage girls or people you might not think of conventionally as videogamers," Rosedale said. Found in wiki.
  3. default { state_entry () { integer i; do { list PM = llGetPrimMediaParams (i, [PRIM_MEDIA_CURRENT_URL]); string URL = llList2String (PM, 0); llOwnerSay (URL); } while (++i < llGetNumberOfSides ()); } }
  4. LlGetPrimMediaParams is what you're looking for. I think. (But i didn't read the whole question, so sorry for the useless answer.)
  5. Or you can use http://secondlife.com/httprequest/homepage.php Like this: key HTTP; default { state_entry() { HTTP = llHTTPRequest("http://secondlife.com/httprequest/homepage.php", [], ""); } http_response(key request_id, integer status, list metadata, string body) { if (request_id == HTTP) { if (status == 200) { list temp = llParseString2List(body, ["\n"], []); string number = llList2String(temp, llGetListLength(temp) - 1); string update_date = llList2String(llParseString2List(llList2String(temp, llGetListLength(temp) - 3), [" "], []), 0); string update_time = llList2String(llParseString2List(llList2String(temp, llGetListLength(temp) - 3), [" "], []), 1); llSetText ("Avatars in world: " + number + "\nUpdated: " + update_date + " at " + update_time + " SLT.", <.984, .686, .365>, 1.0); } } } }
  6. I would do something like: integer AlphaNum (string text) { string alphanum = " abcdefghijklmnopqrstuvwxyz"; integer i; do { if (!~llSubStringIndex(alphanum, llToLower(llGetSubString(text, i, i)))) return FALSE; } while (++i < llStringLength (text)); return TRUE; } And then change name = m to if (AlphaNum (m)) name = m; else llOwnerSay ("Only alphanumerals.");
  7. You probably do not mean the official Linden Lab map api, but i'm mentioning it anyway.
  8. That won't work. The event in which llGetInventoryKey() gets called is not the problem. According to the wiki: If name is not copy, mod, trans then the return is NULL_KEY. Use llGetInventoryType instead of this function to verify the existence of inventory. Using Qie's solution will work.
  9. I just tried it. The wiki is not wrong. llGetNotecardLine can read a notecard that is no copy / no mod.
  10. Is that not kinda described on the page about PRIM_ALPHA_MODE?
  11. Maybe it's a bug, but llSay(0, "http://maps.secondlife.com/ secondlife/Help%20Island%20Public/181/197/23"); (with a space between com/ and secondlife) seems to work as wel.
  12. Well I just tried it again. - Imported simplebot-2.5.38079.dae into blender. - Aplied scale. - Exported as "Collada (Default)(.dae)", with "Operator Presets": "Sl + Open Sim Rigged". - Uploaded to the beta grid with all upload settings unchanged. Except for "Include skin weight", which needs to be selected. Found "Simple_Bot" in my inventory, right-clicked 'Wear" and presto. Still no problems. It looks to me like you did not tick "Include skin weight" when uploading the model.
  13. Second Life Server 2020-05-15T17:44:47.542391 Does the same at http://maps.secondlife.com/secondlife/Monowai/35/131/72
  14. Solution is: o use the default system browser for all links
  15. float interval = 40; //put your time after interval integer switch; default { touch_start(integer total_number) { if (switch = !switch) llSetTimerEvent(.1); else llSetTimerEvent(.0); } timer() { llPlaySound("Owl", 1); //put sound file name between between quotes llSetTimerEvent(interval); } } Try this.
  16. llHTTPRequest("http://urlhere.com", [HTTP_CUSTOM_HEADER, "HTTP_USER_AGENT", "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36", HTTP_METHOD, "POST",HTTP_MIMETYPE, "application/x-www-form-urlencoded"], "Check=1"); does not give a error.
  17. Well, this is also from the wiki: Note: Spaces are not allowed in HTTP User Agent token values, so "My Script Name/1.0" will produce a script error; change the spaces to hyphens ("-")
  18. Using 'sim_channel' to get 'Blue Steel' or something doesn't work anymore. See this thread.
  19. llGetDisplayName(id) But that only works on attach. Not on 'detach'.
  20. I was talking about Blender. If you export from Blender with scale applied (scale = 1.0) you can leave the SL upload options as they are. Allthough your way obviously works just as well :).
×
×
  • Create New...