Jump to content

CmpZ

Resident
  • Posts

    14
  • Joined

  • Last visited

Reputation

5 Neutral

Recent Profile Visitors

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

  1. I'm not in front of a computer that can run SL at the moment, so I can't test it, but I believe you do this: Do_The_Thing( string value ) { integer n; n = llListFindList( Numbers, [value] ); if (-1 == n) { // not found } else { llOwnerSay( llList2String( Letters, n ) ); } } The difference between this & your original code is that this one saves the result from llListFindList &, if it's in range (not -1), uses it as the index into the Letters list.
  2. On the wild wild web, when a browser connects to a server via httpS (emphasis on that "S"), they establish a private (encrypted) channel, then the client authenticates the server's X.509 certificate. When the client sends its request (including POSTed data), no one else can view it due to the encryption, & it also knows who it's sending to because it authenticated the server. It sounds like your LSL script acts as a client, requesting data from an external server. If that's the case, then the communication should be private, & the script should be able to trust the identity of the server if you include the [HTTP_VERIFY_CERT, TRUE] flag when you call llHttpRequest. If you control both the client (LSL script) and server & don't want to send the password over the wire, you might consider HMAC. You can put the secret in a notecard that the LSL reads.
  3. For the backtick, you mentioned that `Hello becomes Hello;000 on the stack. If I were to write "Hello", "000" in the JSON, does that turn into the same thing on that stack?
  4. A word beginning with "^" means "do this"? Like "^SAY" means call llOwnerSay? "^+" means to use + in an expression? And a word beginning with "^^" means assignment? What's the `backtick` for? Does it precede a string literal?
  5. Hello BEGOCER Lehmann. Here's a script that I put in a plain, just-rezzed cylinder. It listens to a sitter, stop listening when the person stands. It doesn't listen to anyone else. Things I learned while working on it: The object must have a sit target or llAvatarOnSitTarget returns NULL_KEY. If you use that as the key in llListen, then it'll listen to anyone. My guess is that might be what happened in your situation. Here's the demo script: integer HANDLE; default { state_entry() { vector offset; rotation rot; llOwnerSay( "Hello, Avatar!" ); offset = <0.25, 0.0, 0.5>; rot = <0, 0, 0, 1>; llSitTarget( offset, rot ); } touch_start(integer total_number) { llSay(0, "Touched."); } listen( integer channel, string name, key id, string message ) { llOwnerSay( name + " said something" ); } changed( integer change ) { key sitter; if (CHANGED_LINK & change) { llOwnerSay( "links changed" ); sitter = llAvatarOnSitTarget(); if (sitter == NULL_KEY) { llOwnerSay( "nobody is sitting" ); llListenRemove( HANDLE ); } else { llOwnerSay( "Listen to " + llGetDisplayName( sitter ) + "." ); HANDLE = llListen( 0, "", sitter, "" ); } } } }
  6. I adapted HMAC to LSL so scripts & web servers can authenticate each other. The real write-up is http://cybertiggyr.com/fakemac.html but here's the LSL string Fake_MAC( string secret, string message ) { string o_pad; string i_pad; o_pad = llSHA1String( secret + "ooo" ); i_pad = llSHA1String( secret + "iii" ); return llSHA1String( o_pad + llSHA1String( i_pad + message ) ); }
  7. +1 to your question (& holding my breath in hopes someone has a good answer or two)
  8. There was a 1- or 2-sim area called Neko Japan or Neko Tokyo or something like that. Maybe that is what you remember? It's been gone a while. Sort of like that, we still have http://maps.secondlife.com/secondlife/SSOC/70/184/28 http://maps.secondlife.com/secondlife/Nibiru/153/65/1533 I hope that's helpful (though it's probably not).
  9. There are usually at least a few people talking at NCI Kuula, & I have always felt welcome there. http://maps.secondlife.com/secondlife/Kuula/56/170/28
  10. Caledon Oxbridge is the best I could find. (And some(many?) other Caledon sims are M.) (Before I double checked to see which sims are G, I expected it'd be easy to get you a long list, but if you stick to just G sims, it's limiting.)
  11. For any of you old-timers: I've read about camping for L$. Do people still do that?
  12. Thanks for the replies, everyone. Lots of good points, but the two that rise to the top are the analogy about how building in Minecraft is like building with Legos & Kelli May's point that you could simulate Minecraft in SL but not the other way around. Thanks bunches!
  13. I'm new to SL & was showing it to a friend in the hopes that he'd make his own account. He asked how it differs from Minecraft. Neither of us have played Minecraft, but we know people who have (including his nephew). For me, it's one of those questions whose answer is obvious but difficult to articulate. I pointed out that SL isn't a game & that a big part of it is building. He pointed out that people build things in Minecraft, too. He also pointed out that from what he's seen, building in Minecraft is easier than building in SL, though I pointed out that I'm new & still don't know many good building techniques. Thanks for your time & help. P.S. I know that I've heard other questions like that, where I feel that the answer is obvious but when someone presses me on it, I can't explain. Wish I could think of some of those to use as examples here. Anyway, thanks in advance for your replies.
×
×
  • Create New...