Advertisement
Guest User

Untitled

a guest
Oct 8th, 2019
575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.33 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Auto Tp
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match http://*/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. if (localStorage.getItem('dane_uciekanko') == null) localStorage.setItem('dane_uciekanko', 'Zwój teleportacji na Kwieciste Przejście');
  15. if (localStorage.getItem('dane_uciekanko_lvl') == null) localStorage.setItem('dane_uciekanko_lvl', '5');
  16.  
  17. $('<div id="uciekanko">').css({
  18. position: "absolute",
  19. left: -208,
  20. top: 7,
  21. width: 200,
  22. height: 210,
  23. color: "#006622",
  24. "background-color": "#d9d9d9",
  25. "font-size": "13px",
  26. }).droppable({
  27. accept: '.item',
  28. drop: function(e, u) {
  29. var nritemka = u.draggable.attr('id').replace('item', '');
  30. var nazwaitemka = g.item[nritemka].name;
  31. if (g.item[nritemka].cl == 16 && g.item[nritemka].loc == "g") {
  32. document.getElementById("nazwa_zwoju").value = nazwaitemka;
  33. } else {
  34. message("To na pewno nie jest teleport.");
  35. }
  36. setTimeout(function() {
  37. document.getElementById("dropmenu").style.display = "none";
  38. }, 50);
  39. },
  40. }).appendTo("#centerbox2");
  41.  
  42. var dane_uciekanko = localStorage.getItem('dane_uciekanko');
  43. var dane_uciekanko_lvl = localStorage.getItem('dane_uciekanko_lvl');
  44.  
  45. uciekanko.innerHTML = '<center>Przeciągnij teleport w te okienko:<br><br><input id="nazwa_zwoju" value="' + dane_uciekanko + '">';
  46. uciekanko.innerHTML = uciekanko.innerHTML + '<br/><br/><center>Ile levli więcej: <input id="lvlponad" type="text" size="1" value="' + dane_uciekanko_lvl + '"></center>';
  47. uciekanko.innerHTML = uciekanko.innerHTML + '<br/><br/><input id="checkbox1zaal1" type="checkbox">Uciekać przed cl/fr/cl-fr?';
  48. uciekanko.innerHTML = uciekanko.innerHTML + '<br/><br/><center><button id="zapisz_uciekanko">Zapisz</button>';
  49.  
  50. function saveToUciekanko() {
  51. var itemsik = document.getElementById("nazwa_zwoju").value;
  52. var leverzik = Number(document.getElementById("lvlponad").value);
  53. localStorage.setItem('dane_uciekanko', itemsik);
  54. localStorage.setItem('dane_uciekanko_lvl', leverzik);
  55. var checkbox = document.getElementById('checkbox1zaal1');
  56. localStorage.setItem('checkbox1zaal1', checkbox.checked);
  57. }
  58. document.getElementById("zapisz_uciekanko").addEventListener("click", saveToUciekanko);
  59.  
  60. ! function load() {
  61. var checked = JSON.parse(localStorage.getItem('checkbox1zaal1'));
  62. document.getElementById("checkbox1zaal1").checked = checked;
  63. }()
  64.  
  65.  
  66. var czy_jestucieczka = false;
  67. (a => {
  68. newOther = function(b) {
  69. a(b);
  70. var lvl_ponad = localStorage.getItem('dane_uciekanko_lvl');
  71. var nazwa_zwoju = localStorage.getItem('dane_uciekanko');
  72. for (var i in g.item) {
  73. if (g.item[i].name.toLowerCase() == nazwa_zwoju.toLowerCase()) {
  74. var id_itemka_do_ucieczki = g.item[i].id;
  75. break;
  76. } else {
  77. var id_itemka_do_ucieczki = "";
  78. }
  79. }
  80. for (var x in b) {
  81. if (b[x].lvl - hero.lvl >= lvl_ponad && map.pvp == 2 && czy_jestucieczka == false && id_itemka_do_ucieczki != "") {
  82. if (document.getElementById("checkbox1zaal1").checked == true) {
  83. if (!g.battle) {
  84. _g("moveitem&st=1&id=" + id_itemka_do_ucieczki);
  85. } else {
  86. message("Trwa walka, zwój zostanie po niej użyty.");
  87. czy_jestucieczka = true;
  88. var xdxdxdxdxdxdxd = battleMsg;
  89. battleMsg = function(c, t) {
  90. var lkjiop = xdxdxdxdxdxdxd(c, t);
  91. if (c.search(/winner=/) >= 0) {
  92. _g("fight&a=quit");
  93. _g("moveitem&st=1&id=" + id_itemka_do_ucieczki);
  94. czy_jestucieczka = false;
  95. }
  96. return lkjiop;
  97. }
  98. }
  99. } else {
  100. if (b[x].relation == "fr" || b[x].relation == "cl" || b[x].relation == "cl-fr") {
  101. return;
  102. } else {
  103. if (!g.battle) {
  104. _g("moveitem&st=1&id=" + id_itemka_do_ucieczki);
  105. } else {
  106. message("Trwa walka, zwój zostanie po niej użyty.");
  107. czy_jestucieczka = true;
  108. var xdxdxdxdxdxdxd = battleMsg;
  109. battleMsg = function(c, t) {
  110. var lkjiop = xdxdxdxdxdxdxd(c, t);
  111. if (c.search(/winner=/) >= 0) {
  112. _g("fight&a=quit");
  113. _g("moveitem&st=1&id=" + id_itemka_do_ucieczki);
  114. czy_jestucieczka = false;
  115. }
  116. return lkjiop;
  117. }
  118. }
  119. }
  120. }
  121. } else if (id_itemka_do_ucieczki == "" && czy_jestucieczka == false && map.pvp == 2) {
  122. message("Brak TP!");
  123. czy_jestucieczka = true;
  124. }
  125. }
  126. };
  127. })(newOther);
  128. })();
  129.  
  130.  
  131.  
  132.  
  133.  
  134. // ==UserScript==
  135. // @name Bot e2/exp z przechodzniem
  136. // @version 2.01
  137. // @description No se bocik curva lata mordo.
  138. // @author adi wilk
  139. // @match http://pandora.margonem.pl/
  140. // @grant none
  141. // ==/UserScript==
  142.  
  143. $('#tutorial').hide();
  144. ceb = {};
  145. ceb.bestxy = 9999;
  146. ceb.run = 1;
  147. ceb.id = 0;
  148. ceb.block = "";
  149. ceb.xxxx = 0;
  150. ceb.blocked = 1;
  151. ceb.check2 = 0;
  152. ceb.check2 = 0;
  153. ceb.interv1 = "";
  154. ceb.interv2 = "";
  155. ceb.interv3 = "";
  156.  
  157. if (localStorage.getItem('danebot') == null) localStorage.setItem('danebot', 'Wprowadź nazwę/y moba/ów');
  158. if (localStorage.getItem('danebotmap') == null) localStorage.setItem('danebotmap', 'Wprowadź nazwę/y map/y');
  159.  
  160. mAlert = function(a, c, d, b) {};
  161. g.lock.add = function(i) {};
  162.  
  163. $('<div id="ceb_config">').css({
  164. position: "absolute",
  165. left: -208,
  166. top: 7,
  167. width: 200,
  168. height: 210,
  169. color: "#006622",
  170. "background-color": "#d9d9d9",
  171. "font-size": "13px",
  172. }).appendTo("#centerbox2");
  173.  
  174. function zapiszdane() {
  175. var danedobota = document.getElementById("ceb_monster").value;
  176. var danedobotamap = document.getElementById("ceb_nazmap").value;
  177. localStorage.setItem('danebot', danedobota);
  178. localStorage.setItem('danebotmap', danedobotamap);
  179. var danebot = localStorage.getItem('danebot');
  180. var danebotmap = localStorage.getItem('danebotmap');
  181. document.location.reload();
  182. }
  183.  
  184. var danebot = localStorage.getItem('danebot');
  185. var danebotmap = localStorage.getItem('danebotmap');
  186. var mapki = [];
  187. var nazwamapki;
  188.  
  189. ceb_config.innerHTML = '<center>Podaj nazwy mobów:<br><br><input id="ceb_monster" value="' + danebot + '">';
  190. ceb_config.innerHTML += '<br/><center>Podaj nazwy map:<br><br><input id="ceb_nazmap" value="' + danebotmap + '">';
  191. ceb_config.innerHTML += '<br/><br/><center><button id="tynoniewiem">Zapisz</button>';
  192.  
  193. $("#tynoniewiem").click(function() {
  194. zapiszdane();
  195. });
  196.  
  197. hero.cebgo = function(a, t) {
  198. if (this.isBlockedSearchPath()) return this.blockedInfoSearchPath();
  199. for (var h = [], i = 128 & hero.opt ? 8 : 20, r = Math.max(0, Math.min(a, this.x) - i), s = Math.min(map.x - 1, Math.max(a, this.x) + i), o = Math.max(0, Math.min(t, this.y) - i), e = Math.min(map.y - 1, Math.max(t, this.y) + i), d = r - 1; s + 1 >= d; d++) {
  200. h[d] = [];
  201. for (var x = o - 1; e + 1 >= x; x++) h[d][x] = !(d >= r && s >= d && x >= o && e >= x) || isset(g.npccol[d + 256 * x]) || map.col && "0" != map.col.charAt(d + x * map.x) ? -2 : -1
  202. }
  203. h[this.x][this.y] = 0, b = -1, road = [];
  204. for (var c = {
  205. x: -1,
  206. y: -1,
  207. dist: 99
  208. }, y = 1; s - r + e - o + 3 > y; y++)
  209. for (var d = r; s >= d; d++)
  210. for (var x = o; e >= x; x++) {
  211. if (-1 != h[d][x] || h[d][x - 1] != y - 1 && h[d][x + 1] != y - 1 && h[d - 1][x] != y - 1 && h[d + 1][x] != y - 1 || (h[d][x] = y), h[a][t] > 0) {
  212. d = s + 1;
  213. break
  214. }
  215. c.dist2 = Math.abs(a - d) + Math.abs(t - x), h[d][x] == y && c.dist2 < c.dist && (c.x = d, c.y = x, c.dist = c.dist2)
  216. }
  217. if (c.hdist = Math.abs(a - hero.x) + Math.abs(t - hero.y), h[a][t] > 0 || c.dist < c.hdist) {
  218. h[a][t] < 0 && (a > c.x ? b = 2 : a < c.x ? b = 1 : t > c.y ? b = 0 : t < c.y && (b = 3), a = c.x, t = c.y), road[0] = {
  219. x: a,
  220. y: t
  221. };
  222. for (var f = h[a][t] - 1, l = a, m = t; f > 0; f--) h[l][m - 1] == f ? m-- : h[l][m + 1] == f ? m++ : h[l - 1][m] == f ? l-- : h[l + 1][m] == f ? l++ : f = 0, f && (road[h[a][t] - f] = {
  223. x: l,
  224. y: m
  225. })
  226. }
  227. road.length > 1 && null == g.playerCatcher.follow && $("#target").stop().css({
  228. left: 32 * a,
  229. top: 32 * t,
  230. display: "block",
  231. opacity: 1
  232. }).fadeOut(1e3)
  233. };
  234.  
  235. ! function(tmpBattleMsg) {
  236. battleMsg = function(c, t) {
  237. ceb.run = 1;
  238. var ret = tmpBattleMsg(c, t);
  239. if (c.search(/winner=/) >= 0) {
  240. _g("fight&a=quit");
  241. ceb.run = 0;
  242. }
  243. return ret;
  244. }
  245. }(battleMsg);
  246.  
  247. ceb.f1 = function() {
  248. if (localStorage.getItem("mapencje") == null) localStorage.setItem("mapencje", map.name);
  249. if (localStorage.getItem("mapencje").indexOf(map.name) == -1) {
  250. var mapencje = localStorage.getItem("mapencje");
  251. mapencje += "|" + map.name;
  252. localStorage.setItem("mapencje", mapencje);
  253. };
  254. if (ceb.run == 0) {
  255. hero.nextx = '';
  256. hero.nexty = '';
  257. var cango = true;
  258. ceb.bestxy = 9999;
  259. for (var i in g.npc) {
  260. if (ceb_monster.value.indexOf(g.npc[i].nick) > -1 && ceb.block.indexOf(i) < 0 && g.npc[i].fake === undefined && (g.npc[i].type == 2 || g.npc[i].type == 3)) {
  261. x1 = Math.pow(Math.abs(hero.x - g.npc[i].x), 2);
  262. y1 = Math.pow(Math.abs(hero.y - g.npc[i].y), 2);
  263. ceb.bestxy1 = Math.sqrt(x1) + Math.sqrt(y1);
  264. if (ceb.bestxy1 < ceb.bestxy) {
  265. cango = false;
  266. ceb.bestxy = ceb.bestxy1;
  267. hero.nextx = g.npc[i].x;
  268. hero.nexty = g.npc[i].y;
  269. ceb.id = i;
  270. ceb.run = 1;
  271. ceb.blocked = 0;
  272. };
  273. }
  274. };
  275. if (!cango) {
  276. hero.cebgo(hero.nextx, hero.nexty);
  277. } else {
  278. mapki = [];
  279. for (var i in g.townname) {
  280. if (ceb_nazmap.value.indexOf(g.townname[i]) > -1 && localStorage.getItem("mapencje").indexOf(g.townname[i]) == -1) {
  281. mapki.push(i);
  282. }
  283. }
  284. }
  285. if (mapki.length < 1) {
  286. localStorage.setItem("mapencje", null);
  287. } else {
  288. for (var i in g.gwIds) {
  289. if (mapki.includes(i)) {
  290. gwx = Number(g.gwIds[i].substring(0, g.gwIds[i].indexOf(".")));
  291. gwy = Number(g.gwIds[i].substring(g.gwIds[i].indexOf(".") + 1));
  292. x1 = Math.pow(Math.abs(hero.x - gwx), 2);
  293. y1 = Math.pow(Math.abs(hero.y - gwy), 2);
  294. ceb.bestxy1 = Math.sqrt(x1) + Math.sqrt(y1);
  295. if (ceb.bestxy1 < ceb.bestxy) {
  296. ceb.bestxy = ceb.bestxy1;
  297. hero.nextx = gwx;
  298. hero.nexty = gwy;
  299. ceb.blocked = 1;
  300. };
  301. }
  302. }
  303. if (cango && hero.nextx != "" && hero.nexty != "") {
  304. hero.cebgo(hero.nextx, hero.nexty);
  305. ceb.run = 1;
  306. if (hero.x == hero.nextx && hero.y == hero.nexty) {
  307. _g("walk");
  308. }
  309. }
  310. }
  311. }
  312. };
  313.  
  314. ceb.f2 = function() {
  315. if (road.length == 0 && ceb.blocked == 0) {
  316. if ((Math.abs(hero.rx - g.npc[ceb.id].x) <= 1 && Math.abs(hero.ry - g.npc[ceb.id].y) <= 1) && (g.npc[ceb.id].type == 2 || g.npc[ceb.id].type == 3)) {
  317. ceb.blocked = 1;
  318. _g("fight&a=attack&ff=1&id=-" + ceb.id);
  319. } else {
  320. if (ceb.check2 == 2) {
  321. ceb.blocked = 1;
  322. ceb.block = ceb.block + "|" + ceb.id;
  323. ceb.run = 0;
  324. ceb.check2 = 0;
  325. } else if (ceb.check2 != 2) {
  326. ceb.check2++;
  327. }
  328. }
  329. }
  330. };
  331.  
  332. ceb.f3 = function() {
  333. if (road.length == 0) {
  334. if (ceb.check2 < 60) {
  335. ceb.check2++;
  336. } else if (ceb.check2 >= 60) {
  337. ceb.run = 0;
  338. ceb.check2 = 0;
  339. }
  340. } else {
  341. ceb.check2 = 0;
  342. }
  343. };
  344.  
  345. ceb.interv1 = setInterval(ceb.f1, 400);
  346. ceb.interv2 = setInterval(ceb.f2, 300);
  347. ceb.interv3 = setInterval(ceb.f3, 50);
  348.  
  349. setInterval(function() {
  350. ceb.block = "";
  351. }, 30000)
  352.  
  353.  
  354.  
  355.  
  356.  
  357. // ==UserScript==
  358. // @name Działajacy speedhack v3
  359. // @version 0.1
  360. // @description dsadsadsa
  361. // @author adison
  362. // @match http://tarhuna.margonem.pl/
  363. // @match http://game2.margonem.pl/
  364. // @match *://*.margonem.pl/*
  365. // @match http://berufs.margonem.pl/
  366. // @match http://elizjum.margonem.pl
  367. // @grant none
  368. // ==/UserScript==
  369.  
  370. ! function(oldU, oldN) {
  371. var i = 0;
  372. var ready_to_runboost = false;
  373. var box1 = document.createElement("div");
  374. box1.id = "speed";
  375. box1.style = "width: 15px; height: 15px; background: red; position: absolute; top: 228px; left: 95px; border-radius: 50%";
  376. document.querySelector("#panel").appendChild(box1);
  377. document.addEventListener("keyup", function(e) {
  378. if (e.target.tagName != "INPUT" && e.target.tagName != "TEXTAREA" && e.which == 71 && ready_to_runboost == true) {
  379. ready_to_runboost = false;
  380. i = 0;
  381. document.querySelector("#speed").style.background = "orange";
  382. var runboost = setInterval(gameThread, 150);
  383. setTimeout(function() {
  384. document.querySelector("#speed").style.background = "red";
  385. clearInterval(runboost);
  386. }, 2000);
  387. }
  388. })
  389. hero._u = function(e) {
  390. i++;
  391. if (i * 0.52 >= 10 && ready_to_runboost == false && document.querySelector("#speed").style.background == "red") {
  392. document.querySelector("#speed").style.background = "green";
  393. ready_to_runboost = true;
  394. }
  395. oldU.apply(this, arguments);
  396. }
  397. //ukrycie tej jebanej choinki w ithan pod ktora sie chowają cepy
  398. newNpc = e => {
  399. oldN(e);
  400. for(var i in e){
  401. var npc = e[i];
  402. if(npc.id == "77002"){
  403. document.querySelector(`#npc${npc.id}`).style.display = `none`;
  404. break;
  405. }
  406. }
  407. }
  408. }(hero._u, newNpc)
  409.  
  410.  
  411.  
  412.  
  413.  
  414. // ==UserScript==
  415. // @name Margonem Profile Online
  416. // @version 1.1
  417. // @author Arth/Szemkel <[email protected]>
  418. // @include http://www.margonem.pl/?task=profile&id=*
  419. // @include https://www.margonem.pl/?task=profile&id=*
  420. // @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
  421. // @grant GM_xmlhttpRequest
  422. // @connect margonem.pl
  423. // @run-at document-start
  424. // ==/UserScript==
  425.  
  426. (function() {
  427. var characters = [];
  428. var $statsBody = null;
  429. var worldsOnline = {};
  430.  
  431. var accountOnline = false;
  432.  
  433. var onlineReady = false;
  434. var charactersReady = false;
  435.  
  436. GM_xmlhttpRequest({
  437. method: "GET",
  438. url: "http://margonem.pl/?task=stats",
  439. onload: function(response) {
  440. $statsBody = $(response.responseText);
  441. onlineReady = true;
  442. check();
  443. }
  444. });
  445.  
  446. document.addEventListener('DOMContentLoaded', function() {
  447. loadCharacters();
  448. });
  449.  
  450. function loadCharacters() {
  451. var $stats = $('.inside_char_stats');
  452. $stats.each(function(i, e) {
  453. var name = $(e).find('b:first-child').text();
  454. var world = $(e).find('b:last-child').text();
  455.  
  456. characters.push({
  457. name: name,
  458. world: world,
  459. $e: $(e)
  460. });
  461.  
  462. if (i == $stats.length - 1) {
  463. charactersReady = true;
  464. check();
  465. }
  466. });
  467. }
  468.  
  469. function check() {
  470. if (charactersReady && onlineReady) start();
  471. }
  472.  
  473. function start() {
  474. for (var i in characters) {
  475. if (!worldsOnline[characters[i].world]) loadWorldOnline(characters[i].world);
  476.  
  477. if (isCharacterOnline(characters[i].name, characters[i].world)) {
  478. accountOnline = true;
  479. characters[i].$e.find('br').after('<span style="color: green; font-weight: bold;">online</span> | ');
  480. } else {
  481. characters[i].$e.find('br').after('<span style="color: gray;">offline</span> | ');
  482. }
  483. }
  484.  
  485. if (accountOnline) {
  486. $('#inside_bar_left_stats_profile div:first-child div').append(' <span style="color: green; float: right;">(online)</span>');
  487. }
  488. }
  489.  
  490. function loadWorldOnline(world) {
  491. worldsOnline[world] = $statsBody.find('#online_' + world + ' p').text().trim().split(', ');
  492. }
  493.  
  494. function isCharacterOnline(name, world) {
  495. return worldsOnline[world].indexOf(name) >= 0;
  496. }
  497. })();
  498.  
  499.  
  500.  
  501.  
  502.  
  503. / ==UserScript==
  504. // @name Nie ukrywaj mobków
  505. // @version 0.1
  506. // @description chuj
  507. // @author Adi Wilk
  508. // @match http://*.margonem.pl/
  509. // @grant none
  510. // ==/UserScript==
  511.  
  512. (() => {
  513. new class oooooooooooooooooooo {
  514. constructor() {
  515. this.interface = typeof window.Engine === "object" ? "ni" : "si";
  516. this.npcsOutOfView = new Array();
  517. this.initAjaxParser();
  518. }
  519.  
  520. get hero() {
  521. return this.interface === "ni" ? window.Engine.hero.d : window.hero;
  522. }
  523.  
  524. get map() {
  525. return this.interface === "ni" ? window.Engine.map.d : window.map;
  526. }
  527.  
  528. get npcs() {
  529. return this.interface === "ni" ? this.npcsOnNewInterface : window.g.npc;
  530. }
  531.  
  532. get npcsOnNewInterface() {
  533. const newNpcs = new Object();
  534.  
  535. for (const [id, npc] of Object.entries(window.Engine.npcs.check())) {
  536. newNpcs[id] = npc.d;
  537. }
  538.  
  539. return newNpcs;
  540. }
  541.  
  542. npcInOutOfRange({x:hx, y:hy}, {x, y}) {
  543. return Math.abs(x - hx) > this.map.visibility || Math.abs(y - hy) > this.map.visibility;
  544. }
  545.  
  546. initAjaxParser() {
  547. const self = this;
  548. const _ajax = window.$.ajax;
  549.  
  550. window.$.ajax = (...args) => {
  551. if (args[0].url.indexOf("/engine?t=") > -1) {
  552. const oldsucc = args[0].success;
  553. args[0].success = (...arg) => {
  554. const canEmit = typeof arg[0] === "object" && arg[0] !== null && arg[0].e === "ok";
  555.  
  556. if (canEmit) {
  557. arg[0] = self.parseInput(arg[0]);
  558. }
  559.  
  560. return oldsucc.apply(this, arg);
  561. };
  562. }
  563.  
  564. return _ajax.apply(this, args);
  565. }
  566. }
  567.  
  568. parseInput(data) {
  569. if (this.map.visibility !== 0) {
  570. if (data.hasOwnProperty("npc") && data.npc !== undefined) {
  571. for (const [id, npc] of Object.entries(data.npc)) {
  572. if (npc.hasOwnProperty("del") && npc.del === 1 && this.npcs[id] !== undefined) {
  573. if ([2, 3].includes(this.npcs[id].type) && this.npcInOutOfRange(this.hero, this.npcs[id])) {
  574. this.npcsOutOfView.push(id);
  575. delete data.npc[id];
  576. }
  577. }
  578. }
  579. }
  580. }
  581.  
  582. if (data.hasOwnProperty("h") && data.h.hasOwnProperty("x") && data.h.hasOwnProperty("y")) {
  583. const npcsToRemove = new Array();
  584.  
  585. for (const [id, npc] of Object.entries(this.npcs)) {
  586. if (this.npcsOutOfView.includes(id) && !this.npcInOutOfRange(data.h, npc)) {
  587. this.npcsOutOfView.splice(this.npcsOutOfView.indexOf(id), 1);
  588.  
  589. if ((data.hasOwnProperty("npc") && data.npc[id] === undefined) || !data.hasOwnProperty("npc")) {
  590. npcsToRemove.push(id);
  591. }
  592. }
  593. }
  594.  
  595. if (npcsToRemove.length > 0) {
  596. if (!data.hasOwnProperty("npc")) {
  597. data.npc = new Object();
  598. }
  599.  
  600. for (const id of npcsToRemove) {
  601. data.npc[id] = {
  602. del: 2
  603. }
  604. }
  605. }
  606. }
  607.  
  608. return data;
  609. }
  610. }
  611. })()
  612.  
  613.  
  614.  
  615.  
  616.  
  617. // ==UserScript==
  618. // @name Odswiezenie podczas laga.
  619. // @version 1.4
  620. // @description odswieza podczas laga(podczas wygasniecia sesji tez) i jeszcze usuwa te zolte komunikaty z konsoli
  621. // @author adison
  622. // @match *://*/
  623. // @grant none
  624. // ==/UserScript==
  625.  
  626. ! function(a, b) {
  627. let e, c = 0,
  628. d = !0;
  629. parseInput = function() {
  630. d && (setInterval(function() {
  631. c++, 4 < c && (c = 0, document.location.reload())
  632. }, 1e3), d = !1), c = 0, a.apply(this, arguments)
  633. }, log = function() {
  634. if (e = Array.prototype.slice.call(arguments), e[1]) {
  635. if (-1 < e[0].indexOf("Zapytanie odrzucone") && 1 == e[1]) return; - 1 < e[0].indexOf("Sesja gry wygas\u0142a") && 2 == e[1] && document.location.reload(); - 1 < e[0].indexOf("Przerwa techniczna") && 1 == e[1] && document.location.reload(); - 1 < e[0].indexOf("Bot") && 1 == e[1] && document.location.reload()
  636. }
  637. b.apply(this, arguments)
  638. }
  639. }(parseInput, log)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement