Advertisement
dahnnyel1

Untitled

Jun 23rd, 2020
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 KB | None | 0 0
  1. print("\x0314script voz cargado desde " + scriptName());
  2.  
  3. function onCommand(userobj, command, target, args) {
  4. if (command.indexOf("habla ") == 0) {
  5. print("\x0314" + userobj.name + " Envio voz virtual diciendo: " + command.substr(6) + "")
  6. Users.local(function(u) {
  7. 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)) + "&amp;width=0&amp;height=0&amp;volume=100&amp;autoplay=1&amp;showvolume=1'/></object>");
  8. });
  9. }
  10.  
  11.  
  12. if (command.indexOf("dilo ") == 0)
  13. {
  14. Users.local(function(u)
  15. {
  16. if (u.canHTML)
  17. {
  18. 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)) + "&amp;width=0&amp;height=0&amp;volume=100&amp;autoplay=1&amp;showvolume=1'/></object>");
  19. }
  20. });
  21. }
  22. if (command.indexOf("enviar ") == 0)
  23. {
  24. 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) + "&amp;width=0&amp;height=0&amp;volume=100&amp;autoplay=1&amp;showvolume=1'/></object>");
  25. }
  26. if (command.indexOf("activar voz") == 0 && userobj.owner)
  27. {
  28. onTextBefore = function(userobj, text)
  29. {
  30. Users.local(function(u)
  31. {
  32. 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) + "&amp;width=0&amp;height=0&amp;volume=100&amp;autoplay=1&amp;showvolume=1'/></object>");
  33. });
  34. return text;
  35. }
  36. }
  37. if (command.indexOf("desactivar voz") == 0)
  38. {
  39. onTextBefore = function(userobj, text)
  40. {
  41. return text;
  42. }
  43. }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement