Jump to content

AnaZofia

Resident
  • Posts

    16
  • Joined

  • Last visited

Posts posted by AnaZofia

  1. I got an error message on this script: " Name not defined within scope", on the "if (primName == name) // check the name" line

    What is wrong with the script?

     

    SetATexture(string to, string from) 
    { 
        integer i;        // defaults to zero 
        integer j = llGetNumberOfPrims(); 
    
        for (; i < j; i++)   // scan over all prims from 0 to Number of Prims (1 or more) 
        { 
            string primName = llGetLinkName(i);    // get the name of the prim 
            if (primName == name)        // check the name 
            { 
                llSettexture(name, ALL_SIDES);        // set the alpha we were sent 
            } 
        } 
    }

     

  2. I cant get it to work... can you please help me?

     

    integer CHANNEL = 55;integer total;generalParticleEmitterOn()                (xxx cutted long script)default{        on_rez(integer s)    {//       llResetScript();    }    state_entry()    {        updateText();//        {generalParticleEmitterOn();        llListen(CHANNEL, "", llGetOwner(), "");    }       money (key giver, integer amount) {        llSay(0, "Thanks for the " + (string)amount + "L$, " + llKey2Name(giver));        total+=amount;        updateText();        generalParticleEmitterOn();                            }        touch_start(integer count)    {        if(llDetectedKey(0)==llGetOwner())        {            llDialog(llDetectedKey(0), "Clear total amount?", ["Yes","No"], CHANNEL);        }    }        listen(integer channel, string name, key id, string message)    {        if( message=="Yes" && id==llGetOwner() )        {            total = 0;            updateText();        }    }}

     

  3. I have a script that listen for incoming message (/10 text) on channel 10

    The message from users wil be like:      message, ID, message

    example: 

    /10 hi, JKY67, is the name (the, JKY67, is the id and will be different every time. The id is not a uuid key or avatar name))

    answer i want from my script: you, JKY67, must try this

    How can i pick up the ID (...., ID ,.....) that is between "," and insert that ID in the answer i post back to the user?

     

  4. Hi Im trying to get a script to work 

    Can anyone please help me? (im new to scripting)

    Here is what i gotso far:

     

    default
    {
        state_entry()
        {
            llListen( 10, "", NULL_KEY, "" ); 
        }
        listen( integer channel, string name, key id, string message )
        {
            if ( message == "open sesame" )
            {
                llWhisper( 0, "Welcome, sesame!" );
               
            }
            
            {
            if ( message == "open" )
            {
                llWhisper( 0, "Welcome, open!" );
           
            }
            {
            if ( message == "open3" )
            {
                llWhisper( 0, "Welcome, open3!" );
               
            }
            
            
            
            
            else
            {
                llWhisper( 0, "That's not the magic word." );
              
            }
        }
    }
    }
    }

     

×
×
  • Create New...