// ==UserScript== // @name AutoZap // @version 21.37 // @author kithai // @match https://www.margonem.pl/?task=* // ==/UserScript== parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c0&&r[r.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1] { setInterval(() => { other.forEach(id => { if(m.includes(map.name)){ if((n.includes(id.nick) || (zapKlan == 1 && id.relation == 'cl') || (zapKlan == 2 && (id.relation == 'cl' || id.relation == 'fr')))){ if(!Object.keys(g.party).includes(id.id) && (!g.party || ((g.party) && (1 == g.party[hero.id].r))) && !g.battle && (Math.abs(hero.lvl - id.lvl)<=53) && (id.stasis == 0)){ if(id.relation == 'fr' || id.relation == 'cl') { setTimeout(() => _g(`party&a=inv&id=${id.id}`), 500); } else { hero.searchPath1(id.x,id.y); // Rozbudowane KtoTuJest ver. 4.3 // hero.margoMove(id.x,id.y); // menogram if(hero.x == id.x && hero.y == id.y){ setTimeout(() => _g(`party&a=inv&id=${id.id}`), 500); } } } } } } ); }, 2000); })(g.other, window.n, window.m, window.zapKlan); // taki fajny dodatek co zamienia mAlerty na message, przydatne jezeli postac chce zaprosic inna postac ktora jest juz w grupie (function(a) { mAlert = function() { if (arguments.length == 1 || arguments[1] == undefined) return message(arguments[0]); return a.apply(this, arguments); } })(mAlert);