Don't click here unless you want to be banned.

LSL Wiki : LibrarySiRiSInABox

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl435.us.archive.org
I recently was able to obtain a copy of SiRiS Asturias brain from Sourceforge and get it running in a prim. This script can be placed in ANY prim, and it will be able to answer ANY scripting question you ask it.

SiRiS's Brain is completely public domain. Look at it, modify it, sell it in an item, whatever. But I'll be annoyed if you scam noobs into buying it.
//SiRiS in a Box, by Redux Dengaku 1/19/07
default
{
    state_entry()
    {
        llListen(0, "", llGetOwner(), "");  //Begin listening
        llOwnerSay("This magical box contains the brain of SiRiS.  Ask it any LSL related question and ye shall recieve wisdom!");
    }
    
    on_rez(integer num)
    {
        llResetScript();
    }

    listen(integer chan, string name, key id, string msg)
    {
        if(llFrand(4) < 1)  //After so many questions, SiRiS needs sleep
        {
            llOwnerSay("I... I'm so sleepy!");
            llSleep(llFrand(43200));
        }
        
        string command = llList2String(llParseString2List(msg, [" "], []), 0);  //Obtain the first word of the string
        if(llListFindList(["how", "what", "where", "can", "does"], [llToLower(command)]) + 1) //Check the first word against a list of question words
        {
            llOwnerSay("RTFW!");  //Answer the question
            llLoadURL(id, "RTFW?", "http://lslwiki.com");  //Redirect to the appropriate URL
        }
    }
}

If you fail to get a response from your SiRiS box, it probably needs sleep, so you may need to wait for a response.
There is no comment on this page. [Display comments/form]