Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Szybsze ładowanie mapy
  3. // @version 1.1
  4. // @description szybsze ładowanie mapek
  5. // @author chooycieto
  6. // @match *://berufs.margonem.pl/
  7. // @match *://fobos.margonem.pl/
  8. // @match ://game9.margonem.pl/
  9. // @grant none
  10. // ==/UserScript==
  11. !function(a,b){function clientTs() {return new Date().getTime()/1000;}function c(){g.gameLoader=new GameLoader;var l=g.gameLoader.finishStep;g.gameLoader.finishStep=function(o){var p=l.apply(this,arguments);return"map"==o&&delete g.gameLoader,p},d(g.npc,newNpc),d(g.item,newItem),d(g.other,newOther),g.bagsPlaces.items=[],map.water.splice(0,map.water.length),g.gw={};for(var m=document.querySelectorAll(".gw, .rip"),n=0;n<m.length;n++)m[n].remove();document.querySelector("#ground").style.background="none",document.querySelector("#bground").style.background="none",hero.pet&&parseInput({pet:{}}),h=0,f()}function d(l,m){var n={},o={del:!0};for(var p in l)n[p]=o;m.call(window,n)}function e(){if(!k){k=!0;var l=document.createElement("style");l.setAttribute("type","text/css"),l.innerHTML=".helptxt, .progressbar, .progressInfo {display: none !important;}",document.head.appendChild(l)}}function f(l){if(l&&l.h&&l.h.id&&l.h.id!=j&&(g.bags=[[0,0],[0,0],[0,0],!1,!1,!1,[0,0]],parseInput({party:[]}),j=l.h.id),h++,1==h)e();else if(5==h)return g.chat.lastwrite="",h=!1,map.center(32hero.x,32*hero.y-16),void(hero.pet&&(hero.pet.x=hero.x,hero.pet.y=hero.y));_g(init&initlvl=${h}${1==h||2==h||3==h||4==h?&clientTs=${clientTs()}:""},f);}var j,h=!1,k=!1;parseInput=function(l){if("reload"==l.t&&(delete l.t,c()),l.item&&h)for(var m in l.item)g.highlightedItems.push(m);return l.c&&4==h&&(g.chat.txt=["","","",""],g.chat.ts=-1,document.querySelector("#chattxt").innerHTML=""),a.apply(this,arguments)},_g=function(l){return h&&-1==l.indexOf("initlvl=")?void 0:b.apply(this,arguments)};g.loadQueue.push({fun:function(){j=hero.id}})}(parseInput,_g);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement