Jump to content

Kropah Toocool

Resident
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Kropah Toocool

  1. Thank you very much for your reply, Rolig Loon. I've been seeing you in a lot of LSL threads last 2 days, you've been a great help already! As for other methods, I can think of simple ones, but they are prone to fail, or make buyers disatisfied with the solution. I've been playing around in LSL for last 2 days after few years break, and I'm learning as I go. Unfortunately I must admit that I don't get your solution fully. I'm not sure how to assign each user a unique identifier. Would you mind explaining your solution a bit more noob-friendly?
  2. I have 2 objects - one of them generates a channel using: MyChannel = 0x80000000 | (integer)("0x"+(string)llGetOwner); let's call that object "the key" and the second object, "the listener" generates the channel with: MyChannel = 0x80000000 | (integer)("0x"+(string)llGetObjectDesc); where llGetObjectDesc contains the UUID of the person holding "the key". 2 people. 1 of them holds the key, the other the listener For example: I, Morri(c043ccc0-8416-417d-aa69-0155d67ff857), have "the key", and it generates the channel using my own UUID. Second person, has "the listener" and it generates the channel using MY UUID, which is in the object's description. In result, we both are using the same channel and can communicate between these two objects. The issue: The problem I have with that is if there was 1 person holding the key, and 5 people had the listener object and all of them had the same UUID of the person holding the key in their object description = the key commands would affect all 5 listeners at the same time. How do I link 1 key to only 1 listener? Code: The lintener: integer MyChannel; key MyOwner; default { state_entry() { MyOwner = llList2String(llGetLinkPrimitiveParams(4, [ PRIM_DESC ]), 0); MyChannel = 0x80000000 | (integer)("0x"+(string)MyOwner); llListen (MyChannel,"","",""); } listen(integer channel, string name, key id, string msg) { if(msg == "show") { llSetLinkAlpha(LINK_SET, 1.0, ALL_SIDES); } } } The key: integer MyChannel; key MyOwner; integer gListener; default { state_entry() { MyOwner = llGetOwner(); MyChannel = 0x80000000 | (integer)("0x"+(string)MyOwner); } changed(integer change) { if (change & CHANGED_OWNER){ llResetScript(); } } touch_start(integer total_number) { llListenRemove(gListener); key user = llGetOwner(); gListener = llListen(-99, "", user, ""); llDialog(user, "\nWhat do you want to do?", ["Show", "Hide"] , -99); llSetTimerEvent(60.0); } listen(integer chan, string name, key id, string msg) { if(llToLower(msg) == "hide") { llSay(MyChannel, "hide"); } else if(llToLower(msg) == "show") { llSay(MyChannel, "show"); } llSetTimerEvent(0.1); } timer() { llListenRemove(gListener); llSetTimerEvent(0.0); } }
  3. Hello, Im still not able to log in, what may be the reason? 1. I tried resetting my computer, and the router. 2. I can connect to sites like google, AND secondlife.com obviously.
  4. Hello, Im still not able to log in, what may be the reason? I get an error "DNS could not resolve the host name"
×
×
  • Create New...