Advertisement
LGPvS

Multiplayer Piano auto change name code:Batery time

Sep 11th, 2016
672
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. // ==UserScript==
  2. // @name 18291change name
  3. // @namespace http://www.multiplayerpiano.com/
  4. // @description Modded Script For Multiplayerpiano.com
  5. // @include http://www.multiplayerpiano.com/*
  6. // @match http://www.multiplayerpiano.com/script.js
  7. // ==/UserScript==
  8.  
  9. if (typeof(done) === "undefined") {
  10. var selfName = "Battery:"; // <-- your name here
  11.  
  12. var done = true;
  13. var counter = 0;
  14. function updateName(name) {
  15. MPP.client.sendArray([
  16. {
  17. m: "userset",
  18. set:
  19. {
  20. name: name
  21. }
  22. }])
  23. };
  24. var groceryList = ["|||||||||| 0%", "█|||||||| 10%", "██|||||||| 20%",
  25. "███||||||| 30%", "████|||||| 40%", "█████||||| 50%", "██████|||| 60%", "███████||| 70%", "████████|| 80%", "█████████| 90%", "██████████ 100%", "Loaded","██████████ 100%","█████████| 90%","████████|| 80%","███████||| 70%","██████|||| 60%","█████||||| 50%","████|||||| 40%","███||||||| 30%","██|||||||| 20%","█|||||||| 10%","|||||||||| 0%","Low battery. 1 min to connect it"];
  26.  
  27. var foo = setInterval( function() {
  28. if (counter < groceryList.length - 1) {
  29. counter++;
  30. updateName(`${selfName} ${groceryList[counter]}`)
  31. } else {
  32. counter = 0;
  33. updateName(`${selfName} ${groceryList[counter]}`)
  34. }
  35. }, 60000);
  36. MPP.chat.send("LGPvS's batery name changer: http://pastebin.com/3MaGPraa");
  37. } else {
  38. console.info("==You already pasted this!==\nReload the page and paste again if you'd like to see any changes you made to the script.");
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement