Jump to content

false rezz : permissions (rezz and derezz) to 2 members


Bornforyourass
 Share

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

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

Recommended Posts

Hi there,

I've been using the false rezz script for a while now. It works wonderfully but I have a small question about this script.

Is it possible to grant user permissions (rezz and derezz) to 2 members of sl using the nickname or any other means of identification.

Thank you in advance for your help.

ps: i don't know anything about scripting

Link to comment
Share on other sites

Hello Rolig Loon,

uh, the line of code is already true.
unless it is necessary to notify it elsewhere (given my capacities in coding, it is clear that I apprehend this coding badly).

Another question: where to notify the script which group it should respond to?

ps: sorry for my heaviness

 
Link to comment
Share on other sites

By default, llSameGroup and related functions always compare against the group that the scripted object is set to. Take a look at the touch_start event in that script, where that variable ingroup is used:

   touch_start (integer total_number) {
        group = llDetectedGroup(0); // Is the Agent in the objowners group?
        agent = llDetectedKey(0); // Agent's key
        objectowner = llGetOwner(); // objowners key
        // is the Agent = the owner OR is the agent in the owners group
        if ( (objectowner == agent) || ( group && ingroup )  )  {
            iListenTimeout = llGetUnixTime() + llFloor(fListenTime);
            MENU_CHANNEL = llFloor(llFrand(-99999.0 - -100));
            MENU2_CHANNEL = MENU_CHANNEL + 1;
            MENU_HANDLE = llListen(MENU_CHANNEL,"","","");
            MENU2_HANDLE = llListen(MENU2_CHANNEL,"","","");
            if ( creatorUUID == llGetOwner() || fullOptions) {
                llDialog(agent,title + "Now on Channel " + (string)PRIMCHAN, optionlist, MENU_CHANNEL); //display channel number if authorized
            } else {
                llDialog(agent, title, optionlist, MENU_CHANNEL);
            }
            //timer_on();
        }
    }

That if test says that if the script determines that the person touching the rez box is its owner OR if the person is a member of the same group that the rez box is set to, THEN the dialog menus are enabled.  Otherwise, they are not.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 720 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...