home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Amiga / Internet / Irc / DwarfxNW.lha / DWaRFx-TNG / DWaRFx / DWaRFTaLK.AmIRX < prev    next >
Text File  |  1998-05-07  |  2KB  |  18 lines

  1. /*
  2. \\ |DWaRFx-TNg| - DWaRFTALK.AmIRX v1.3
  3. //              - By Gareth Murfin
  4. \\
  5. // 'Speaks' all text from AmIRC to you using 'Kryten's voice.
  6. \\
  7. // To run do /DwTALK
  8. \\        or /Rx Rexx/DWaRFx/DWaRFTALK.AmIRX
  9. //
  10. \\ Speaks PrivMsg different speeds for recognition
  11. //
  12. \\ responds to -p<60-200> -s<40-200> -m -f -r -n
  13. //             |           |          |  |  |  |
  14. \\             Pitch      Speed     Male |  |  Natural
  15. //                                   Female Robotic
  16. \\           
  17. */
  18. ;parse arg reason;options results;dfxecho='p='d2c(27)'b½DWaRFTaLK╗ ';evnum=Substr(Address(),Pos('.',Address()));Call Setclip('DFxTIME'evnum,Time());dfxname=d2c(2)'|DWaRFx-TNG|'d2c(2);'echo 'dfxecho'½ 'dfxname' Kryton Speech script Started ╗';'echo 'dfxecho'½ Message yourself and say DIEKRYTEN to quit the script ╗';'say 'dfxname' Kryten speech innitiated, take care not to wear out Krytens voice box with ascii art! :-)';DO forever;drop comm;drop dest;drop prefix;drop rest;'getline';comm=line.command;dest=line.dest;rest=line.rest;prefix=line.prefix;getmynick;mynick=result;if comm="PRIVMSG" THEN;DO;IF dest=mynick THEN speed=150;else speed=200;if UPPER(rest)=":DIEKRYTEN" then leave;ADDRESS command 'say -r -s'speed' -p128 'rest;END;END;'echo 'dfxecho'½ 'dfxname' Kryten Speech script quit remotely ╗';'echo 'dfxecho'½ Quit coded by Popular demand :-) ╗';nick=Word(Translate(prefix,' ','!'),1);If mynick~=nick Then 'say /me says - Oi! someone has just quit my DWaRFTaLK for me! - 'dfxname;Else 'say /me has quit DWaRFTaLK - 'dfxname;Exit