Advertisement
LGPvS

LudwigOS MPP bot. Version:0.1

Dec 29th, 2016
762
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.16 KB | None | 0 0
  1. // ==UserScript==
  2. // @name LudwigOS's bot
  3. // @namespace multiplayerpiano.com/
  4. // @version 0.1
  5. // @description Lol
  6. // @author LGPvS
  7. // @include http://www.multiplayerpiano.com/*
  8. // @match http://www.multiplayerpiano.com/script.js
  9. // ==/UserScript==
  10.  
  11. /*
  12.  
  13. Tsunami By Braden T™
  14. Type #Tsunami to trigger a Tsunami.alk in this box
  15. Credit to ._., Jeah, -.-, Yoro, Phoenix, Jocke, harold mickeyman (yes his real name was), and *SkyParticle
  16. music while I was programming!
  17. comment pictures credit: sekiun
  18. ░░░░▄▄▄▄▀▀▀▀▀▀▀▀▄▄▄▄▄▄
  19. ░░░░█░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░▀▀▄
  20. ░░░█░░░▒▒▒▒▒▒░░░░░░░░▒▒▒░░█
  21. ░░█░░░░░░▄██▀▄▄░░░░░▄▄▄░░░█
  22. ░▀▒▄▄▄▒░█▀▀▀▀▄▄█░░░██▄▄█░░░█
  23. █▒█▒▄░▀▄▄▄▀░░░░░░░░█░░░▒▒▒▒▒█
  24. █▒█░█▀▄▄░░░░░█▀░░░░▀▄░░▄▀▀▀▄▒█
  25. ░█▀▄░█▄░█▀▄▄░▀░▀▀░▄▄▀░░░░█░░█
  26. ░░█░░▀▄▀█▄▄░█▀▀▀▄▄▄▄▀▀█▀██░█
  27. ░░░█░░██░░▀█▄▄▄█▄▄█▄████░█
  28. ░░░░█░░░▀▀▄░█░░░█░███████░█
  29. ░░░░░▀▄░░░▀▀▄▄▄█▄█▄█▄█▄▀░░█
  30. ░░░░░░░▀▄▄░▒▒▒▒░░░░░░░░░░█
  31. ░░░░░░░░░░▀▀▄▄░▒▒▒▒▒▒▒▒▒▒░█
  32. ░░░░░░░░░░░░░░▀▄▄▄▄▄░░░░░█
  33.  
  34.  
  35. ░░░░░░░░▄▄▀▀█▀▀▀▀▀▄▄░░░░░░░░
  36. ░░░░░░▄▀▓░░▒░░▒▒▒▒▒▒█▄░░░░░░
  37. ░░░░▄█▓▓▓░░░░▒▒▒▒▒▒▒▒█▀▄░░░░
  38. ░░▄▀█▌▓▓▓░░░░▒▒▒▒▒▒▒▒▐▌▓▀▄░░
  39. ░█▓▓█▌▓▄▄▓░░░▒▒▒▒▄▄▒▒▒█▓▓▀▄░
  40. ▄▀▓▓█▌▓▀█▓░░░▒▒▒▒█▓▀▒▄▌▓▓▓▓█
  41. █▓▓▓▄▀▓▓▓▓░░░▒▒▒▒▒▒▒▒░░▌▓▓▓█
  42. ▀▄▓▓█░▀▓▓░░░░░░░▒▒▒▒▒░▄▌▓▓█░
  43. ░█▓▓▓█░▓░░░░░░░░░▒▒▒░░█▓▓▓█░
  44. ░▀▄▓▓█░▐░░▄▄███▄░░░▐░░░▀▄▀░░
  45. ░░▀▄▄▀░▐░░█████▀░░▄▀░░░░░░░░
  46. ░░░░░░░░▀░░▀██▀░▄▀░░░░░░░░░░
  47.  
  48. TROLOLOL
  49. */
  50.  
  51. var a;
  52. var b;
  53. var input;
  54.  
  55. function sendChat(msg) { //haha had to disable tsunami v 1.0 on mpp while making this
  56. MPP.chat.send(msg);
  57. }
  58.  
  59. MPP.client.on("a", function (msg) {
  60. a = msg.a.split(' ');
  61. b = a[0];
  62. input = msg.a.substring(b.length).trim(); // <--- for if I make more commands :D
  63.  
  64. if (b == "/tsunami") {
  65. sendChat("Reading MIDI effect:Name:/tsunami");
  66. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 50)}); // could i make the code not so big?
  67. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 55)}); // yes. yes i could.
  68. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 60)}); // but a m just too lazy for that :3
  69. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 65)}); // maybe in 2.5 ;D
  70. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 70)});
  71. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 50)});
  72. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 55)});
  73. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 60)});
  74. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 65)});
  75. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 70)});
  76. }
  77.  
  78. if (b == "/h") {
  79. MPP.chat.send("Commands: /help or /h, /tsunami. Fishing Commands: /fish, /eat. About: /about, /version");
  80. }
  81.  
  82. if (b == "/help") {
  83. MPP.chat.send("Commands: /help or /h, /tsunami. Fishing Commands: /fish, /eat. About: /about, /version");
  84. }
  85.  
  86. if (b == "/fish") {
  87. MPP.chat.send("You fishing...");
  88. MPP.chat.send("Fished fish");
  89. }
  90.  
  91. if (b == "/eat") {
  92. MPP.chat.send("You eat a fish");
  93. }
  94.  
  95. if (b == "/about") {
  96. MPP.chat.send("Author:LGPvS,Pastebin:http://pastebin.com/u/LGPvS");
  97. }
  98.  
  99. if (b == "/version") {
  100. MPP.chat.send("Version:0.1");
  101. }
  102.  
  103. part.cursorDiv = undefined;
  104. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement