Jump to content

Script to achieve immortality


AlexandreLois1
 Share

You are about to reply to a thread that has been inactive for 2451 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts


AlexandreLois1 wrote:

Thank U.
And
there is a script
to
my avatar
went
to other
avatars
by yourself?

I think your question is "is there a script to move my avatar to other avatars on its own?"

As I said, you could implement that in LSL via a scripted attachment using LSL commands although I agree with Freya, a bot would be better but it does depend on what you are trying to achieve.

Link to comment
Share on other sites

I found the script chat bot. An error. How to fix it. I put this script in the avatar
Here is a screen

http://gyazo.com/383b603f01276d8c4acff2321ae4fe02

 

 


// Original script by John Jamison john at imagilearning.com
// Mods by Ferd Frederix for various speakers
// resets when rezzed to establish listener.
// checks for > 100 chars, which Google ignores

string getLang (key id)
{
string lang = llGetAgentLanguage(id);

if (lang != "zh-CN" && lang != "zh-TW")
{
lang = llGetSubString(lang,0,1);
}
return lang;
}

default
{
state_entry() {

llListen(PUBLIC_CHANNEL,"","","");
llSetText("Text 2 Voice",<1,1,1>,1.0);
string URL = "http://translate.google.com/translate_tts?ie=utf-8&tl=en&q=" + llEscapeURL("Hello, chat to speech is ready!");
//URL = "http://www.free-lsl-scripts.com";
llSetPrimMediaParams(1,[PRIM_MEDIA_CONTROLS,PRIM_MEDIA_CONTROLS_STANDARD,PRIM_MEDIA_HOME_URL,URL,PRIM_MEDIA_AUTO_PLAY,TRUE]);
}

listen(integer chan, string name, key id, string message)
{
if (llStringLength(message) < 100) {
llSetText("Text 2 Voice",<1,1,1>,1.0);
string URL = "http://translate.google.com/translate_tts?ie=utf-8&tl=" + getLang(id) + "&q="+llEscapeURL(message);
//llOwnerSay(URL);
llSetPrimMediaParams(1,[PRIM_MEDIA_CONTROLS,PRIM_MEDIA_CONTROLS_STANDARD,PRIM_MEDIA_CURRENT_URL,URL,PRIM_MEDIA_AUTO_PLAY,TRUE]);
} else {
llSetText("Text 2 Long",<1,0,0>,1.0);
}
}

on_rez(integer start_param) {
// Restarts the script every time the object is rezzed
llResetScript();
}

}

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2451 days.

Please take a moment to consider if this thread is worth bumping.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...