http://www.clearnightsky.com/node/256
====================
From the link
====================
September 19th is Speak Like a Pirate Day. In honor of this festive occasion, I would like to offer the following service. A PHP script hosted on our servers that translates "normal" speak into piratespeak, and a matching Second Life script that uses the service for in-world translation.
Here's how it works. You talk to the parrot on a private channel. It speaks your words in piratespeak outloud.
To make your own pirate parrot...
- first, get a parrot. I got mine on Parrot Island.
- Put the pirate script into the parrot.
- Give the parrot an appropriate name.
- Wear the parrot on your shoulder.
- Prefix your chat messages with /741 so the parrot can hear you.
CODE
key speakerKey;
key requestid;
default
{
state_entry()
{
llListen(741, "", llGetOwner(), "");
}
listen(integer channel, string name, key id, string message)
{
speakerKey = id;
message = llToLower(message);
requestid = llHTTPRequest("http://donnigan.clearink.net/lslpirate/index.php?input="+llEscapeURL(message),[HTTP_METHOD,"GET"],"");
}
http_response(key request_id, integer status, list metadata, string body)
{
llSay(0,body);
}
}