Advertisement
Guest User

duszek

a guest
Mar 26th, 2020
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Anty-Duszek
  3. // @version 9
  4. // @description
  5. // @author Twuj stary mekanik
  6. // @match http://badzior.margonem.pl
  7. // ==/UserScript==
  8.  
  9. (() => {
  10. setInterval(() => {
  11. const isSi = getCookie("interface") == "si" ? true : false;
  12. const afk = isSi ? hero.stasis:Engine.hero.d.stasis;
  13. const dead = isSi ? g.dead:Engine.dead;
  14. const battle = isSi ? g.battle:Engine.pvp;
  15. if (!afk) return;
  16. const url = isSi
  17. ? `http://${g.worldname}.margonem.pl/engine?t=_&ml=${hero.x},${hero.y + 1}&mts=${unix_time() + 0.2}&ev=${unix_time()}&browser_token=${g.browser_token}&aid=${getCookie("user_id")}`
  18. : `http://${Engine.worldName}.margonem.pl/engine?t=_&ml=${Engine.hero.d.x},${Engine.hero.d.y - 1}&mts=${unix_time() + 0.2}&aid=${getCookie("user_id")}&ev=${unix_time()}&browser_token=${Engine.browserToken}`;
  19. fetch(url)
  20. .then(response => response.json())
  21. .then(x => {
  22. if (!dead && !battle) location.reload();
  23. });
  24. }, 400);
  25. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement