Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name New Userscript
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match http://oib.io/
- // @grant none
- // ==/UserScript==
- TUTO.SPLIT_DELAY_1 = -1;
- TUTO.SPLIT_DELAY_2 = -1;
- var closen = 0;
- var rainbow = 100000;
- var colorch = 6;
- var alpha = 0;
- var fsp = 0;
- var onsp = 0;
- var rainbowtick = setInterval(rainbowxp, 100);
- var tima = setInterval(ohno, 1);
- function rainbowxp(){
- rainbow += 111;
- DRAW.XP_COLOR = "#" + rainbow;
- DRAW.XP_REST_COLOR = "#080808";
- if (rainbow >= 161616){
- rainbow = 100000;
- }}
- function ohno(){
- DRAW.MINIMAP_BOSS_SIZE = 20;
- DRAW.MINIMAP_PLAYER_SIZE = 8;
- DRAW.GROUND_COLOR_DARKER = "#471758";
- S.WHITE = colorch;
- if (onsp == 1) {
- client.spawn();
- }
- if (fsp == 1) {
- player.select.only_oibs();
- client.split();
- fsp = 0;
- }
- if (alpha == 1) {
- for (var i = 0 ; i < players.length ; i++){ if (players[i]) players[i].vuln=1;}
- }
- if (alpha === 0) {
- for (var k = 0 ; k < players.length ; k++){ if (players[k]) players[k].vuln=0;}
- }
- if (closen == 1) {
- client.lost ();
- closen = 0;
- }
- }
- function mine() {
- player.select.only_oibs();
- client.feed();
- player.select.only_queen();
- client.move_units(mouse.pos);
- }
- function KeyCheck(e)
- {
- if (e.keyCode == 54) {
- onsp += 1;
- }
- if (onsp >= 2){
- onsp = 0;
- }
- if (e.keyCode == 55) {
- fsp += 1;
- }
- if (fsp >= 2){
- fsp = 0;
- }
- if (e.keyCode == 56) {
- alpha += 1;
- }
- if (alpha >= 2){
- alpha = 0;
- }
- if (e.keyCode == 57) {
- colorch += 1;
- }
- if (colorch >= 7){
- colorch = 0;
- }
- if (e.keyCode == 46) {
- closen += 1;
- }
- if (e.keyCode == 80) {
- playm += 1;
- }
- if (playm >= 2){
- playm = 0;
- }
- if (e.keyCode == 189) {
- volumeset -= 0.01;
- }
- if (e.keyCode == 187) {
- volumeset += 0.01;
- }
- if (e.keyCode == 192) {
- mine();
- }
- }
- var volumeset = 0.5;
- var playm = 0;
- var winterval = setInterval(play, 250);
- var music = new Audio('https://www.dropbox.com/s/sq1nk07npg7fck8/Xtrullor%20-%20Jnana.mp3?raw=1');
- var deathsound = new Audio('https://www.dropbox.com/s/cdw1zj7sevvzyed/Sad%20-%20Violin.mp3?raw=1');
- function play(){
- if(playm == 1){
- music.volume = volumeset;
- music.play();
- music.loop = true;
- }
- if(playm === 0){
- music.pause();
- }
- }
- window.addEventListener('keydown', KeyCheck, true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement