Shoutbox

[REL]AutoTalker 2.0 (Now with 28 Talkers) - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [REL]AutoTalker 2.0 (Now with 28 Talkers) (/showthread.php?tid=64091)

[REL]AutoTalker 2.0 (Now with 28 Talkers) by Silentdragon on 07-27-2006 at 10:22 AM

Applies an autotalker to your chat and optionally your PSM. For those who don't know what that means, it changes your text based on a pattern found in a file.

Credits to Original Authors
Most are adaptions of stuffplug versions.
Included talkers are:

  • Reverse - Turn all your text backwards
  • French - Gives you a french accent(not much)
  • Al Bhed - Translates your text to Al Bhed
  • Jive - Talk JIBE and be the of all those honkyfools.(FUN)
  • Morse - Converts your text to morse code
  • L33t - Leetifies your text a bit
  • Bambi - Randomly Colors Each Letter
  • bambidark -  Randomly Colors Each Letter(Darker)
  • big - Turn your text into giant letters
  • bin - Convert text to Binary
  • booage - Add -age to each word
  • bork - Be a swedish chef
  • cword - Randomly Colors each Word
  • fudd - Elmer Fudd Wubs You
  • halfrot - Half rotation character swap
  • hex - Convert text to Hex
  • java - Convert B's to 8's
  • lafrican - Africanize language
  • lame - Talk like a lamer
  • matrix - Matrix Style Chatting
  • MD5 - MD5 Hash of text
  • nato - Codeword each letter(a= alpha, b= bravo, etc)
  • Piglatin - Changes into piglatin text
  • rot13 - Applies Rot13 to text(Rotates 13 places)
  • scramble - Scrambles your text
  • scramread - Scrambles your text(not as much)
  • yoda - Speak like yoda you want, hmm?

Instructions:
Apply these by going to AutoTalker in the Plus! Menu.

Make your own:
To create your own make a text file in the MsgPlusDir/Scripts/AutoTalker/Talkers directory with the format of:
Text(Can be RegExp)<tab>Text to replace with

Or

A Javascript file with the function Main(Arg) that returns the modified text.

Look at other talkers for reference.

Enjoy.

-2.0
--Add JScript Support for talkers
--Security added to stop talkers from messing with files or dlls
--Fixed bug where non txt/js files would show up in the menu

-1.1
--Fixed bug where if you had debugging options on it would load the debugger window
--Added a # in front of the current talker in the list

-1.0
--Initial Release
RE: [REL]AutoTalker 1.0 by MattyRid on 07-27-2006 at 10:56 AM

Nice script. Working nicely (Y)


RE: [REL]AutoTalker 1.0 by Felu on 07-27-2006 at 10:59 AM

Bug : Whenever a message is sent and Auto Talker is enabled(running) 's' is replaced by 'z'.


Fixed


RE: [REL]AutoTalker 1.0 by MattyRid on 07-27-2006 at 11:02 AM

check which one you are using ;) ..must be the french one you are using


RE: [REL]AutoTalker 1.0 by Felu on 07-27-2006 at 11:04 AM

quote:
Originally posted by MattyRid
check which one you are using (Smilie) ..must be the french one you are using
Nah.... happens with none too [Image: xso_undecided.gif].
RE: [REL]AutoTalker 1.0 by MattyRid on 07-27-2006 at 11:05 AM

I don't have that problem...strange it is


RE: [REL]AutoTalker 1.0 by Mopageboy on 07-27-2006 at 11:15 AM

um sorry to be noobish, but how exactly do i use this script


RE: [REL]AutoTalker 1.1 by Silentdragon on 07-27-2006 at 05:19 PM

First off new version does some minor things but eh.
-1.1
--Fixed bug where if you had debugging options on it would load the debugger window
--Added a # in front of the current talker in the list

Second. The s=z thing doesn't make much sense. If the talker is set to none no conversion can take place at all, so make sure you really did pick none. If it still has issues I'll look into it more.

Third. Mopageboy, In the little Plus! menu you click auto talker then pick a talker to use. It'll autoconvert your text based on what the talker's about. Set it to None to stop it from applying to your text.


RE: [REL]AutoTalker 1.1 by Mopageboy on 07-28-2006 at 08:01 AM

lol thanks... i didnt even realise that menu had that stuff in it :P i thought that whole thing dissapeared from plus :P

you should add a drunken slurred speech, or maybe i'll try...


RE: [REL]AutoTalker 1.1 by M a t t y on 07-28-2006 at 03:44 PM

Works well, nice script:)(Y)


RE: [REL]AutoTalker 1.1 by hosey on 07-30-2006 at 08:17 AM

nice script!! 10 out of 10!!! gunna have fun using this script!!


RE: [REL]AutoTalker 2.0 (Now with 28 Talkers) by Silentdragon on 08-13-2006 at 07:03 AM

Version 2.0 is out. Now with Javascript support. Enjoy!


RE: [REL]AutoTalker 2.0 (Now with 28 Talkers) by hosey on 08-13-2006 at 07:25 AM

version 2.0 rocks! i like it with more of them!


RE: [REL]AutoTalker 2.0 (Now with 28 Talkers) by Yetike on 09-11-2006 at 12:36 PM

Good day :)

I was wondering about making a simple emoticon replacing talker, however, your script recognizes emoticons not by its codes, but by something else.
My other prob that I was trying to replace the emoticons with some other characters, but I noticed that in some cases the replacement doesn't work, it even makes the script ignore the whole file (I tried to do it in txt, since I don't know anything about Java)

Working sample:

_DDDD       |:Dd
_DDD         |:Dc
_DD           |:Db
_D             |:Da

Not working sample:
_$              |:$a
_'((            |:'(a

Could you fix the problems with the characters/emoticons?
Or at least list the invalid characters?

Thanks in advance:
YeTiKe

(the reason I tried to do it in a txt file is because it is easier to manage than Quick Texts)


RE: [REL]AutoTalker 2.0 (Now with 28 Talkers) by laurenz on 09-12-2006 at 05:13 PM

i'd like to request a talker that shuffles all letters in a word, except for the first and last letter of that word.
so something like example becomes emaplxe.

Im requesting this because i have readed somewhere that you can mix all letters in a word, as long as the first and last letter keep in place. because you don't look at the whole word, but only at the first and last letter.

so i tinhk taht wlil gvie qiute a fnuny efefct?
So what do you guys think about this?
wanna give it a shot?


RE: [REL]AutoTalker 2.0 (Now with 28 Talkers) by Matti on 09-12-2006 at 05:47 PM

quote:
Originally posted by laurenz
i'd like to request a talker that shuffles all letters in a word, except for the first and last letter of that word.
so something like example becomes emaplxe.

Im requesting this because i have readed somewhere that you can mix all letters in a word, as long as the first and last letter keep in place. because you don't look at the whole word, but only at the first and last letter.

so i tinhk taht wlil gvie qiute a fnuny efefct?
So what do you guys think about this?
wanna give it a shot?
No problem, I'll try it right now! :)
RE: [REL]AutoTalker 2.0 (Now with 28 Talkers) by Silentdragon on 09-12-2006 at 05:55 PM

The smiley thing, I'm not sure what you're talking about. PM me with more details?


The other thing:

code:
//Credits to Original Author(s)
//Adapted to AutoTalker by Silentdragon
//Modified to preserve first and last letters
function wordscramble(word) {
    var newword="";
    var oldword=word;
    var i=0;
    while (oldword.length > 0) {
        i=Math.round(Math.random()*(oldword.length-1))+1;
        newword=newword+oldword.charAt(i-1);
        oldword=oldword.substr(0,i-1) + oldword.substr(i);
    }
    return newword;
}

function Main(input) {
    var words=input.split(" ");
    var i=0;
    var output="";
    while (i<words.length) {
        if(words[i].length < 4){ i++; continue; }
        output=output+words[i].substr(0,1)+wordscramble(words[i].substr(1,words[i].length-2))+words[i].substr(words[i].length-1)+" ";
        i++;
    }
    return output.substr(0,output.length-1);
}

Dunno if it works, just modified the scramble code.
RE: [REL]AutoTalker 2.0 (Now with 28 Talkers) by Matti on 09-12-2006 at 06:22 PM

Damn... Why are people always quicker than me? :(
Anyway, if you would still be interested:

code:
//Note: place this in a new .js file in C:\Program Files\Messenger Plus! Live\Scripts\AutoTalker\Talkers
function Main(Arg) {
   var tmp = Arg.split(" ");
   for(i in tmp) {
      if(tmp[i].length >= 4) {
         tmp[i] = (tmp[i].charAt(0)) + wordscramble(tmp[i].substring(1, tmp[i].length-1)) + (tmp[i].charAt(tmp[i].length-1));
      }
   }
   return tmp.join(" ");
}

//Original function from the scramble talker
function wordscramble(word) {
   var newword="";
   var oldword=word;
   var i=0;
   while (oldword.length > 0) {
      i=Math.round(Math.random()*(oldword.length-1))+1;
      newword=newword+oldword.charAt(i-1);
      oldword=oldword.substr(0,i-1) + oldword.substr(i);
   }
   return newword;
}

RE: [REL]AutoTalker 2.0 (Now with 28 Talkers) by Yetike on 09-13-2006 at 02:32 AM

Well, I noticed that the script doesn't replace smileys (I have tried it with :D and :) - might have experienced it because there are ":" signs in them?