Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.96 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Bot na e2 bez licencji
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match http://*.margonem.pl
  8. // @grant none
  9. // ==/UserScript==
  10. var _0x5c7f=['interv2','getItem','danebot','setItem','Nazwy\x20mobow\x20po\x20przecinku','danebotmap','Mapy\x20tez\x20po\x20przecinku\x20XD','add','<div\x20id=\x22ceb_config\x22>','absolute','green','13px','appendTo','#centerbox2','getElementById','ceb_monster','value','ceb_nazmap','location','innerHTML','<center>Podaj\x20nazwy\x20mobów:<br><br><input\x20id=\x22ceb_monster\x22\x20value=\x22','<br/><br/><center><button\x20id=\x22tynoniewiem\x22>Zapisz</button>','#tynoniewiem','cebgo','blockedInfoSearchPath','opt','max','min','npccol','col','charAt','dist2','abs','dist','hdist','playerCatcher','stop','css','run','search','fight&a=quit','mapencje','name','indexOf','nextx','nexty','npc','nick','fake','type','pow','bestxy1','sqrt','townname','length','gwIds','includes','substring','walk','fight&a=attack&ff=1&id=-','interv3','#tutorial','hide','bestxy','block','xxxx','blocked','check2','interv1'];(function(_0x115b3a,_0x821c53){var _0x5b2532=function(_0x4a31fe){while(--_0x4a31fe){_0x115b3a['push'](_0x115b3a['shift']());}};_0x5b2532(++_0x821c53);}(_0x5c7f,0xc7));var _0xffb5=function(_0x96c601,_0x160781){_0x96c601=_0x96c601-0x0;var _0x14d480=_0x5c7f[_0x96c601];return _0x14d480;};$(_0xffb5('0x0'))[_0xffb5('0x1')]();ceb={};ceb[_0xffb5('0x2')]=0x270f;ceb['run']=0x1;ceb['id']=0x0;ceb[_0xffb5('0x3')]='';ceb[_0xffb5('0x4')]=0x0;ceb[_0xffb5('0x5')]=0x1;ceb[_0xffb5('0x6')]=0x0;ceb[_0xffb5('0x6')]=0x0;ceb[_0xffb5('0x7')]='';ceb[_0xffb5('0x8')]='';ceb['interv3']='';if(localStorage[_0xffb5('0x9')](_0xffb5('0xa'))==null)localStorage[_0xffb5('0xb')](_0xffb5('0xa'),_0xffb5('0xc'));if(localStorage['getItem'](_0xffb5('0xd'))==null)localStorage[_0xffb5('0xb')](_0xffb5('0xd'),_0xffb5('0xe'));mAlert=function(_0x3484b0,_0x1a25e0,_0x4914fe,_0x57c0d1){};g['lock'][_0xffb5('0xf')]=function(_0x55aeae){};$(_0xffb5('0x10'))['css']({'position':_0xffb5('0x11'),'left':-0xd0,'top':0xfa,'width':0xc8,'height':0xd2,'color':_0xffb5('0x12'),'background-color':'black','font-size':_0xffb5('0x13')})[_0xffb5('0x14')](_0xffb5('0x15'));function zapiszdane(){var _0x261f00=document[_0xffb5('0x16')](_0xffb5('0x17'))[_0xffb5('0x18')];var _0x106c82=document[_0xffb5('0x16')](_0xffb5('0x19'))[_0xffb5('0x18')];localStorage[_0xffb5('0xb')]('danebot',_0x261f00);localStorage['setItem'](_0xffb5('0xd'),_0x106c82);var _0x30cdb9=localStorage['getItem'](_0xffb5('0xa'));var _0x67fb00=localStorage[_0xffb5('0x9')](_0xffb5('0xd'));document[_0xffb5('0x1a')]['reload']();}var danebot=localStorage[_0xffb5('0x9')]('danebot');var danebotmap=localStorage[_0xffb5('0x9')](_0xffb5('0xd'));var mapki=[];var nazwamapki;ceb_config[_0xffb5('0x1b')]=_0xffb5('0x1c')+danebot+'\x22>';ceb_config['innerHTML']+='<br/><center>Podaj\x20nazwy\x20map:<br><br><input\x20id=\x22ceb_nazmap\x22\x20value=\x22'+danebotmap+'\x22>';ceb_config['innerHTML']+=_0xffb5('0x1d');$(_0xffb5('0x1e'))['click'](function(){zapiszdane();});hero[_0xffb5('0x1f')]=function(_0x35baa5,_0x3da340){if(this['isBlockedSearchPath']())return this[_0xffb5('0x20')]();for(var _0x26d817=[],_0x54f59f=0x80&hero[_0xffb5('0x21')]?0x8:0x14,_0x18f1d3=Math[_0xffb5('0x22')](0x0,Math['min'](_0x35baa5,this['x'])-_0x54f59f),_0x598f3b=Math['min'](map['x']-0x1,Math[_0xffb5('0x22')](_0x35baa5,this['x'])+_0x54f59f),_0x13aa62=Math['max'](0x0,Math[_0xffb5('0x23')](_0x3da340,this['y'])-_0x54f59f),_0x142432=Math[_0xffb5('0x23')](map['y']-0x1,Math[_0xffb5('0x22')](_0x3da340,this['y'])+_0x54f59f),_0x582c01=_0x18f1d3-0x1;_0x598f3b+0x1>=_0x582c01;_0x582c01++){_0x26d817[_0x582c01]=[];for(var _0x322e3c=_0x13aa62-0x1;_0x142432+0x1>=_0x322e3c;_0x322e3c++)_0x26d817[_0x582c01][_0x322e3c]=!(_0x582c01>=_0x18f1d3&&_0x598f3b>=_0x582c01&&_0x322e3c>=_0x13aa62&&_0x142432>=_0x322e3c)||isset(g[_0xffb5('0x24')][_0x582c01+0x100*_0x322e3c])||map[_0xffb5('0x25')]&&'0'!=map[_0xffb5('0x25')][_0xffb5('0x26')](_0x582c01+_0x322e3c*map['x'])?-0x2:-0x1;}_0x26d817[this['x']][this['y']]=0x0,b=-0x1,road=[];for(var _0xe3af23={'x':-0x1,'y':-0x1,'dist':0x63},_0x5e3126=0x1;_0x598f3b-_0x18f1d3+_0x142432-_0x13aa62+0x3>_0x5e3126;_0x5e3126++)for(var _0x582c01=_0x18f1d3;_0x598f3b>=_0x582c01;_0x582c01++)for(var _0x322e3c=_0x13aa62;_0x142432>=_0x322e3c;_0x322e3c++){if(-0x1!=_0x26d817[_0x582c01][_0x322e3c]||_0x26d817[_0x582c01][_0x322e3c-0x1]!=_0x5e3126-0x1&&_0x26d817[_0x582c01][_0x322e3c+0x1]!=_0x5e3126-0x1&&_0x26d817[_0x582c01-0x1][_0x322e3c]!=_0x5e3126-0x1&&_0x26d817[_0x582c01+0x1][_0x322e3c]!=_0x5e3126-0x1||(_0x26d817[_0x582c01][_0x322e3c]=_0x5e3126),_0x26d817[_0x35baa5][_0x3da340]>0x0){_0x582c01=_0x598f3b+0x1;break;}_0xe3af23[_0xffb5('0x27')]=Math[_0xffb5('0x28')](_0x35baa5-_0x582c01)+Math[_0xffb5('0x28')](_0x3da340-_0x322e3c),_0x26d817[_0x582c01][_0x322e3c]==_0x5e3126&&_0xe3af23[_0xffb5('0x27')]<_0xe3af23[_0xffb5('0x29')]&&(_0xe3af23['x']=_0x582c01,_0xe3af23['y']=_0x322e3c,_0xe3af23['dist']=_0xe3af23[_0xffb5('0x27')]);}if(_0xe3af23[_0xffb5('0x2a')]=Math[_0xffb5('0x28')](_0x35baa5-hero['x'])+Math[_0xffb5('0x28')](_0x3da340-hero['y']),_0x26d817[_0x35baa5][_0x3da340]>0x0||_0xe3af23['dist']<_0xe3af23[_0xffb5('0x2a')]){_0x26d817[_0x35baa5][_0x3da340]<0x0&&(_0x35baa5>_0xe3af23['x']?b=0x2:_0x35baa5<_0xe3af23['x']?b=0x1:_0x3da340>_0xe3af23['y']?b=0x0:_0x3da340<_0xe3af23['y']&&(b=0x3),_0x35baa5=_0xe3af23['x'],_0x3da340=_0xe3af23['y']),road[0x0]={'x':_0x35baa5,'y':_0x3da340};for(var _0x5179ec=_0x26d817[_0x35baa5][_0x3da340]-0x1,_0x24a034=_0x35baa5,_0x233655=_0x3da340;_0x5179ec>0x0;_0x5179ec--)_0x26d817[_0x24a034][_0x233655-0x1]==_0x5179ec?_0x233655--:_0x26d817[_0x24a034][_0x233655+0x1]==_0x5179ec?_0x233655++:_0x26d817[_0x24a034-0x1][_0x233655]==_0x5179ec?_0x24a034--:_0x26d817[_0x24a034+0x1][_0x233655]==_0x5179ec?_0x24a034++:_0x5179ec=0x0,_0x5179ec&&(road[_0x26d817[_0x35baa5][_0x3da340]-_0x5179ec]={'x':_0x24a034,'y':_0x233655});}road['length']>0x1&&null==g[_0xffb5('0x2b')]['follow']&&$('#target')[_0xffb5('0x2c')]()[_0xffb5('0x2d')]({'left':0x20*_0x35baa5,'top':0x20*_0x3da340,'display':_0xffb5('0x3'),'opacity':0x1})['fadeOut'](0x3e8);};!function(_0x395b04){battleMsg=function(_0x20facb,_0x216ee4){ceb[_0xffb5('0x2e')]=0x1;var _0x1f4764=_0x395b04(_0x20facb,_0x216ee4);if(_0x20facb[_0xffb5('0x2f')](/winner=/)>=0x0){_g(_0xffb5('0x30'));ceb[_0xffb5('0x2e')]=0x0;}return _0x1f4764;};}(battleMsg);ceb['f1']=function(){if(localStorage['getItem'](_0xffb5('0x31'))==null)localStorage[_0xffb5('0xb')]('mapencje',map[_0xffb5('0x32')]);if(localStorage[_0xffb5('0x9')](_0xffb5('0x31'))[_0xffb5('0x33')](map[_0xffb5('0x32')])==-0x1){var _0x3653e2=localStorage[_0xffb5('0x9')](_0xffb5('0x31'));_0x3653e2+='|'+map[_0xffb5('0x32')];localStorage[_0xffb5('0xb')](_0xffb5('0x31'),_0x3653e2);};if(ceb[_0xffb5('0x2e')]==0x0){hero[_0xffb5('0x34')]='';hero[_0xffb5('0x35')]='';var _0x1af663=!![];ceb[_0xffb5('0x2')]=0x270f;for(var _0x11d239 in g[_0xffb5('0x36')]){if(ceb_monster[_0xffb5('0x18')][_0xffb5('0x33')](g[_0xffb5('0x36')][_0x11d239][_0xffb5('0x37')])>-0x1&&ceb[_0xffb5('0x3')]['indexOf'](_0x11d239)<0x0&&g[_0xffb5('0x36')][_0x11d239][_0xffb5('0x38')]===undefined&&(g[_0xffb5('0x36')][_0x11d239][_0xffb5('0x39')]==0x2||g[_0xffb5('0x36')][_0x11d239][_0xffb5('0x39')]==0x3)){x1=Math[_0xffb5('0x3a')](Math[_0xffb5('0x28')](hero['x']-g['npc'][_0x11d239]['x']),0x2);y1=Math[_0xffb5('0x3a')](Math[_0xffb5('0x28')](hero['y']-g[_0xffb5('0x36')][_0x11d239]['y']),0x2);ceb[_0xffb5('0x3b')]=Math[_0xffb5('0x3c')](x1)+Math['sqrt'](y1);if(ceb['bestxy1']<ceb[_0xffb5('0x2')]){_0x1af663=![];ceb[_0xffb5('0x2')]=ceb['bestxy1'];hero[_0xffb5('0x34')]=g['npc'][_0x11d239]['x'];hero[_0xffb5('0x35')]=g[_0xffb5('0x36')][_0x11d239]['y'];ceb['id']=_0x11d239;ceb['run']=0x1;ceb[_0xffb5('0x5')]=0x0;};}};if(!_0x1af663){hero['cebgo'](hero[_0xffb5('0x34')],hero[_0xffb5('0x35')]);}else{mapki=[];for(var _0x11d239 in g['townname']){if(ceb_nazmap[_0xffb5('0x18')][_0xffb5('0x33')](g[_0xffb5('0x3d')][_0x11d239])>-0x1&&localStorage[_0xffb5('0x9')](_0xffb5('0x31'))[_0xffb5('0x33')](g[_0xffb5('0x3d')][_0x11d239])==-0x1){mapki['push'](_0x11d239);}}}if(mapki[_0xffb5('0x3e')]<0x1){localStorage[_0xffb5('0xb')](_0xffb5('0x31'),null);}else{for(var _0x11d239 in g[_0xffb5('0x3f')]){if(mapki[_0xffb5('0x40')](_0x11d239)){gwx=Number(g['gwIds'][_0x11d239][_0xffb5('0x41')](0x0,g['gwIds'][_0x11d239][_0xffb5('0x33')]('.')));gwy=Number(g[_0xffb5('0x3f')][_0x11d239][_0xffb5('0x41')](g[_0xffb5('0x3f')][_0x11d239][_0xffb5('0x33')]('.')+0x1));x1=Math[_0xffb5('0x3a')](Math[_0xffb5('0x28')](hero['x']-gwx),0x2);y1=Math[_0xffb5('0x3a')](Math[_0xffb5('0x28')](hero['y']-gwy),0x2);ceb[_0xffb5('0x3b')]=Math['sqrt'](x1)+Math[_0xffb5('0x3c')](y1);if(ceb[_0xffb5('0x3b')]<ceb['bestxy']){ceb[_0xffb5('0x2')]=ceb[_0xffb5('0x3b')];hero[_0xffb5('0x34')]=gwx;hero[_0xffb5('0x35')]=gwy;ceb[_0xffb5('0x5')]=0x1;};}}if(_0x1af663&&hero[_0xffb5('0x34')]!=''&&hero[_0xffb5('0x35')]!=''){hero[_0xffb5('0x1f')](hero[_0xffb5('0x34')],hero[_0xffb5('0x35')]);ceb[_0xffb5('0x2e')]=0x1;if(hero['x']==hero[_0xffb5('0x34')]&&hero['y']==hero[_0xffb5('0x35')]){_g(_0xffb5('0x42'));}}}}};ceb['f2']=function(){if(road[_0xffb5('0x3e')]==0x0&&ceb['blocked']==0x0){if(Math[_0xffb5('0x28')](hero['rx']-g[_0xffb5('0x36')][ceb['id']]['x'])<=0x1&&Math[_0xffb5('0x28')](hero['ry']-g[_0xffb5('0x36')][ceb['id']]['y'])<=0x1&&(g[_0xffb5('0x36')][ceb['id']][_0xffb5('0x39')]==0x2||g['npc'][ceb['id']][_0xffb5('0x39')]==0x3)){ceb[_0xffb5('0x5')]=0x1;_g(_0xffb5('0x43')+ceb['id']);}else{if(ceb[_0xffb5('0x6')]==0x2){ceb['blocked']=0x1;ceb[_0xffb5('0x3')]=ceb[_0xffb5('0x3')]+'|'+ceb['id'];ceb[_0xffb5('0x2e')]=0x0;ceb['check2']=0x0;}else if(ceb[_0xffb5('0x6')]!=0x2){ceb[_0xffb5('0x6')]++;}}}};ceb['f3']=function(){if(road[_0xffb5('0x3e')]==0x0){if(ceb[_0xffb5('0x6')]<0x3c){ceb[_0xffb5('0x6')]++;}else if(ceb[_0xffb5('0x6')]>=0x3c){ceb[_0xffb5('0x2e')]=0x0;ceb['check2']=0x0;}}else{ceb[_0xffb5('0x6')]=0x0;}};ceb[_0xffb5('0x7')]=setInterval(ceb['f1'],0x190);ceb[_0xffb5('0x8')]=setInterval(ceb['f2'],0x12c);ceb[_0xffb5('0x44')]=setInterval(ceb['f3'],0x32);setInterval(function(){ceb[_0xffb5('0x3')]='';},0x7530);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement