Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Nuclear Bomb bot MPP
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description LOL
- // @author LudwigOS
- // @match http://www.multiplayerpiano.com/*
- // @match http://www.ourworldofpixels.com/piano/*
- // @match http://mpp.meowbin.com/*
- // @grant none
- // ==/UserScript==
- var naclful;
- var nuclear = [];
- var adminsusers = [];
- var activatedmush;
- var nuclir;
- var nucleoor;
- nuclear.atom = { };
- nuclear.hydrogen = { };
- nuclear.starttsarbomb = [];
- nuclear.start = [];
- nuclear.starttheotsarbomb = [];
- MPP.client.on("a", function (msg) {
- a = msg.a.split(' ');
- b = a[0];
- input = msg.a.substring(b.length).trim(); // <--- for if I make more commands :D
- NoteQuota.prototype.spend = () => true;
- var msgArr = msg.a.split(' ');
- if ((adminsusers.indexOf(msg.p._id) > - 1) || (msg.p.id==MPP.client.getOwnParticipant().id)){ if (msgArr[0] == '/js' ) { try { MPP.chat.send("> "+ input);MPP.chat.send('< '+JSON.stringify(eval(msg.a.substr(msgArr[0].length).trim()))); } catch (error) { MPP.chat.send('ⓧ '+error); } } }
- if (nuclear.atom[msg.p._id] == null) nuclear.atom[msg.p._id] = 0;
- if (nuclear.hydrogen[msg.p._id] == null) nuclear.hydrogen[msg.p._id] = 0;
- if (nuclear.atom[msg.p._id] >7, nuclear.hydrogen[msg.p._id] > 7) {nuclear.starttsarbomb.push(msg.p._id);}
- if (nuclear.atom[msg.p._id] >15, nuclear.hydrogen[msg.p._id] > 15) {nuclear.starttheotsarbomb.push(msg.p._id);}
- if (nuclear.atom[msg.p._id] >9) {nuclear.start.push(msg.p._id);}
- if (b == "/help"||b == "/h") { MPP.chat.send("Commands: /nuclearinv, /expandatomrod, /expandhydrogenrod, /activatenuclearbomb (Works only if you have Atom Rod is 10), /activatetsarbomba (Works only if you have a Hydrogen Rod is 8 and Atom Rod is 8), /activatetheotsarbomba (Works only if you have a Hydrogen Rod is 16 and Atom Rod is 16).");}
- if (b == "/nuclearinv") {MPP.chat.send("Atom Rod: "+nuclear.atom[msg.p._id]+". Hydrogen Rod: "+nuclear.hydrogen[msg.p._id]+".");}
- if (b == "/expandatomrod") {nuclear.atom[msg.p._id] +=1; MPP.chat.send("Atom Rod: +1."); }
- if (b == "/expandhydrogenrod") {nuclear.hydrogen[msg.p._id] +=1; MPP.chat.send("Hydrogen Rod: +1."); }
- if ((nuclear.start.indexOf(msg.p._id) > - 1) ){
- if (b == "/activatenuclearbomb") {
- nuclear.atom[msg.p._id] -= 10; remove=nuclear.start.indexOf(msg.p._id); nuclear.start.splice(remove,1); MPP.chat.send("Warning! Nuclear Bomb is activated in Multiplayer Piano!");
- Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2));
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 1000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 2000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 3000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 4000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 5000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 6000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 7000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 8000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 9000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 65 * num, key, 1)); }, 24200);
- setTimeout(function() {activatedmush = setInterval(function() {MPP.press("f2", 0); MPP.press("g2", 0); MPP.press("a2", 0);}, 65);}, 30500);
- setTimeout(function() {Object.keys(MPP.piano.keys).forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); }, 32600);
- setTimeout(function() {naclful = setInterval(function () {Object.keys(MPP.piano.keys).forEach((key)=>{MPP.press(key, 3);});}, 1000); }, 38900);
- setTimeout(function() {clearInterval(naclful); nucleoor = setInterval(function(){MPP.press(Object.keys(MPP.piano.keys)[Math.floor(Math.random()*Object.keys(MPP.piano.keys).length)]);}, 3);}, 50500);
- setTimeout(function() {clearInterval(activatedmush);}, 80500);
- setTimeout(function() {clearInterval(nucleoor);}, 90500);
- }}
- if ((nuclear.starttsarbomb.indexOf(msg.p._id) > - 1)){ if (b == "/activatetsarbomba") { nuclear.atom[msg.p._id] -= 16; nuclear.hydrogen[msg.p._id] -= 16; remove=nuclear.starttsarbomb.indexOf(msg.p._id); nuclear.starttsarbomb.splice(remove,1); MPP.chat.send("Warning! Nuclear Bomb named Tsar Bomba is activated in Multiplayer Piano!");
- Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2));
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 1000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 2000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 3000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 4000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 5000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 6000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 7000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 8000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 9000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 10000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 11000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 12000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 65 * num, key, 1)); }, 24200);
- setTimeout(function() {activatedmush = setInterval(function() {MPP.press("f2", 0); MPP.press("g2", 0); MPP.press("a2", 0); MPP.press("b2", 0); MPP.press("c3", 0); MPP.press("d3", 0); MPP.press("e3", 0); }, 65);}, 30500);
- setTimeout(function() {Object.keys(MPP.piano.keys).forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); }, 32600);
- setTimeout(function() {nuclir = [setInterval(function () { MPP.press("a-1"); MPP.press("c0"); MPP.press("e0"); MPP.press("g0"); MPP.press("b0"); MPP.press("d1"); MPP.press("f1"); MPP.press("a1"); MPP.press("c2"); MPP.press("e2"); MPP.press("g2"); MPP.press("b2"); MPP.press("d3"); MPP.press("f3"); MPP.press("a3"); MPP.press("c4"); MPP.press("e4"); MPP.press("g4"); MPP.press("b4"); MPP.press("d5"); MPP.press("f5"); MPP.press("a5"); MPP.press("c6"); MPP.press("e6"); MPP.press("g6"); MPP.press("b6");},100)]; }, 44300);
- setTimeout(function() {nucleoor = setInterval(function(){MPP.press(Object.keys(MPP.piano.keys)[Math.floor(Math.random()*Object.keys(MPP.piano.keys).length)]);}, 10); naclful = setInterval(function () {Object.keys(MPP.piano.keys).forEach((key)=>{MPP.press(key, 10);});}, 500); }, 54800);
- setTimeout(function() {clearInterval(activatedmush); clearInterval(nuclir);}, 126000);
- setTimeout(function() {clearInterval(nucleoor); clearInterval(naclful);}, 134400);}}
- if ((nuclear.starttheotsarbomb.indexOf(msg.p._id) > - 1)){ if (b == "/activatetheotsarbomba") { nuclear.atom[msg.p._id] -= 16; nuclear.hydrogen[msg.p._id] -= 16; remove=nuclear.starttheotsarbomb.indexOf(msg.p._id); nuclear.starttheotsarbomb.splice(remove,1); MPP.chat.send("Warning! Nuclear Bomb named Theoretical Tsar Bomba is activated in Multiplayer Piano!");
- Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2));
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 1000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 2000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 3000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 4000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 5000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 6000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 7000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 8000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 9000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 10000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 11000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 5 * num, key, 0.2)); }, 12000);
- setTimeout(function() { Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 65 * num, key, 1)); }, 24200);
- setTimeout(function() {activatedmush = setInterval(function() {MPP.press("f2", 0); MPP.press("g2", 0); MPP.press("a2", 0); MPP.press("b2", 0); MPP.press("c3", 0); MPP.press("d3", 0); MPP.press("e3", 0); MPP.press("f3", 0); MPP.press("g3", 0); MPP.press("a3", 0);},50);}, 30500);
- setTimeout(function() {Object.keys(MPP.piano.keys).forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1));Object.keys(MPP.piano.keys).forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1));Object.keys(MPP.piano.keys).forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); Object.keys(MPP.piano.keys).reverse().forEach((key, num)=>setTimeout(MPP.press, 100 * num, key, 1)); }, 32600);
- setTimeout(function() {nuclir = [setInterval(function () { MPP.press("a-1"); MPP.press("c0"); MPP.press("e0"); MPP.press("g0"); MPP.press("b0"); MPP.press("d1"); MPP.press("f1"); MPP.press("a1"); MPP.press("c2"); MPP.press("e2"); MPP.press("g2"); MPP.press("b2"); MPP.press("d3"); MPP.press("f3"); MPP.press("a3"); MPP.press("c4"); MPP.press("e4"); MPP.press("g4"); MPP.press("b4"); MPP.press("d5"); MPP.press("f5"); MPP.press("a5"); MPP.press("c6"); MPP.press("g6"); MPP.press("g6"); MPP.press("b6");},85)]; }, 44300);
- setTimeout(function() {nucleoor = setInterval(function(){MPP.press(Object.keys(MPP.piano.keys)[Math.floor(Math.random()*Object.keys(MPP.piano.keys).length)]);MPP.press(Object.keys(MPP.piano.keys)[Math.floor(Math.random()*Object.keys(MPP.piano.keys).length)]); MPP.press(Object.keys(MPP.piano.keys)[Math.floor(Math.random()*Object.keys(MPP.piano.keys).length)]);}, 10); naclful = setInterval(function () {Object.keys(MPP.piano.keys).forEach((key)=>{MPP.press(key, 10);});}, 260); }, 54800);
- setTimeout(function() {clearInterval(nuclir);}, 126000);
- setTimeout(function() {clearInterval(activatedmush);}, 184400);
- setTimeout(function() {clearInterval(nucleoor); clearInterval(naclful);}, 194400);
- }}
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement