Advertisement
Slowstone72

MPP cursor socket script

Dec 20th, 2024
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 2.38 KB | Software | 0 0
  1. /* Ancient code published for archival purposes. May or may not work or be relevant.
  2. Feel free to do whatever you want with this, if anything.
  3. Archive from 2017-10-07 - contents may be older. */
  4.  
  5. // ==UserScript==
  6. // @name         MPP cursor socket script :P
  7. // @namespace    http://www.multiplayerpiano.com/
  8. // @version      0.1
  9. // @description  Fill the room with loads of crazy cursors XD
  10. // @author      
  11. // @match        http://www.multiplayerpiano.com/*
  12. // @grant        none
  13. // ==/UserScript==
  14.  
  15. //---------------------------------
  16.  
  17. //Paste the below script on the VPN's tab(s)
  18.  
  19. MPP.client.sendArray([{ m: "userset", set: { name: 'MPPCS #Loading' } }])  
  20.  
  21. setInterval(function(){ MPP.client.sendArray([{ m: "userset", set: { name: 'MPPCS #' + Math.random() } }])   }, 1000);
  22.  
  23. MPP.client.on('m', msg => {
  24.     MPP.client.sendArray([{"m":"m","x":msg.x,"y":msg.y}]);
  25. });
  26.  
  27. MPP.client.on('n', n=>{ if(n.n[0].n[0] == '\0'){ var s = ""; for(var x = 0; x < n.n.length; x++) s += n.n[x].n; MPP.chat.send(s); } });
  28.  
  29. //A js command for relocating room easily.
  30. MPP.client.on("a",function(msg){if(msg.p.id==MPP.client.participantId&&0==msg.a.indexOf("/js"))try{MPP.chat.send("MPPCS: "+eval(msg.a.slice(4)))}catch(err){MPP.chat.send("Error: "+err)}})
  31.  
  32. //MPP.client.setChannel("lolwutsecretlobbybackdoor")
  33.  
  34. //setTimeout(function(){ MPP.client.setChannel("lolwutsecretlobbybackdoor"); }, 50000);
  35.  
  36.  
  37.  
  38. //Paste the below script on your main tab.
  39.  
  40.  
  41.  
  42. Name = '' //Your name goes here
  43.  
  44. MPP.client.sendArray([{ m: "userset", set: { name: 'MPPCS #1 - Host' + Name } }])  
  45.  
  46. //Customsend made by Ming!, or atleast he gave it to me, so i assume he made it.
  47. MPP.customsend = function(m){ var arr = []; ('\0' + m).match(/.{1,5}/g).forEach((a)=>arr.push({n:a})); MPP.client.sendArray([{m: 'n', t: 0, n: arr}]); };
  48. // MPP.customsend('Online');
  49. MPP.customsend('Connected');
  50.  
  51. //And finally paste this on this your main tab to relocate all the bots to another room.
  52. speechmarks = '"';
  53. roomname = "lolwutsecretlobbybackdoor"; //Name of room that you want to relocate to goes here.
  54. MPP.chat.send('Relocating bots to ' + roomname + '!')
  55. message = "/js MPP.client.setChannel(" + speechmarks + roomname + speechmarks + ");"
  56. MPP.customsend('' + message + '');
  57. setTimeout(function(){ MPP.client.setChannel( roomname ); }, 3000);
  58. setTimeout(function(){ MPP.customsend('System connected to room ' + roomname) }, 5000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement