Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Lepsze przechodzenie przez mapki
- // @version 1.3
- // @description Działa tylko na mapach inne, niż zielone, dlatego wbudowane przechodzenie zostaw włączone.
- // @author adi wilk
- // @match *://*/
- // @grant none
- // ==/UserScript==
- //1.2 Naprawa błędu po teleportacji.
- //1.3 Wyłącznie przechodzenia na zielonych mapkach
- ! function(_run) {
- var firstTime = false;
- var gw = [];
- var firstMap = "";
- var herocords = "";
- var herostop = true;
- hero.run = function() {
- herocords = hero.x + "." + hero.y;
- if (map.pvp != 2) {
- firstTime = true;
- firstMap = "";
- herostop = true;
- gw = [];
- } else if (firstTime) {
- firstTime = false;
- firstMap = map.name;
- for (var i in g.gw) {
- gw.push(i);
- }
- } else if (firstMap != map.name) {
- firstTime = true;
- } else if (herostop && !firstTime) {
- if (!gw.includes(herocords)) herostop = false;
- } else if (!herostop && !firstTime) {
- if (gw.includes(herocords)) {
- gw = [];
- firstTime = true;
- herostop = true;
- _g("walk");
- }
- }
- _run.apply(this, arguments)
- }
- }(hero.run)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement