Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name MPP Piano Boom!
- // @namespace http://tampermonkey.net/
- // @version 0.1.1
- // @description Make everyone's ears explode! >:D
- // @author ๖ۣۜTehc
- // @match http://www.multiplayerpiano.com/*
- // @grant none
- // ==/UserScript==
- window.l = 100;
- (function() {
- 'use strict';
- setInterval(() => {
- MPP.noteQuota.points = Number.MAX_SAFE_INTEGER;
- }, 50);
- let timed = () => {
- MPP.chat.send(`Prepare your ears!`);
- setTimeout(() => {
- MPP.chat.send(`3...`);
- setTimeout(() => {
- MPP.chat.send(`2...`);
- setTimeout(() => {
- MPP.chat.send(`1...`);
- setTimeout(() => {
- MPP.chat.send(`KABOOM!`);
- Object.keys(MPP.piano.keys).forEach((key, i) => {
- MPP.press(key, l);
- });
- }, 1000);
- }, 1000);
- }, 1000);
- }, 1000);
- }
- let untimed = () => {
- Object.keys(MPP.piano.keys).forEach((key, i) => {
- MPP.press(key, l);
- });
- }
- document.onkeydown=(e)=>{e=e||window.event; switch(e.keyCode){ case 38:timed();break; case 40:untimed();break;}};
- })();
Advertisement
Add Comment
Please, Sign In to add comment