Jump to content

sndbad Ghost

Resident
  • Posts

    60
  • Joined

  • Last visited

Posts posted by sndbad Ghost

  1. hello friends 

    i trying load Access list  from NoteCard 

    i did script and all works good the problem in user in list not work except first avatar i hope to understand and fix it i have 4 days try to fix that 

     

    this master script is 

    integer COMM_CHANNEL = 7805060;
    integer Serial = 1;
    integer NOT_FOUND = -1; string config_notecard_name = "access"; integer config_line_current = 0; key config_data_request;
    list AccessList = [];
    list glTextures = [];
    string data;
    default 
    
    {
    
       state_entry()
       {
    
           llSay(0, "Checking for Access Notecard.... must be named \'" + config_notecard_name +"\'.");
           if ( llGetInventoryType(config_notecard_name) != NOT_FOUND )
           {
               //config notecard found... process it
               llSay(0, "Reading access notecard...");
               AccessList = [];
               config_line_current = 0;
               config_data_request = llGetNotecardLine(config_notecard_name,config_line_current);
        
             
           }
           else
           {
    
               llSay(0, "Access notecard not found, must be named \'" + config_notecard_name +"\'.");
           }
               
               
       }
       
       on_rez(integer start_param)
       {
           llResetScript();
       }
       
       changed(integer change)
       {
           if (change & CHANGED_INVENTORY)
           {
               llSay(0, "Checking for Access Notecard.... must be named \'" + config_notecard_name +"\'.");
               if ( llGetInventoryType(config_notecard_name) != NOT_FOUND )
               {
                   //config notecard found... process it
                   llSay(0, "Reading access notecard...");
                   AccessList = [];
                   config_line_current = 0;
                   config_data_request = llGetNotecardLine(config_notecard_name,config_line_current);
    
    
               }
               else
               {
                   llSay(0, "Access notecard not found, must be named \'" + config_notecard_name +"\'.");
               }
           }
       }
       touch_start(integer total_number)
       {
    llOwnerSay((string)AccessList );
     list glTextures = ["test1",(string)AccessList]; 
      llSay( COMM_CHANNEL+Serial,llDumpList2String(glTextures, "|")); 
    
    
       }
       
       dataserver(key queryid, string data)
       {
           if (config_data_request == queryid && data != EOF)
           {
               AccessList = AccessList + [data]+" ";
               config_line_current++;
               config_data_request = llGetNotecardLine(config_notecard_name,config_line_current);
               
    
           }
           else
           {
               llSay(0,"Access notecard read.");
    
    
           }
       }
    }

     

    Client script is 

    integer NOT_FOUND = -1;
    integer COMM_CHANNEL = 7805060;
    integer Serial = 1;
    
    list AccessList = [];
    
    default
    {
        state_entry()
        {
            llListen(COMM_CHANNEL+Serial, "","","");
        }
        
           touch_start(integer total_number)
          {
                      
           integer x;
           for (x = 0; x < total_number; x++)
           {
           
               if( llListFindList(AccessList, [llDetectedName(x)]) != NOT_FOUND )
               {
     llOwnerSay((string)AccessList);
               }
           
           }
    }
        listen(integer Channel, string Name, key ID, string Text)
        {
    
    
                
                         list lT = llParseString2List(Text, ["|"], []); 
                        AccessList = llCSV2List(llList2String(lT,1));
                        
          //   llOwnerSay((string)AccessList);
    
            
        }
    
    }

     

     

  2. hello, friends, i keep having this problem 

    i try make low prims work but i dont know how that work 

    some work looks much poly but it be low prim other low poly show me many prims 

    i give you example 

    this not my work but i see it in SL

     

     

    here more details with 1 prim

    http://prntscr.com/igw92b

     

    here not much details but 55 prims 

    http://prntscr.com/igwa8b

    i am really totally confused , i hope if you have any idea about that 

  3. hi friends

    i use this script its work nice, but the problem
    the llDialog menu show me my name with list how can i hide my name and show to another people ?

    thanks 

     

            sensor(integer num)
        {
    
            names=[]; buttons=[];
            for(i=0;i<num;i++)
            {
                buttons+=[llGetSubString(llDetectedName(i),0,23)];
                names+=[llGetSubString(llDetectedName(i),0,23),llDetectedKey(i)];
            }
            menuChan=-llRound(llFrand(10000000)+100000000);
            listen_menuChan=llListen(menuChan,"",llGetOwner(),"");
            llDialog(llGetOwner(),"Select name ",buttons,menuChan);
    
        }

     

     

  4. hello friends 

    my problem now i use this script and its worrk well but 

     

    string  TextCode; 
    list dialogButtons = ["Set Text","Say"]; //Defines dialog menu buttons
    string dialogMsg = "\nSelect An Option";
    string dialogMsg2 = "\nPlease select what color you would like your hover text to be.";
    string textbox = "\nWrite what you would like your hover text to say.";
    integer dialogChan;
    integer txtlisten;
    integer dialogHandle;
    
    open_menu(key inputKey, string inputString, list inputList)
    {
        dialogChan = (integer)llFrand(DEBUG_CHANNEL)*-1;
        dialogHandle = llListen(dialogChan, "", inputKey, "");
        llDialog(inputKey, inputString, inputList, dialogChan);
    
    }
     
    
    default
    {  
        state_entry()
        {
    
        }
        
        touch_start(integer num)
        {
            key toucher = llDetectedKey(0);
            if (toucher == llGetOwner())
            {
                open_menu(toucher, dialogMsg, dialogButtons);
            }
            
            else if (toucher != llGetOwner())
            {
                return;
            }
        }
        
        listen(integer chan, string name, key toucher, string msg)
        {   
            if (chan == dialogChan && msg == "Set Text")
            {
                txtlisten = llListen(-94652,"",toucher,"");
                llTextBox(toucher,textbox,-94652); 
    
            }
            
            else if (chan == -94652)
            {
                TextCode = (string)msg;
    
            }
             
    
            else if (chan == dialogChan && msg == "Say")
            {
    llSay(0,TextCode);
            }
            
    
        }
        
    }

     

    when i copy object the script i think restart or same like that i just want save text what i set , but when i copy object and i try to click on ( Say ) i dont see what i set before its empty 

    i hope you get my problem thank you 

  5. hello 

     

    i have group now 

    i want change name of the creator for group 

    i know there is no way 

    but if i remove everyone in the group and the creater leave also from the group 

    can i creat same group with another avatar ?

     

    thanks

×
×
  • Create New...