Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Margo(Anty-Duszek): SI
- // @version 1.0
- // @description Wychodzenie z trybu nieaktywności.
- // @author Marcel
- // @match http://*.margonem.pl
- // @updateURL https://pastebin.com/raw/1epARD5w
- // @downloadURL https://pastebin.com/raw/1epARD5w
- // @grant none
- // ==/UserScript==
- const checkIfStasis = () => {
- if (!g.battle && hero.stasis && !g.dead) {
- return true;
- }
- return false;
- };
- const moveHero = () => {
- let x = hero.x;
- let y = hero.y;
- setTimeout(() => {
- g(`&ml=${x},${y - 1}&mts=${g.ev});
- }, 1000);
- _g(_&ml=${x},${y + 1}&mts=${g.ev}`);
- };
- const antiStasis = () =>
- setInterval(() => {
- if (!checkIfStasis()) {
- return;
- }
- moveHero();
- }, 1000);
- g.loadQueue.push({
- fun: antiStasis
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement