Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name 18291change name
- // @namespace http://www.multiplayerpiano.com/
- // @description Modded Script For Multiplayerpiano.com
- // @include http://www.multiplayerpiano.com/*
- // @match http://www.multiplayerpiano.com/script.js
- // ==/UserScript==
- if (typeof(done) === "undefined") {
- var selfName = "Battery:"; // <-- your name here
- var done = true;
- var counter = 0;
- function updateName(name) {
- MPP.client.sendArray([
- {
- m: "userset",
- set:
- {
- name: name
- }
- }])
- };
- var groceryList = ["|||||||||| 0%", "█|||||||| 10%", "██|||||||| 20%",
- "███||||||| 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"];
- var foo = setInterval( function() {
- if (counter < groceryList.length - 1) {
- counter++;
- updateName(`${selfName} ${groceryList[counter]}`)
- } else {
- counter = 0;
- updateName(`${selfName} ${groceryList[counter]}`)
- }
- }, 60000);
- MPP.chat.send("LGPvS's batery name changer: http://pastebin.com/3MaGPraa");
- } else {
- 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.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement