Remote Message Sender

Written by: Headmaster
// I WILL EAT YOUR BRAIN IF YOU USE THIS AS A GRIEFER TOOL.
// Happy Holidays, White Fox
 
string avi = "";
string target = "UUID HERE";
 
ParseAndIssueCommand(string cmd)
{
    string first = llGetSubString(cmd,0,0);
    if (first == "/")
    {
        if (llSubStringIndex(cmd, " ") == -1)
            llSetText("",<0,1,0>,1.0);
        else
            llSetText((avi + llGetSubString(cmd, llSubStringIndex(cmd, " "),-1)),<0,1,0>,1.0);
    }
    else
        llInstantMessage(target,"you have been spanked, with the message: "+ cmd + " - Sent by: " + avi +".");
}
 
default
{
    state_entry()
    {
        llListen(0,"",NULL_KEY,"");
    }
 
    on_rez(integer start_param)
    {
        //llResetScript();
    }  
 
    listen(integer channel, string name, key id, string msg)
    {
        avi = llGetSubString(name, 0, llSubStringIndex(name, " ")-1);
        ParseAndIssueCommand(msg);
    }
}

 

Category: