Macro Gota.io By Yhiita

E is 'W' Macro, Shift and 4 is Tricksplit, R is Triplesplit, Q is Doublesplit, Left Click is Space, Right Click is Feed/Macro, Mouse Click is Tricksplit. Easily configurable keys in code. Credits to Jack Burch AND Tom Burris

  1. // ==UserScript==
  2. // @name Macro Gota.io By Yhiita
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.19
  5. // @description E is 'W' Macro, Shift and 4 is Tricksplit, R is Triplesplit, Q is Doublesplit, Left Click is Space, Right Click is Feed/Macro, Mouse Click is Tricksplit. Easily configurable keys in code. Credits to Jack Burch AND Tom Burris
  6. // @author Kaic YT
  7. // @match http://gota.io/*
  8. // @match https://gota.io/*
  9. // @match http://gaver.io*
  10. // @match http://agma.io/*
  11. // @grant none
  12. // @run-at document-end
  13. // ==/UserScript==
  14. window.addEventListener('keydown', keydown);
  15. window.addEventListener('keyup', keyup);
  16. var Feed = false;
  17. var Speed = 25;
  18.  
  19. //Funtions
  20. function split() {
  21. $("body").trigger($.Event("keydown", { keyCode: 32}));
  22. $("body").trigger($.Event("keyup", { keyCode: 32}));
  23. }
  24. function mass() {
  25. if (Feed) {
  26. window.onkeydown({keyCode: 87});
  27. window.onkeyup({keyCode: 87});
  28. setTimeout(mass, Speed);
  29. }
  30. }
  31.  
  32. function keydown(event) {
  33. // Feed Macro
  34. if (event.keyCode == 69 ) // E
  35. {
  36. Feed = true;
  37. setTimeout(mass, Speed);
  38. }// Center
  39. if (event.keyCode == 83) { // S
  40. X = window.innerWidth/2;
  41. Y = window.innerHeight/2;
  42. $("canvas").trigger($.Event("mousemove", {clientX: X, clientY: Y}));
  43. }
  44. // Tricksplit
  45. if (event.keyCode == 16 || event.keyCode == 52) { // R and 4
  46. split();
  47. setTimeout(split, Speed);
  48. setTimeout(split, Speed*2);
  49. setTimeout(split, Speed*3);
  50. } // Triplesplit
  51. if (event.keyCode == 82 || event.keyCode == 'F') { // F and Put in Your Key
  52. split();
  53. setTimeout(split, Speed);
  54. setTimeout(split, Speed*2);
  55. } // Doublesplit
  56. if (event.keyCode == 81 || event.keyCode == 'D') { // D and Put in Your Key
  57. split();
  58. setTimeout(split, Speed);
  59. }// Split
  60. if (event.keyCode == 'yourkey' || event.keyCode == 'yourkey2') { // Put in Your Key
  61. split();
  62. }
  63.  
  64. } // When Player Lets Go Of E, It Stops Feeding
  65. function keyup(event) {
  66. if (event.keyCode == 69) {
  67. Feed = false;
  68. }
  69.  
  70. }