Advertisement
Guest User

asd

a guest
Mar 31st, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Margo(Anty-Duszek): SI
  3. // @version 1.0
  4. // @description Wychodzenie z trybu nieaktywności.
  5. // @author Marcel
  6. // @match http://*.margonem.pl
  7. // @updateURL https://pastebin.com/raw/1epARD5w
  8. // @downloadURL https://pastebin.com/raw/1epARD5w
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. const checkIfStasis = () => {
  13. if (!g.battle && hero.stasis && !g.dead) {
  14. return true;
  15. }
  16. return false;
  17. };
  18.  
  19. const moveHero = () => {
  20. _g(`_&ml=${hero.x},${hero.y + 1}&mts=${g.ev}`);
  21. };
  22.  
  23. const antiStasis = () =>
  24. setInterval(() => {
  25. if (!checkIfStasis()) {
  26. return;
  27. }
  28. moveHero();
  29. }, 1000);
  30.  
  31. g.loadQueue.push({
  32. fun: antiStasis
  33. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement