Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name LudwigOS's bot
- // @namespace multiplayerpiano.com/
- // @version 0.1
- // @description Lol
- // @author LGPvS
- // @include http://www.multiplayerpiano.com/*
- // @match http://www.multiplayerpiano.com/script.js
- // ==/UserScript==
- /*
- Tsunami By Braden T™
- Type #Tsunami to trigger a Tsunami.alk in this box
- Credit to ._., Jeah, -.-, Yoro, Phoenix, Jocke, harold mickeyman (yes his real name was), and *SkyParticle
- music while I was programming!
- comment pictures credit: sekiun
- ░░░░▄▄▄▄▀▀▀▀▀▀▀▀▄▄▄▄▄▄
- ░░░░█░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░▀▀▄
- ░░░█░░░▒▒▒▒▒▒░░░░░░░░▒▒▒░░█
- ░░█░░░░░░▄██▀▄▄░░░░░▄▄▄░░░█
- ░▀▒▄▄▄▒░█▀▀▀▀▄▄█░░░██▄▄█░░░█
- █▒█▒▄░▀▄▄▄▀░░░░░░░░█░░░▒▒▒▒▒█
- █▒█░█▀▄▄░░░░░█▀░░░░▀▄░░▄▀▀▀▄▒█
- ░█▀▄░█▄░█▀▄▄░▀░▀▀░▄▄▀░░░░█░░█
- ░░█░░▀▄▀█▄▄░█▀▀▀▄▄▄▄▀▀█▀██░█
- ░░░█░░██░░▀█▄▄▄█▄▄█▄████░█
- ░░░░█░░░▀▀▄░█░░░█░███████░█
- ░░░░░▀▄░░░▀▀▄▄▄█▄█▄█▄█▄▀░░█
- ░░░░░░░▀▄▄░▒▒▒▒░░░░░░░░░░█
- ░░░░░░░░░░▀▀▄▄░▒▒▒▒▒▒▒▒▒▒░█
- ░░░░░░░░░░░░░░▀▄▄▄▄▄░░░░░█
- ░░░░░░░░▄▄▀▀█▀▀▀▀▀▄▄░░░░░░░░
- ░░░░░░▄▀▓░░▒░░▒▒▒▒▒▒█▄░░░░░░
- ░░░░▄█▓▓▓░░░░▒▒▒▒▒▒▒▒█▀▄░░░░
- ░░▄▀█▌▓▓▓░░░░▒▒▒▒▒▒▒▒▐▌▓▀▄░░
- ░█▓▓█▌▓▄▄▓░░░▒▒▒▒▄▄▒▒▒█▓▓▀▄░
- ▄▀▓▓█▌▓▀█▓░░░▒▒▒▒█▓▀▒▄▌▓▓▓▓█
- █▓▓▓▄▀▓▓▓▓░░░▒▒▒▒▒▒▒▒░░▌▓▓▓█
- ▀▄▓▓█░▀▓▓░░░░░░░▒▒▒▒▒░▄▌▓▓█░
- ░█▓▓▓█░▓░░░░░░░░░▒▒▒░░█▓▓▓█░
- ░▀▄▓▓█░▐░░▄▄███▄░░░▐░░░▀▄▀░░
- ░░▀▄▄▀░▐░░█████▀░░▄▀░░░░░░░░
- ░░░░░░░░▀░░▀██▀░▄▀░░░░░░░░░░
- TROLOLOL
- */
- var a;
- var b;
- var input;
- function sendChat(msg) { //haha had to disable tsunami v 1.0 on mpp while making this
- MPP.chat.send(msg);
- }
- 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
- if (b == "/tsunami") {
- sendChat("Reading MIDI effect:Name:/tsunami");
- t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 50)}); // could i make the code not so big?
- t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 55)}); // yes. yes i could.
- t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 60)}); // but a m just too lazy for that :3
- t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 65)}); // maybe in 2.5 ;D
- t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 70)});
- t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 50)});
- t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 55)});
- t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 60)});
- t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 65)});
- t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 70)});
- }
- if (b == "/h") {
- MPP.chat.send("Commands: /help or /h, /tsunami. Fishing Commands: /fish, /eat. About: /about, /version");
- }
- if (b == "/help") {
- MPP.chat.send("Commands: /help or /h, /tsunami. Fishing Commands: /fish, /eat. About: /about, /version");
- }
- if (b == "/fish") {
- MPP.chat.send("You fishing...");
- MPP.chat.send("Fished fish");
- }
- if (b == "/eat") {
- MPP.chat.send("You eat a fish");
- }
- if (b == "/about") {
- MPP.chat.send("Author:LGPvS,Pastebin:http://pastebin.com/u/LGPvS");
- }
- if (b == "/version") {
- MPP.chat.send("Version:0.1");
- }
- part.cursorDiv = undefined;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement