Macro For Clan Kx

Teclas, W Feed, E Tricksplit, S center, R triplesplit, D doublesplit,

目前为 2017-11-15 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Macro For Clan Kx
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.21
  5. // @description Teclas, W Feed, E Tricksplit, S center, R triplesplit, D doublesplit,
  6. // @author Black Kx
  7. // @match http://gota.io/*
  8. // @match https://gota.io/*
  9. // @match http://dual-agar.me/
  10. // @grant none
  11. // @run-at document-end
  12. // @icon https://i.imgur.com/sw60fTG.png
  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. function keydown(event) {
  32. if (event.keyCode == 81) {
  33. Feed = true;
  34. setTimeout(fukherriteindapussie, imlost);
  35. } // Tricksplit
  36. if (event.keyCode == 69 || event.keyCode == 52) { //( ͡° ͜ʖ ͡°)
  37. ilikedick();
  38. setTimeout(ilikedick, imlost);
  39. setTimeout(ilikedick, imlost*2);
  40. setTimeout(ilikedick, imlost*3);
  41. } // Triplesplit
  42. if (event.keyCode == 65 || event.keyCode == 65) {
  43. ilikedick();
  44. setTimeout(ilikedick, imlost);
  45. setTimeout(ilikedick, imlost*2);
  46. } // Doublesplit
  47. if (event.keyCode == 68 || event.keyCode == 68) {
  48. ilikedick();
  49. setTimeout(ilikedick, imlost);
  50. } // Split
  51. if (event.keyCode == 49) {
  52. ilikedick();
  53. }
  54.  
  55. } // When Player Lets Go Of E, It Stops Feeding
  56. function keyup(event) {
  57. if (event.keyCode == 69) {
  58. Feed = false;
  59. }
  60.  
  61. }
  62.