Jump to content

RLV doesnt initialize after login - Please help :)


Assmay
 Share

You are about to reply to a thread that has been inactive for 3467 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hello,

I´m working on a RLV script with a kind of a password to lock/unlock (good thing is everybody who knows the password can operate it, no matter if he is in a special group or so.

It is bit simple - the password is actually the channel where I write the command "lock" / "unlock".

Its nice, I found it on the net (main part of it) and changed it a bit only after a relog it does not work anymore (RLV restrictions wont "re-initialize".

 

integer lockchannel=1234; //1234 = "password" :)
key lockedby=NULL_KEY;

default {
  state_entry() {
    llListen(lockchannel,"",lockedby,"lock");
  }
  listen(integer chan, string name, key id, string message) {
    if (llGetOwnerKey(id)==llGetOwner()) {
        llOwnerSay("@detach=n");
        llOwnerSay("@fly=n");
      llSay(0,"locked" );
      lockedby=id;
      state locked;
    }
  }
}

state locked {
    
   on_rez() {                    //here I get a error :(
        llOwnerSay("@detach=n");
        llOwnerSay("@fly=n");
      llSay(0,"locked" );
    } 
  state_entry() {
    llListen(lockchannel,"",lockedby,"unlock");
  }
  listen(integer chan, string name, key id, string message) {
    llOwnerSay("@clear" );
    llSay(0,"unlocked" );
    lockedby=NULL_KEY;
    state default;
  }
}

 

I really appreciate all help :)

 

Thanks *kiss*

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3467 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...