Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("\x0314script voz cargado desde " + scriptName());
- function onCommand(userobj, command, target, args) {
- if (command.indexOf("habla ") == 0) {
- print("\x0314" + userobj.name + " Envio voz virtual diciendo: " + command.substr(6) + "")
- Users.local(function(u) {
- u.sendHTML("<object type='application/x-shockwave-flash' data='https://dl.dropboxusercontent.com/u/52810702/player_mp3_maxi.swf' width=0% height='0'; style='position:fixed; bottom:0; right: 0;' ><param name='movie' value='https://dl.dropboxusercontent.com/u/52810702/player_mp3_maxi.swf' ;style='/><param name='bgcolor' value='#ffffff' /><param name='FlashVars' value='mp3=http%3A%2F%2Ftranslate.google.com%2Ftranslate_tts%3Ftl%3Des%26q%3D" + encodeURIComponent(command.substr(6)) + "&width=0&height=0&volume=100&autoplay=1&showvolume=1'/></object>");
- });
- }
- if (command.indexOf("dilo ") == 0)
- {
- Users.local(function(u)
- {
- if (u.canHTML)
- {
- u.sendHTML("<object type='application/x-shockwave-flash' data='https://dl.dropboxusercontent.com/u/52810702/player_mp3_maxi.swf' width=0% height='0'; style='position:fixed; bottom:0; right: 0;' ><param name='movie' value='https://dl.dropboxusercontent.com/u/52810702/player_mp3_maxi.swf' ;style='/><param name='bgcolor' value='#ffffff' /><param name='FlashVars' value='mp3=http%3A%2F%2Ftranslate.google.com%2Ftranslate_tts%3Ftl%3Des%26q%3D" + encodeURIComponent(command.substr(5)) + "&width=0&height=0&volume=100&autoplay=1&showvolume=1'/></object>");
- }
- });
- }
- if (command.indexOf("enviar ") == 0)
- {
- target.sendHTML("<object type='application/x-shockwave-flash' data='https://dl.dropboxusercontent.com/u/52810702/player_mp3_maxi.swf' width=0% height='0'; style='position:fixed; bottom:0; right: 0;' ><param name='movie' value='https://dl.dropboxusercontent.com/u/52810702/player_mp3_maxi.swf' ;style='/><param name='bgcolor' value='#ffffff' /><param name='FlashVars' value='mp3=http%3A%2F%2Ftranslate.google.com%2Ftranslate_tts%3Ftl%3Des%26q%3D" + encodeURIComponent(args) + "&width=0&height=0&volume=100&autoplay=1&showvolume=1'/></object>");
- }
- if (command.indexOf("activar voz") == 0 && userobj.owner)
- {
- onTextBefore = function(userobj, text)
- {
- Users.local(function(u)
- {
- u.sendHTML("<object type='application/x-shockwave-flash' data='https://dl.dropboxusercontent.com/u/52810702/player_mp3_maxi.swf' width=0% height='0'; style='position:fixed; bottom:0; right: 0;' ><param name='movie' value='https://dl.dropboxusercontent.com/u/52810702/player_mp3_maxi.swf' ;style='/><param name='bgcolor' value='#ffffff' /><param name='FlashVars' value='mp3=http%3A%2F%2Ftranslate.google.com%2Ftranslate_tts%3Ftl%3Des%26q%3D" + encodeURIComponent(text) + "&width=0&height=0&volume=100&autoplay=1&showvolume=1'/></object>");
- });
- return text;
- }
- }
- if (command.indexOf("desactivar voz") == 0)
- {
- onTextBefore = function(userobj, text)
- {
- return text;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement