SHARE
TWEET

W Macro For Agar.io

SergeantShadow May 23rd, 2019 (edited) 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Agario Macro For W // Made by MrShadow
  3. // @namespace    http://shadowbot.cf
  4. // @version      1.0.0
  5. // @description  You Can Hold W to eject mass until you release. Works with various other sites.
  6. // @author       Mr Shadow
  7. // @match        *.agargold.net/*
  8. // @match        *.agarboy.com/*
  9. // @match        *.agar.io/*
  10. // @match        *.agariotime.com/*
  11. // @match        *.agariow.net/*
  12. // @match        *.slither.io/*
  13. // @match        *.agar.gold/*
  14. // @match        *.agar.ws/*
  15. // @match        *.agarport.net/*
  16. // @grant        none
  17. // ==/UserScript==
  18.  
  19. //V1
  20. //Eject Mass Until You Want To Stop
  21. console.log('called');
  22. var interval;
  23. var switchy = false;
  24. $(document).on('keydown',function(e){
  25. console.log('keydown e.keyCode="'+e.keyCode+'"');
  26. if(e.keyCode == 87){
  27. console.log('keydown 87, switchy '+switchy);
  28. if(switchy){
  29. return;
  30. }
  31. switchy = true;
  32. interval = setInterval(function() {
  33. console.log('firing');
  34. $("body").trigger($.Event("keydown", { keyCode: 87}));
  35. $("body").trigger($.Event("keyup", { keyCode: 87}));
  36. }, 10);// If you want to eject mass slower increase this number.
  37. }
  38. })
  39.  
  40. $(document).on('keyup',function(e){
  41. console.log('keyup e.keyCode="'+e.keyCode+'"');
  42. if(e.keyCode == 87){
  43. console.log('stop firing');
  44. switchy = false;
  45. clearInterval(interval);
  46. return;
  47. }
  48. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top