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.

  1. // ==UserScript==
  2. // @name Doblons.io Remixed Script
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0.1
  5. // @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.
  6. // @author ItsMeEnderCreeperGames
  7. // @match http://doblons.io/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. document.addEventListener("keydown", function(a) { // Push Spacebar to enable the visual
  12. if (a.keyCode == 79) {// O
  13. player.ramLength = 70;
  14. player.autoCannons = 2;
  15. player.trippleCannons = 2;
  16. player.busterCannon = 2;
  17. player.mineDropper = 9;
  18. }
  19. }, false);
  20.  
  21. document.addEventListener("keydown", function(a) { //Press space to enable Visual
  22. if (a.keyCode == 32) {// Space
  23. player.length = player.length + 10;
  24. player.cannons++;
  25. player.rearLength = player.rearLength + 10;
  26. player.noseLength = player.noseLength + 10;
  27. player.width++;
  28. player.cannonLength++;
  29. player.cannonWidth++;
  30. }
  31. }, false);
  32.  
  33. //Ship spawner Press w to use
  34.  
  35. var BoatDown = false;
  36. var speed = 25;
  37.  
  38. window.addEventListener('keydown', keydown);
  39. window.addEventListener('keyup', keyup);
  40.  
  41. function keydown(event) {
  42. if (event.keyCode == 87 && BoatDown === false) {
  43. BoatDown = true;
  44. setTimeout(boat, speed);
  45. }
  46. }
  47.  
  48. function keyup(event) {
  49. if (event.keycode == 87) {
  50. var BoatDown = false;
  51. }
  52. }
  53.  
  54. function boat() {
  55. if (BoatDown) {
  56. $("body").trigger($.Event("keydown", { keyCode: 57}));
  57. $("body").trigger($.Event("keyup", { keyCode: 57}));
  58. setTimeout(boat,speed);
  59. }
  60. }