Advertisement
Tw100

pitbull

Jul 16th, 2019
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.83 KB | None | 0 0
  1. // ==UserScript==
  2. // @name motobopy
  3. // @namespace gffg
  4. // @version 0.1
  5. // @description fgg
  6. // @author gfg
  7. // @grant none
  8. // @include http*://*.*game.php*
  9. // ==/UserScript==
  10.  
  11. var Balanceador_Recursos_Na_aldeia = {
  12. Tempo_Troca_Entre_Mercadores: 2000,
  13. Valor_De_Recursos: [186000, 170000, 190000],
  14. populationAvailableThreshold: 0,
  15. intervalMilliseconds: 300,
  16. tradersSafeguard: 10,
  17. };
  18.  
  19. var _0xe539=["\x47\x45\x54","\x6F\x76\x65\x72\x76\x69\x65\x77\x5F\x76\x69\x6C\x6C\x61\x67\x65\x73","\x70\x72\x6F\x64","\x30","\x62\x75\x69\x6C\x64\x55\x52\x4C","\x74\x72\x61\x64\x65\x73\x5F\x74\x61\x62\x6C\x65","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x23\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E\x5F\x74\x61\x62\x6C\x65","\x66\x69\x6E\x64","\x6C\x65\x6E\x67\x74\x68","\x72\x6F\x77\x73","\x2E","","\x72\x65\x70\x6C\x61\x63\x65","\x69\x6E\x6E\x65\x72\x54\x65\x78\x74","\x63\x68\x69\x6C\x64\x72\x65\x6E","\x63\x65\x6C\x6C\x73","\x70\x75\x73\x68","\x74\x72\x69\x6D","\x6D\x61\x74\x63\x68","\x6D\x61\x70","\x7C","\x73\x70\x6C\x69\x74","\x76\x61\x6C\x75\x65","\x64\x61\x74\x61\x2D\x69\x64","\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x43\x6F\x6D\x65\x72\x63\x69\x61\x6E\x74\x65\x73\x5F\x52\x65\x73\x65\x72\x76\x61\x73\x5F\x6E\x61\x5F\x61\x6C\x64\x65\x69\x61","\x6D\x61\x78","\x74\x68\x65\x6E","\x74\x65\x78\x74","\x69\x6E\x63\x6C\x75\x64\x65","\x74\x72\x61\x64\x65\x72","\x69\x6E\x63","\x23\x74\x72\x61\x64\x65\x73\x5F\x74\x61\x62\x6C\x65","\x77\x6F\x6F\x64","\x73\x74\x6F\x6E\x65","\x69\x72\x6F\x6E","\x63\x68\x69\x6C\x64\x45\x6C\x65\x6D\x65\x6E\x74\x43\x6F\x75\x6E\x74","\x77\x6F\x6F\x64\x7C\x73\x74\x6F\x6E\x65\x7C\x69\x72\x6F\x6E","\x6F\x75\x74\x65\x72\x48\x54\x4D\x4C","\x69\x6E\x64\x65\x78\x4F\x66","\x68\x72\x65\x66","\x73\x6F\x6D\x65","\x6E\x65\x65\x64\x73","\x73\x74\x6F\x72\x61\x67\x65","\x6D\x69\x6E","\x72\x65\x73\x6F\x75\x72\x63\x65\x73","\x66\x61\x72","\x69\x6E\x63\x6F\x6D\x65\x73","\x66\x72\x65\x65\x73","\x6E\x65\x61\x72","\x74\x72\x61\x64\x65\x72\x73","\x69\x64","\x64\x75\x72\x61\x74\x69\x6F\x6E","\x54\x65\x6D\x70\x6F\x5F\x54\x72\x6F\x63\x61\x5F\x45\x6E\x74\x72\x65\x5F\x4D\x65\x72\x63\x61\x64\x6F\x72\x65\x73","\x69\x6E\x63\x6F\x6D\x65","\x6E\x61\x6D\x65","\x6D\x61\x78\x69\x6D\x75\x6D","\x66\x61\x72\x6D","\x63\x75\x72\x72\x65\x6E\x74","\x4C\x69\x6D\x69\x74\x65\x5F\x4D\x61\x78\x5F\x4D\x65\x72\x63\x61\x64\x6F\x72\x65\x73\x5F\x55\x73\x61\x64\x6F\x73","\x66\x69\x6C\x74\x65\x72","\x73\x6F\x72\x74","\x63\x6F\x6F\x72\x64\x73","\x61\x6C\x6C","\x50\x4F\x53\x54","\x6D\x61\x72\x6B\x65\x74","\x6D\x61\x70\x5F\x73\x65\x6E\x64","\x76\x69\x6C\x6C\x61\x67\x65","\x53\x75\x70\x70\x6C\x79\x69\x6E\x67\x3C\x62\x72\x2F\x3E","\x20\x77\x69\x74\x68\x3A\x3C\x62\x72\x2F\x3E\x5B\x77\x6F\x6F\x64\x3A\x20","\x66\x6F\x72\x6D","\x2C\x20\x73\x74\x6F\x6E\x65\x3A\x20","\x2C\x20\x69\x72\x6F\x6E\x3A\x20","\x5D\x3C\x62\x72\x2F\x3E\x28","\x2F","\x29","\x70\x6F\x73\x74","\x66\x6C\x6F\x6F\x72","\x63\x65\x69\x6C","\x68\x79\x70\x6F\x74"];(function(_0x94a8x1,_0x94a8x2){let _0x94a8x3=function(){let _0x94a8x4=_0x94a8x1[_0xe539[4]](_0xe539[0],_0xe539[1],{mode:_0xe539[2],group:_0xe539[3]});return fetch(_0x94a8x4,{credentials:_0xe539[31]})[_0xe539[29]]((_0x94a8x12)=>_0x94a8x12[_0xe539[30]]())[_0xe539[29]]((_0x94a8x5)=>{let _0x94a8x6=document[_0xe539[6]](_0xe539[5]);_0x94a8x6[_0xe539[7]]= _0x94a8x5;let _0x94a8x7=$(_0x94a8x6)[_0xe539[9]](_0xe539[8])[0];let _0x94a8x8=[];for(let _0x94a8x9=1;_0x94a8x9< _0x94a8x7[_0xe539[11]][_0xe539[10]];_0x94a8x9++){let _0x94a8xa=_0x94a8x7[_0xe539[11]][_0x94a8x9];let _0x94a8xb=[];for(let _0x94a8xc=0;_0x94a8xc< 3;_0x94a8xc++){_0x94a8xb[_0xe539[18]](Number(_0x94a8xa[_0xe539[17]][3][_0xe539[16]][_0x94a8xc][_0xe539[15]][_0xe539[14]](_0xe539[12],_0xe539[13])))};let _0x94a8xd=_0x94a8xa[_0xe539[17]][1][_0xe539[15]][_0xe539[19]]();let _0x94a8xe=_0x94a8xd[_0xe539[20]](/\d+\|\d+/);_0x94a8xe= _0x94a8xe[_0x94a8xe[_0xe539[10]]- 1][_0xe539[23]](_0xe539[22])[_0xe539[21]]((_0x94a8xf)=>Number(_0x94a8xf));let _0x94a8x10=_0x94a8xa[_0xe539[17]][6][_0xe539[15]][_0xe539[20]](/\d+/g)[_0xe539[21]]((_0x94a8x11)=>Number(_0x94a8x11));_0x94a8x8[_0xe539[18]]({id:_0x94a8xa[_0xe539[17]][1][_0xe539[16]][0][_0xe539[26]][_0xe539[25]][_0xe539[24]],name:_0x94a8xd,coords:_0x94a8xe,resources:_0x94a8xb,needs:[0,0,0],incomes:{near:[0,0,0],far:[0,0,0]},frees:[0,0,0],storage:Number(_0x94a8xa[_0xe539[17]][4][_0xe539[15]][_0xe539[20]](/\d+/)[0]),traders:Math[_0xe539[28]](0,Number(_0x94a8xa[_0xe539[17]][5][_0xe539[15]][_0xe539[20]](/\d+/)[0])- _0x94a8x2[_0xe539[27]]),farm:{current:_0x94a8x10[0],maximum:_0x94a8x10[1]}})};return _0x94a8x8})};let _0x94a8x13=function(){let _0x94a8x4=_0x94a8x1[_0xe539[4]](_0xe539[0],_0xe539[1],{mode:_0xe539[32],type:_0xe539[33],group:_0xe539[3]});return fetch(_0x94a8x4,{credentials:_0xe539[31]})[_0xe539[29]]((_0x94a8x12)=>_0x94a8x12[_0xe539[30]]())[_0xe539[29]]((_0x94a8x5)=>{let _0x94a8x6=document[_0xe539[6]](_0xe539[5]);_0x94a8x6[_0xe539[7]]= _0x94a8x5;let _0x94a8x7=$(_0x94a8x6)[_0xe539[9]](_0xe539[34])[0];let _0x94a8x14=[];if(_0x94a8x7=== undefined){return []};let _0x94a8x15=[_0xe539[35],_0xe539[36],_0xe539[37]];for(let _0x94a8x9=1;_0x94a8x9< _0x94a8x7[_0xe539[11]][_0xe539[10]];_0x94a8x9++){let _0x94a8xa=_0x94a8x7[_0xe539[11]][_0x94a8x9];let _0x94a8x16=_0x94a8xa[_0xe539[17]][5][_0xe539[15]][_0xe539[20]](/\d+/g)[_0xe539[21]]((_0x94a8x17)=>Number(_0x94a8x17));let _0x94a8x18=_0x94a8x19(_0x94a8x16);let _0x94a8xb=[0,0,0];for(let _0x94a8xc=0;_0x94a8xc< _0x94a8xa[_0xe539[17]][7][_0xe539[38]];_0x94a8xc++){let _0x94a8xd=_0x94a8xa[_0xe539[17]][7][_0xe539[16]][_0x94a8xc][_0xe539[40]][_0xe539[20]](_0xe539[39])[0];_0x94a8xb[_0x94a8x15[_0xe539[41]](_0x94a8xd)]= Number(_0x94a8xa[_0xe539[17]][7][_0xe539[16]][_0x94a8xc][_0xe539[15]][_0xe539[14]](_0xe539[12],_0xe539[13]))};_0x94a8x14[_0xe539[18]]({id:_0x94a8xa[_0xe539[17]][3][_0xe539[16]][0][_0xe539[42]][_0xe539[20]](/id=(\d+)/)[1],duration:_0x94a8x18,income:_0x94a8xb})};return _0x94a8x14})};function _0x94a8x19(_0x94a8x16){let _0x94a8x18=0;let _0x94a8x1a=_0x94a8x16[_0xe539[10]]- 1;for(let _0x94a8x9=0;_0x94a8x9< _0x94a8x1a;_0x94a8x9++){let _0x94a8x1b=_0x94a8x16[_0x94a8x9];_0x94a8x18+= _0x94a8x1b* 60};_0x94a8x18+= _0x94a8x16[_0x94a8x1a];return _0x94a8x18}let _0x94a8x1c=function(_0x94a8x1d){return _0x94a8x1d[_0xe539[43]]((_0x94a8x17)=>_0x94a8x17> 0)};let _0x94a8x1e=function(_0x94a8x8,_0x94a8x1f){let _0x94a8x20=[];for(let _0x94a8x9=0;_0x94a8x9< _0x94a8x8[_0xe539[10]];_0x94a8x9++){let _0x94a8x21=_0x94a8x8[_0x94a8x9];for(let _0x94a8xc=0;_0x94a8xc< _0x94a8x1f[_0xe539[10]];_0x94a8xc++){_0x94a8x21[_0xe539[44]][_0x94a8xc]= Math[_0xe539[28]](Math[_0xe539[46]](_0x94a8x1f[_0x94a8xc],_0x94a8x21[_0xe539[45]])- _0x94a8x21[_0xe539[47]][_0x94a8xc]- _0x94a8x21[_0xe539[49]][_0xe539[48]][_0x94a8xc],0)};if(_0x94a8x1c(_0x94a8x21[_0xe539[44]])){_0x94a8x20[_0xe539[18]](_0x94a8x8[_0x94a8x9])}};return _0x94a8x20};let _0x94a8x22=function(_0x94a8x8,_0x94a8x23){let _0x94a8x20=[];for(const _0x94a8x21 of _0x94a8x8){for(let _0x94a8x9=0;_0x94a8x9< _0x94a8x23[_0xe539[10]];_0x94a8x9++){_0x94a8x21[_0xe539[50]][_0x94a8x9]= Math[_0xe539[28]](0,_0x94a8x21[_0xe539[47]][_0x94a8x9]- Math[_0xe539[28]](0,_0x94a8x23[_0x94a8x9]- _0x94a8x21[_0xe539[49]][_0xe539[51]][_0x94a8x9]))};if(_0x94a8x21[_0xe539[52]]> 0&& _0x94a8x1c(_0x94a8x21[_0xe539[50]])){_0x94a8x20[_0xe539[18]](_0x94a8x21)}};return _0x94a8x20};let _0x94a8x24=function(_0x94a8x14,_0x94a8x25){for(const _0x94a8x26 of _0x94a8x14){let _0x94a8x21=_0x94a8x25[_0xe539[9]]((_0x94a8x27)=>_0x94a8x27[_0xe539[53]]=== _0x94a8x26[_0xe539[53]]);let _0x94a8x28=_0x94a8x26[_0xe539[54]]<= _0x94a8x2[_0xe539[55]]* 60;for(let _0x94a8x9=0;_0x94a8x9< _0x94a8x26[_0xe539[56]][_0xe539[10]];_0x94a8x9++){_0x94a8x21[_0xe539[49]][_0xe539[48]][_0x94a8x9]+= _0x94a8x26[_0xe539[56]][_0x94a8x9];if(_0x94a8x28){_0x94a8x21[_0xe539[49]][_0xe539[51]][_0x94a8x9]+= _0x94a8x26[_0xe539[56]][_0x94a8x9]}}}};let _0x94a8x29=function(_0x94a8x2a,_0x94a8x2b,_0x94a8x2c){for(const _0x94a8x21 of _0x94a8x2a){let _0x94a8x2d=[];for(let _0x94a8x9=0;_0x94a8x9< 3;_0x94a8x9++){_0x94a8x2d[_0xe539[18]](Math[_0xe539[46]](_0x94a8x2b[_0xe539[44]][_0x94a8x9],_0x94a8x21[_0xe539[50]][_0x94a8x9]))};if(!_0x94a8x1c(_0x94a8x2d)){continue};_0x94a8x21[_0xe539[52]]-= _0x94a8x38(_0x94a8x2d,_0x94a8x21[_0xe539[52]]);for(let _0x94a8x9=0;_0x94a8x9< 3;_0x94a8x9++){_0x94a8x2b[_0xe539[44]][_0x94a8x9]-= _0x94a8x2d[_0x94a8x9];_0x94a8x21[_0xe539[50]][_0x94a8x9]-= _0x94a8x2d[_0x94a8x9]};_0x94a8x2c[_0xe539[18]]({form:{target_id:_0x94a8x2b[_0xe539[53]],iron:_0x94a8x2d[2],stone:_0x94a8x2d[1],wood:_0x94a8x2d[0]},village:{id:_0x94a8x21[_0xe539[53]],name:_0x94a8x21[_0xe539[57]]}})}};let _0x94a8x2e=function(){return Promise[_0xe539[65]]([_0x94a8x13(),_0x94a8x3()])[_0xe539[29]]((_0x94a8x2f)=>{let _0x94a8x14=_0x94a8x2f[0];let _0x94a8x25=_0x94a8x2f[1];_0x94a8x24(_0x94a8x14,_0x94a8x25);let _0x94a8x30=_0x94a8x1e(_0x94a8x25,_0x94a8x2.Valor_De_Recursos);let _0x94a8x2a=_0x94a8x22(_0x94a8x25,_0x94a8x2.Valor_De_Recursos);_0x94a8x30= _0x94a8x30[_0xe539[62]]((_0x94a8x11)=>_0x94a8x11[_0xe539[59]][_0xe539[58]]- _0x94a8x11[_0xe539[59]][_0xe539[60]]> _0x94a8x2[_0xe539[61]]);_0x94a8x30= _0x94a8x30[_0xe539[63]]((_0x94a8x31,_0x94a8x32)=>{return _0x94a8x31[_0xe539[59]][_0xe539[60]]- _0x94a8x32[_0xe539[59]][_0xe539[60]]});let _0x94a8x2c=[];for(const _0x94a8x2b of _0x94a8x30){_0x94a8x2a[_0xe539[63]]((_0x94a8x2f,_0x94a8x33)=>_0x94a8x3d(_0x94a8x2f[_0xe539[64]],_0x94a8x2b[_0xe539[64]])- _0x94a8x3d(_0x94a8x33[_0xe539[64]],_0x94a8x2b[_0xe539[64]]));_0x94a8x29(_0x94a8x2a,_0x94a8x2b,_0x94a8x2c);_0x94a8x2a= _0x94a8x2a[_0xe539[62]]((_0x94a8x27)=>_0x94a8x27[_0xe539[52]]> 0)};return _0x94a8x2c})};function _0x94a8x34(_0x94a8x2c,_0x94a8x35){let _0x94a8x9=0;let _0x94a8x36=setInterval(()=>{if(_0x94a8x9=== _0x94a8x2c[_0xe539[10]]){clearInterval(_0x94a8x36);return};let _0x94a8x37=_0x94a8x2c[_0x94a8x9];let _0x94a8x4=_0x94a8x1[_0xe539[4]](_0xe539[66],_0xe539[67],{ajaxaction:_0xe539[68],village:_0x94a8x37[_0xe539[69]][_0xe539[53]]});UI.SuccessMessage((_0xe539[70]+ (_0x94a8x37[_0xe539[69]][_0xe539[57]])+ _0xe539[71]+ (_0x94a8x37[_0xe539[72]][_0xe539[35]])+ _0xe539[73]+ (_0x94a8x37[_0xe539[72]][_0xe539[36]])+ _0xe539[74]+ (_0x94a8x37[_0xe539[72]][_0xe539[37]])+ _0xe539[75]+ (_0x94a8x9+ 1)+ _0xe539[76]+ (_0x94a8x2c[_0xe539[10]])+ _0xe539[77]));$[_0xe539[78]](_0x94a8x4,_0x94a8x37[_0xe539[72]]);_0x94a8x9++},_0x94a8x35)}function _0x94a8x38(_0x94a8x1d,_0x94a8x39){let _0x94a8x3a=_0x94a8x1d[0]+ _0x94a8x1d[1]+ _0x94a8x1d[2];let _0x94a8x3b=_0x94a8x39* 1000;if(_0x94a8x3a> _0x94a8x3b){let _0x94a8x3c=_0x94a8x3b/ _0x94a8x3a;for(let _0x94a8x9=0;_0x94a8x9< 3;_0x94a8x9++){_0x94a8x1d[_0x94a8x9]= Math[_0xe539[79]](_0x94a8x3c* _0x94a8x1d[_0x94a8x9])}};return Math[_0xe539[80]]((_0x94a8x1d[0]+ _0x94a8x1d[1]+ _0x94a8x1d[2])/ 1000)}function _0x94a8x3d(_0x94a8x3e,_0x94a8x3f){let _0x94a8x40=_0x94a8x3e[0]- _0x94a8x3f[0];let _0x94a8x41=_0x94a8x3e[1]- _0x94a8x3f[1];return Math[_0xe539[81]](_0x94a8x40,_0x94a8x41)}_0x94a8x2e()[_0xe539[29]]((_0x94a8x2c)=>{_0x94a8x34(_0x94a8x2c,_0x94a8x2.Intervalo_Das_Trocas_automaticas_ms)})})(TribalWars,Balanceador_Recursos_Na_aldeia)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement