| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

door with password

Page history last edited by antonella.berriolo@... 14 years, 7 months ago

IMPORTANT: ALWASY CLEAN THE SCRIPT FROM UNWANTED CODES BY PASTING ON A NOTEPAD. THE COPY IT FROM THE NOTEPAD AND PASTE IT ON THE SL SCRIPT.

 

//Script by Deevyde Maelstrom of the Brainiacs

//Feel free to do whatever you want with it, but keep this header please :)

default //A door that asks for a password when touched, and if an incorrect or no password is given, launches the would-be interloper skywards

{

    touch_start(integer num_detected)

    {

        llSay(0, "inserire la password in chat, grazie.");

        llSetTimerEvent(20);

        llListen(0, "", NULL_KEY, "");

    }

    listen(integer channel, string name, key id, string message)

    {

        if (message == "chiave")

        {

            llSay(0, "BRAVI!!!");

            llSetStatus(STATUS_PHANTOM, TRUE);

            llSetTimerEvent(1000);

            llSetTexture("64249c8d-054e-e567-04f9-bc7fee8d1a9c", ALL_SIDES);

            llSleep(10);

            llSetStatus(STATUS_PHANTOM, FALSE);

            llSetTexture("bf21b327-ffae-07e6-ed28-4bca9ab9aa0e", ALL_SIDES);

            llResetScript();

        }

       

        else if (message != "chiave")

        {

            llSay(0, "Sbagliato! Riprova!");

            llSensor("", NULL_KEY, AGENT, 30, PI);

        }

    }

    timer()

    {

        llSay(0, "Tempo scaduto");

        llSensor("", NULL_KEY, AGENT, 30, PI);

    }

    sensor(integer total_number)

    {

        llPushObject(llDetectedKey(0),<0,0,-10000>, <0,0,0>, FALSE);

        llResetScript();

    }

}

Comments (0)

You don't have permission to comment on this page.