Doblons.io Remixed Script

Not Maker of script but remade it, I will improve it on my own.This Was Made by three other scripts, They were slightly edited (W) Summon Boats. (Space) Activate Visual. (O) Alternative Visual activator.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         Doblons.io Remixed Script
// @namespace    http://tampermonkey.net/
// @version      1.0.1
// @description  Not Maker of script but remade it, I will improve it on my own.This Was Made by three other scripts, They were slightly edited (W) Summon Boats. (Space) Activate Visual. (O) Alternative Visual activator. 
// @author       ItsMeEnderCreeperGames
// @match        http://doblons.io/*
// @grant        none
// ==/UserScript==

document.addEventListener("keydown", function(a) { // Push Spacebar to enable the visual
    if (a.keyCode == 79) {// O
player.ramLength = 70;
player.autoCannons = 2;   
player.trippleCannons = 2;
player.busterCannon = 2;
player.mineDropper = 9;
}
}, false);

document.addEventListener("keydown", function(a) { //Press space to enable Visual
    if (a.keyCode == 32) {// Space
player.length = player.length + 10;
player.cannons++;
player.rearLength = player.rearLength + 10;
player.noseLength = player.noseLength + 10;
player.width++;
player.cannonLength++;
player.cannonWidth++;
    }
}, false);

//Ship spawner Press w to use

var BoatDown = false;
var speed = 25;

window.addEventListener('keydown', keydown);
window.addEventListener('keyup', keyup);

function keydown(event) {
    if (event.keyCode == 87 && BoatDown === false) {
        BoatDown = true;
        setTimeout(boat, speed);
    }
}

function keyup(event) {
    if (event.keycode == 87) {
        var BoatDown = false;
        }
}

function boat() {
    if (BoatDown) {
        $("body").trigger($.Event("keydown", { keyCode: 57}));
        $("body").trigger($.Event("keyup", { keyCode: 57}));
        setTimeout(boat,speed);
    }
}