×
Ir ao conteúdo
  • Cadastre-se

diogorocha18

Membro Pleno
  • Posts

    21
  • Cadastrado em

  • Última visita

Reputação

1
  1. Boa tarde, Venho hoje pedir ajuda ajuda a desofuscar este script que queria usar para um jogo mas queria fazer algumas alterações.. conseguem me ajudar? Aguardo a ajuda Cumprimentos Code: function _0xaf33(){const _0x5a6975=['WOHWW78','W5hdQxu','W5W6WQG','nZKy','aSoliSoPqqnRkrb/','WR7cQCk1','B8ovFa','WRL0CG','q8oCqq','WQddN2q','wNZcSa','WO56W78','WPVcL8ob','WRVdG8kS','W5xdUhi','WQddH8kd','W67cLq4','WP3dGCk+','WOxdQdW','ymkydW','p8k8WOu','WQhcUSoC','WQNdJ24','vgCC','WR/dSqFdM8kOW5pcNCk2CdFcImoetW','ax3dTG','l0aI','W4a2WRO','oSoAkq','neuC','vHjwCIjrWOHTWO/cTG','kgfj','W44gW6blW4ddISo7iCkRW4NcKe/dTW','b0xdMa','W4tdK8kh','aMVdRq','wCo3F8kEW4OvoCkEWP8','WO7cRxe','WRddOSkg','t0JcNq','g1FcHG','Aura','W73dGmkwzmkshqLsW5/cRSo4WRyE','W7NcQ0u','i2Tf','s8kxCq','EeWl','EcT3','WQ3dL8kJ','W6GMWQm','W5JdPLS','xctcUW','W6JcUmkh','WOrYW7W','bKVcLW','vrrzD30lWOvvWOhcI3W2','W5iNW6a','WRJdKCkJ','WP3dUSkT','WPjeWQ0','WOxdPmkU','eXldNa','WQFdO8kC','W6pcGu0','W6xcPLi','AuRcPa','Cmk9pa','jSoHWOq','e1tcTa','W6fJlW','pSkvFa','q2Lx','rxyh','imoIWRG','WQVcPCo1','W60MWQS','WQBcSSor','W7WIn8kUWPi6u8oUW6FcK8koW7O','ishdTq','w3mw','WRFdGdi','B0ah','W7ZcHIW','hepcNq','nZ0X','W6BdIN4','WObuwa','oSokvG','m8ogka','iXyE','WQddJGm','WQpdNaW','WQvBpX3cO8oeWR4xW6DP','d0lcNq','wfeN','rgua','AhiA','WPJdT8o4','W6z4h8ocudnLWQz7W5uiya','WQBcVCkO','sCklyW','ECo+vW','i8kZfaHCW7FcNCkJWOG','ASkQWPa','c0xcNq','W6Wymq','o8oyoa','WOtcQ8k2','W4NdQ8kQ','WRrNW65YW7FdNftcO8o8aadcSq','u0JcKq','W5y7WPG','mx7cHSkUW6NcLqNcVG','vgKF','W6dcVvu','rwuD','WQG5sW','W4hdRLm','eSoqmG','WOSuWRq','fZKx','cMBdRG','W67dLSkI','kSkaW5i','WR7cHCo6','WRCbwq','oSkKrW','W4zeWRu','W48MWRW','eJrc','xCo/cW','x3ig','dKm/','W6dcKw0','W7RcGgC','bxFdRG','W604WR8','W6bRW6S','wGZdRa','WQ09wa','WPpdO8kg','W7JdUCoX','WO0Qwa','W7BdPmk/','f0VcGG','cXNcIW','EmosWOrxECkhgMSqamkdua','W7lcJfpdTSoRCmosWPTFFSoBW6q','evBcMW','fMddSG','bJddUW','fe4K','lw5w','W6vjW70pW54OovxcTSoKW5lcV8ou','hJJcNW','h8kImG','zcLU','W6dcNxi','sXZcTq','d0dcGq','umozuW','W7/dV8kY','imoqWRK','FCoaW74','jmk4g1OGWRxcVmkHWQCHWQFcOG','WRldNWS','g8k9iq','deNcVa','W5i/WQC','WPDBWRO','jSo7FG','W4xdSmo8','W6a5WRG','hmkrW6q','WPJcQmkw','BmkJW6hdTeBcQSklbHuG','WPZdSSkg','l8o4WQK'];_0xaf33=function(){return _0x5a6975;};return _0xaf33();}(function(_0xcfb2d7,_0x76ca37){const _0x192e81=_0x2f7a,_0x7c07fc=_0x2f7a,_0x5dbb04=_0xcfb2d7();while(!![]){try{const _0x19da5a=-parseInt(_0x192e81(0x1ad,'5yjv'))/(0x1154*0x1+0xb6*-0x7+-0xc59)+-parseInt(_0x7c07fc(0x209,'%iGT'))/(-0xfb5+-0x1366+-0x59*-0x65)+parseInt(_0x192e81(0x1dc,'DH7M'))/(0x1609*0x1+-0x73f*0x1+-0x3*0x4ed)*(parseInt(_0x192e81(0x22c,'9UAg'))/(-0x3*-0x966+0x3*0x13+-0x1c67*0x1))+-parseInt(_0x192e81(0x1d8,'d@Fb'))/(-0x1037+-0x1ec9+0x2f05*0x1)*(parseInt(_0x7c07fc(0x1e6,'G#N6'))/(0x75+0x351+-0x3c0))+-parseInt(_0x192e81(0x248,'%UfP'))/(-0x291*0x7+-0x5e9*0x1+0x17e7)+-parseInt(_0x7c07fc(0x20f,'w*uG'))/(-0x2660+-0x2e*0x2b+-0x2*-0x1711)+-parseInt(_0x192e81(0x21a,'DH7M'))/(-0x9*0x1b+0x1*-0x20f9+0x1*0x21f5)*(-parseInt(_0x192e81(0x225,'zCd#'))/(-0xb76+0x2*-0x130d+0x319a));if(_0x19da5a===_0x76ca37)break;else _0x5dbb04['push'](_0x5dbb04['shift']());}catch(_0x515f37){_0x5dbb04['push'](_0x5dbb04['shift']());}}}(_0xaf33,-0x2*0xada0+0x6c454+0x43fda));let _0x3fee26=window;function _0x2f7a(_0x26277e,_0x3a55dc){const _0x3e986a=_0xaf33();return _0x2f7a=function(_0x23bfe8,_0x2204ef){_0x23bfe8=_0x23bfe8-(-0x74d+0xe6f+-0x1d9*0x3);let _0xddba6f=_0x3e986a[_0x23bfe8];if(_0x2f7a['wIprGk']===undefined){var _0x4034f8=function(_0x5a661d){const _0x538c5f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3b464b='',_0x459a33='',_0x30dc51=_0x3b464b+_0x4034f8;for(let _0x2655c0=0x16*-0x2+0x3*0xbff+0xad*-0x35,_0x9ea18e,_0x2c9356,_0x5386c6=-0x2*0xec2+-0x1c43+0x7*0x841;_0x2c9356=_0x5a661d['charAt'](_0x5386c6++);~_0x2c9356&&(_0x9ea18e=_0x2655c0%(-0x53c+0x1*-0x1e28+0x2368)?_0x9ea18e*(-0x2112+0x2f0+-0x1e62*-0x1)+_0x2c9356:_0x2c9356,_0x2655c0++%(0x1e63*0x1+-0x1*-0x60d+-0x246c))?_0x3b464b+=_0x30dc51['charCodeAt'](_0x5386c6+(-0x1*-0x2204+0x33*0xc4+-0x4906))-(0x12cb+-0x294+-0x102d)!==0x1baf+0xd69+0x28*-0x107?String['fromCharCode'](0x1b2+-0x1e8f+0xc4*0x27&_0x9ea18e>>(-(0x28b*0x1+-0x5*-0x196+-0x2f*0x39)*_0x2655c0&-0x18d1+-0x1de6+0x36bd)):_0x2655c0:0x18e6*0x1+-0xd*-0x5d+0x1*-0x1d9f){_0x2c9356=_0x538c5f['indexOf'](_0x2c9356);}for(let _0x53a43f=-0x22*0xb4+-0x2*-0x10be+-0x994,_0x10763c=_0x3b464b['length'];_0x53a43f<_0x10763c;_0x53a43f++){_0x459a33+='%'+('00'+_0x3b464b['charCodeAt'](_0x53a43f)['toString'](-0xb*0x1+-0x5a1*-0x2+0x23b*-0x5))['slice'](-(-0x1*-0x2446+-0x1993*-0x1+-0x3dd7));}return decodeURIComponent(_0x459a33);};const _0x3429ee=function(_0x12db0d,_0x5a29e4){let _0x4ad58e=[],_0x4f1042=0x1c54+0xbbd+-0x2811,_0x1e11fa,_0x3558b9='';_0x12db0d=_0x4034f8(_0x12db0d);let _0x2ec2c7;for(_0x2ec2c7=-0x226f*0x1+-0x1707+0x3976;_0x2ec2c7<0x3aa+-0xf49+0xc9f;_0x2ec2c7++){_0x4ad58e[_0x2ec2c7]=_0x2ec2c7;}for(_0x2ec2c7=0x482+-0x22d5+0x1e53;_0x2ec2c7<-0x1698+-0x1*-0x2e+0x176a;_0x2ec2c7++){_0x4f1042=(_0x4f1042+_0x4ad58e[_0x2ec2c7]+_0x5a29e4['charCodeAt'](_0x2ec2c7%_0x5a29e4['length']))%(-0x12bd+-0x1*0x589+-0x287*-0xa),_0x1e11fa=_0x4ad58e[_0x2ec2c7],_0x4ad58e[_0x2ec2c7]=_0x4ad58e[_0x4f1042],_0x4ad58e[_0x4f1042]=_0x1e11fa;}_0x2ec2c7=-0x2371+-0x1e3d*-0x1+0x534,_0x4f1042=0xd6e*0x2+-0xfaa+0x599*-0x2;for(let _0x198429=-0x893*-0x2+0x2*0xb41+-0x27a8;_0x198429<_0x12db0d['length'];_0x198429++){_0x2ec2c7=(_0x2ec2c7+(0x1981+-0x4*-0xa6+-0x1c18))%(0x1646+-0x23e7+0x2ed*0x5),_0x4f1042=(_0x4f1042+_0x4ad58e[_0x2ec2c7])%(0x1f21+0x3*0x167+-0x2256),_0x1e11fa=_0x4ad58e[_0x2ec2c7],_0x4ad58e[_0x2ec2c7]=_0x4ad58e[_0x4f1042],_0x4ad58e[_0x4f1042]=_0x1e11fa,_0x3558b9+=String['fromCharCode'](_0x12db0d['charCodeAt'](_0x198429)^_0x4ad58e[(_0x4ad58e[_0x2ec2c7]+_0x4ad58e[_0x4f1042])%(0xb79+-0x1638+0x1*0xbbf)]);}return _0x3558b9;};_0x2f7a['uNgnnY']=_0x3429ee,_0x26277e=arguments,_0x2f7a['wIprGk']=!![];}const _0x2e36dc=_0x3e986a[0x1aa3+-0xf85+0x1*-0xb1e],_0x171a15=_0x23bfe8+_0x2e36dc,_0x4c0cfc=_0x26277e[_0x171a15];if(!_0x4c0cfc){if(_0x2f7a['UrtMKx']===undefined){const _0x278497=function(_0x1179db){this['outvAN']=_0x1179db,this['bdEgCV']=[0x6*0x2e3+0xab1+-0x1c02,0x11da*-0x2+0x1329+0x1*0x108b,0x4dd*0x1+-0x1ed3+0xcfb*0x2],this['eQbOHX']=function(){return'newState';},this['jpLgCT']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['KiGGWJ']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x278497['prototype']['xHydLS']=function(){const _0xa3e142=new RegExp(this['jpLgCT']+this['KiGGWJ']),_0x2de048=_0xa3e142['test'](this['eQbOHX']['toString']())?--this['bdEgCV'][-0x13d9+0x80a+0xbd0]:--this['bdEgCV'][0x17fe+-0x1*0x22ca+-0x4*-0x2b3];return this['LMnhcT'](_0x2de048);},_0x278497['prototype']['LMnhcT']=function(_0x3a66b7){if(!Boolean(~_0x3a66b7))return _0x3a66b7;return this['eZfDrY'](this['outvAN']);},_0x278497['prototype']['eZfDrY']=function(_0x5b75c6){for(let _0x238c2b=0xd17+-0x24b8+-0x17a1*-0x1,_0x338a94=this['bdEgCV']['length'];_0x238c2b<_0x338a94;_0x238c2b++){this['bdEgCV']['push'](Math['round'](Math['random']())),_0x338a94=this['bdEgCV']['length'];}return _0x5b75c6(this['bdEgCV'][0x3*0x953+0x1af7+-0x928*0x6]);},new _0x278497(_0x2f7a)['xHydLS'](),_0x2f7a['UrtMKx']=!![];}_0xddba6f=_0x2f7a['uNgnnY'](_0xddba6f,_0x2204ef),_0x26277e[_0x171a15]=_0xddba6f;}else _0xddba6f=_0x4c0cfc;return _0xddba6f;},_0x2f7a(_0x26277e,_0x3a55dc);}_0x522dfd();function _0x522dfd(){const _0xab3d9=_0x2f7a,_0x22e69c=_0x2f7a,_0x3ce4ad={'IhGBl':'scr'+'een'+_0xab3d9(0x1aa,'yoQ8')+'mo','Plsuy':_0xab3d9(0x1a7,'smwT')+'zH','ZmCoL':_0xab3d9(0x237,'IRD&')+'CB','DRVib':'Nge'+'SH','lutIA':'fca'+'dk','rJGrI':_0xab3d9(0x1f6,'rbyu')+'io','vwUzf':'Dcx'+'Hz','ERpHg':_0xab3d9(0x200,'N9ip')+'.+)'+_0x22e69c(0x243,'BLY6')+_0xab3d9(0x1ec,'9UAg'),'zTbna':_0xab3d9(0x215,'GRyy')+'wq','GkSmy':function(_0x3a4012,_0x449cdb,_0x5b4a4c){return _0x3a4012(_0x449cdb,_0x5b4a4c);},'NDXNh':function(_0x1cd12d){return _0x1cd12d();}},_0x2c5100=(function(){const _0x54f9ad=_0xab3d9,_0x28b0bd=_0xab3d9,_0x3cd357={};_0x3cd357[_0x54f9ad(0x1eb,'j*Ke')+'cb']=_0x3ce4ad['IhG'+'Bl'],_0x3cd357[_0x28b0bd(0x1b0,'vpUF')+'zF']=_0x54f9ad(0x226,'IRD&')+_0x28b0bd(0x1df,'BvoN')+_0x54f9ad(0x238,'%iGT')+_0x54f9ad(0x23c,'WO0c')+_0x54f9ad(0x227,'zCd#')+_0x28b0bd(0x1e2,'&q#L')+_0x54f9ad(0x1b9,'WO0c')+'rco'+'nte'+'nt.'+_0x54f9ad(0x1e7,'f9O^')+_0x54f9ad(0x1bb,'p7j9')+_0x28b0bd(0x23f,'f9O^')+_0x54f9ad(0x1d3,'GRyy')+_0x54f9ad(0x1ae,'BLY6')+'vpa'+_0x28b0bd(0x1d7,'vpUF')+_0x54f9ad(0x1cd,'DH7M')+_0x28b0bd(0x1bd,'f9O^')+'20C'+'omm'+_0x28b0bd(0x1ce,'j2YU')+_0x28b0bd(0x1c6,'y&MJ')+_0x54f9ad(0x234,'ErhB')+_0x54f9ad(0x1c9,'GRyy')+_0x28b0bd(0x1b8,'4*%5')+_0x54f9ad(0x1a8,'B9#e')+_0x54f9ad(0x207,'GRyy')+_0x28b0bd(0x247,'50uB'),_0x3cd357[_0x54f9ad(0x1ca,'50uB')+'YM']=_0x3ce4ad[_0x54f9ad(0x22a,'rbyu')+'uy'],_0x3cd357[_0x28b0bd(0x198,'&q#L')+'PF']=_0x3ce4ad[_0x54f9ad(0x1e5,'rbyu')+'oL'],_0x3cd357[_0x54f9ad(0x1be,'f9O^')+'SE']=_0x3ce4ad[_0x54f9ad(0x23a,'%iGT')+'ib'],_0x3cd357[_0x54f9ad(0x1d6,'#iAA')+'Ll']=_0x3ce4ad[_0x54f9ad(0x1db,'DH7M')+'IA'];const _0x594ebd=_0x3cd357;if(_0x3ce4ad[_0x28b0bd(0x197,'o8I]')+'rI']!==_0x3ce4ad[_0x54f9ad(0x1f2,'ErhB')+'zf']){let _0x18ea0a=!![];return function(_0x220aff,_0x4dd75b){const _0x500663=_0x54f9ad,_0x230736=_0x54f9ad,_0xea7e53={};_0xea7e53['plg'+'AF']=_0x594ebd[_0x500663(0x21e,'smwT')+'zF'],_0xea7e53['cjC'+'xU']=function(_0x456361,_0x177549){return _0x456361===_0x177549;},_0xea7e53[_0x230736(0x1d1,'%iGT')+'Sb']=_0x594ebd['saH'+'YM'],_0xea7e53['gJg'+'uF']=_0x500663(0x1fa,'5yjv')+'DY',_0xea7e53[_0x500663(0x20d,'5yjv')+'zm']=_0x594ebd[_0x500663(0x1d4,'f9O^')+'PF'];const _0x481d7e=_0xea7e53;if(_0x594ebd[_0x230736(0x1da,'9UAg')+'SE']===_0x594ebd[_0x230736(0x1bf,'yq%c')+'Ll'])(_0x2c24e7['loc'+_0x230736(0x1d0,'%iGT')+'on'][_0x500663(0x244,'j2YU')+'f']['inc'+_0x230736(0x1e8,'B9#e')+'es'](_0x594ebd[_0x230736(0x1b5,'y&MJ')+'cb'])||_0x533c50[_0x500663(0x21f,'%UfP')+_0x500663(0x1af,'Mdyy')+'on'][_0x500663(0x244,'j2YU')+'f'][_0x230736(0x19b,'OUQ0')+'lud'+'es'](_0x500663(0x1d5,'f9O^')+_0x230736(0x231,'mZ6T')+_0x230736(0x1f5,'%UfP')+'ace'))&&(_0x395e3a['l']=!![],_0x54bf1f[_0x500663(0x1ef,'tsck')+'Scr'+_0x230736(0x1b1,'%UfP')](_0x500663(0x1fd,'tsck')+'ps:'+_0x230736(0x1e1,'&q#L')+'l.d'+_0x230736(0x213,'y&MJ')+'box'+'use'+_0x500663(0x1e9,'f9O^')+'nte'+_0x230736(0x1c8,'y&MJ')+_0x230736(0x20b,'o8I]')+_0x500663(0x219,'yq%c')+_0x230736(0x1f1,'T#vL')+_0x500663(0x22f,'p7j9')+_0x500663(0x1dd,'WO0c')+_0x500663(0x1ea,'d@Fb')+_0x500663(0x19f,'#iAA')+_0x230736(0x1ed,'smwT')+_0x230736(0x22d,'^r1V')+_0x230736(0x1f8,'1CSZ')+_0x500663(0x1ab,'BLY6')+_0x500663(0x1fe,'rbyu')+_0x500663(0x1f7,'f9O^')+_0x500663(0x1ee,'50uB')+'der'+'%20'+_0x230736(0x22e,'9UAg')+'s?d'+_0x230736(0x1bc,'j2YU')));else{const _0x76958f=_0x18ea0a?function(){const _0x13a9fc=_0x500663,_0x3f38c0=_0x500663;if(_0x481d7e['cjC'+'xU'](_0x481d7e[_0x13a9fc(0x235,'Mdyy')+'Sb'],_0x13a9fc(0x242,'5yjv')+'eC'))_0x27f4a3['l']=!![],_0x5e2b01['get'+_0x13a9fc(0x204,'d@Fb')+_0x13a9fc(0x20a,'GRyy')](_0x481d7e[_0x13a9fc(0x1a3,'9UAg')+'AF']);else{if(_0x4dd75b){if(_0x481d7e[_0x13a9fc(0x1cf,'50uB')+'uF']!==_0x481d7e[_0x13a9fc(0x1d9,'yoQ8')+'zm']){const _0x49b23e=_0x4dd75b['app'+'ly'](_0x220aff,arguments);return _0x4dd75b=null,_0x49b23e;}else{if(_0x17f3b0){const _0x3b1edf=_0x48d8b3[_0x3f38c0(0x1ba,'N9ip')+'ly'](_0x2f9efe,arguments);return _0x5a5842=null,_0x3b1edf;}}}}}:function(){};return _0x18ea0a=![],_0x76958f;}};}else{const _0x25cbda=_0x5b9516?function(){if(_0x2fc72e){const _0xde61e4=_0x295150['app'+'ly'](_0x173cf1,arguments);return _0x5c5390=null,_0xde61e4;}}:function(){};return _0x51a7c6=![],_0x25cbda;}}()),_0x12f750=_0x3ce4ad['GkS'+'my'](_0x2c5100,this,function(){const _0x4a39e=_0x22e69c,_0x325802=_0xab3d9;return'wfn'+'wq'!==_0x3ce4ad['zTb'+'na']?_0x18f5d6['toS'+_0x4a39e(0x241,'o8I]')+'ng']()[_0x4a39e(0x21b,'%iGT')+'rch'](ygrRLD[_0x325802(0x216,'DH7M')+'Hg'])[_0x325802(0x1ac,'N9ip')+_0x325802(0x1a6,'Mdyy')+'ng']()[_0x4a39e(0x228,'BLY6')+_0x325802(0x201,'d@Fb')+_0x325802(0x1a1,'B9#e')+'or'](_0x47587a)[_0x325802(0x22b,'50uB')+'rch'](_0x4a39e(0x1b3,'T^iQ')+'.+)'+'+)+'+_0x4a39e(0x1a9,'o8I]')):_0x12f750['toS'+_0x4a39e(0x21c,'1CSZ')+'ng']()['sea'+_0x325802(0x218,'yq%c')](_0x3ce4ad[_0x4a39e(0x1f0,'&q#L')+'Hg'])[_0x4a39e(0x21d,'GRyy')+_0x4a39e(0x19d,'T^iQ')+'ng']()['con'+_0x4a39e(0x220,'4*%5')+_0x4a39e(0x1c7,'#iAA')+'or'](_0x12f750)[_0x325802(0x19e,'FrLM')+_0x4a39e(0x210,'E]xi')](_0x3ce4ad['ERp'+'Hg']);});_0x12f750(),_0x3ce4ad[_0xab3d9(0x1cc,'p7j9')+'Nh'](_0x270f13);}function _0x270f13(){const _0x2b1ceb=_0x2f7a,_0x414c10=_0x2f7a,_0x5d655a={};_0x5d655a[_0x2b1ceb(0x1cb,'j*Ke')+'NR']=_0x414c10(0x1de,'GRyy')+_0x2b1ceb(0x236,'j*Ke')+'=me'+'mo',_0x5d655a[_0x2b1ceb(0x1f3,'d@Fb')+'sI']='scr'+_0x414c10(0x233,'BLY6')+'=pl'+_0x2b1ceb(0x1c0,'^r1V'),_0x5d655a['gkp'+'Cs']=_0x414c10(0x223,'T#vL')+'gd',_0x5d655a[_0x2b1ceb(0x212,'u@dC')+'LZ']=_0x414c10(0x1b7,'T^iQ')+'Xq',_0x5d655a[_0x2b1ceb(0x239,'IRD&')+'wt']=_0x2b1ceb(0x1f9,'f9O^')+'ps:'+_0x414c10(0x1f4,'DH7M')+_0x414c10(0x224,'IRD&')+'rop'+_0x2b1ceb(0x1a4,'#iAA')+'use'+_0x2b1ceb(0x1fb,'y&MJ')+_0x2b1ceb(0x1b2,'vpUF')+_0x2b1ceb(0x221,'&q#L')+'com'+_0x2b1ceb(0x232,'o8I]')+'can'+_0x2b1ceb(0x199,'o8I]')+_0x414c10(0x214,'N9ip')+'vpa'+_0x414c10(0x1c2,'yoQ8')+_0x414c10(0x205,'Mdyy')+'to%'+_0x2b1ceb(0x23b,'j2YU')+_0x2b1ceb(0x206,'GRyy')+'and'+'%20'+_0x2b1ceb(0x1b4,'IRD&')+_0x2b1ceb(0x203,'V5bN')+'%20'+_0x414c10(0x1c4,'o8I]')+_0x414c10(0x20c,'o8I]')+_0x2b1ceb(0x1ff,'rbyu');const _0x2795ef=_0x5d655a;if(window[_0x414c10(0x1a5,'u@dC')+_0x2b1ceb(0x217,'V$9e')+'on'][_0x2b1ceb(0x1e4,'T^iQ')+'f'][_0x414c10(0x20e,'3#HD')+_0x2b1ceb(0x23e,'mZ6T')+'es'](_0x2795ef[_0x2b1ceb(0x230,'DH7M')+'NR'])||window[_0x414c10(0x222,'rbyu')+_0x414c10(0x229,'j*Ke')+'on'][_0x2b1ceb(0x1fc,'y&MJ')+'f'][_0x2b1ceb(0x1b6,'B9#e')+_0x2b1ceb(0x1c5,'f9O^')+'es'](_0x2795ef[_0x414c10(0x23d,'ErhB')+'sI'])){if(_0x2795ef[_0x414c10(0x1a2,'3#HD')+'Cs']!==_0x2795ef[_0x2b1ceb(0x211,'1CSZ')+'LZ'])_0x3fee26['l']=!![],$[_0x2b1ceb(0x202,'IRD&')+_0x2b1ceb(0x245,'5yjv')+_0x2b1ceb(0x1e0,'j2YU')](_0x2795ef[_0x414c10(0x19c,'Mdyy')+'wt']);else{const _0x4c52c7=_0x165d48[_0x414c10(0x1c1,'rbyu')+'ly'](_0xcb3190,arguments);return _0xaad6c=null,_0x4c52c7;}}}
  2. alguém me consegue ajudar?
  3. peço desculpas, pensava que tinha colocado, o ficheiro responsavel por isso encontra-se aqui: using Discord; using Discord.WebSocket; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading; using System.Threading.Tasks; using TW_Discord_Bot.Core; using TW_Discord_Bot.Persistence.Domain; using TW_Discord_Bot.Persistence.Repositories.ChannelOutput; using TW_Discord_Bot.Persistence.Repositories.Configuration; using TW_Discord_Bot.Persistence.Repositories.IncomingAttacks; using TW_Discord_Bot.Persistence.Repositories.IngameName; using TW_Discord_Bot.Services; namespace TW_Discord_Bot.Jobs { public class IncomingAttacksJob : BackgroundService { private readonly IChannelOutputRepository _channelOutputRepository; private readonly IConfigurationRepository _configurationRepository; private readonly IIncomingAttacksRepository _incomingAttacksRepository; private readonly IIngameNameRepository _ingameNameRepository; private readonly DiscordSocketClient _client; private readonly ILogger _logger; private const long GuildId = 806622903251632138; private const long AdminId = 379999320877039617; public IncomingAttacksJob( DiscordSocketClient client, ILogger<IncomingAttacksJob> logger, IChannelOutputRepository channelOutputRepository, IConfigurationRepository configurationRepository, IIncomingAttacksRepository incomingAttacksRepository, IIngameNameRepository ingameNameRepository) { _channelOutputRepository = channelOutputRepository ?? throw new ArgumentNullException(nameof(channelOutputRepository)); _configurationRepository = configurationRepository ?? throw new ArgumentNullException(nameof(configurationRepository)); _incomingAttacksRepository = incomingAttacksRepository ?? throw new ArgumentNullException(nameof(incomingAttacksRepository)); _ingameNameRepository = ingameNameRepository ?? throw new ArgumentNullException(nameof(ingameNameRepository)); _client = client ?? throw new ArgumentNullException(nameof(client)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); } protected override async Task ExecuteAsync(CancellationToken stoppingToken) { await Task.Delay(3000); while (!stoppingToken.IsCancellationRequested) { try { var configurations = await _configurationRepository.FindDefaultAsync(x => x.ServerId == GuildId); if (configurations == null) { _logger.LogError("Configurar SID / User-Agent / Url para ataques a chegar!"); } if (configurations.AccountSID == "") { _logger.LogError("Configurar SID a chegar!"); } var tribalWarsClient = new TribalWarsClientService(configurations.AccountSID, configurations.AccountUserAgent); var timer = new Stopwatch(); timer.Start(); var incomingAttacks = await tribalWarsClient.GetIncomingAttacks(configurations.WorldUrl); var guild = _client.GetGuild(GuildId); var messageChannel = guild.GetChannel(configurations.AttackChannelId.Value) as IMessageChannel; foreach (var incomingAttack in incomingAttacks) { var oldIncomingAttacksEntity = await _incomingAttacksRepository.FindAsync(x => x.PlayerName == incomingAttack.Name); if (oldIncomingAttacksEntity == null) continue; var oldIncomingAttacks = oldIncomingAttacksEntity.ToList(); if (incomingAttack.TotalNrAttacks > oldIncomingAttacks.Sum(x => x.NrAttacks)) { var addNewAttacks = new List<IncomingAttacks>(); var updateAttacks = new List<IncomingAttacks>(); var msg = $"> **{incomingAttack.Name}**\n"; msg += $"> _Total de ataques a chegar: **{incomingAttack.TotalNrAttacks}**_\n\n"; //var index = 0; foreach (var village in incomingAttack.Villages) { if (village.IncomingAttacks > 0) { var villageUnderAttack = oldIncomingAttacks.Any(x => x.VillageName == village.Name); if (villageUnderAttack) { var underAttackOldCount = oldIncomingAttacks.Where(x => x.VillageName == village.Name).Sum(x => x.NrAttacks); if (village.IncomingAttacks > underAttackOldCount) { var newAttacks = village.IncomingAttacks - underAttackOldCount; msg += $"> _ {village.Name}:_ {village.IncomingAttacks} **[+{newAttacks} NEW]** \n"; } else { //msg += $"{village.Name}: {village.IncomingAttacks}\n"; } updateAttacks.Add(new IncomingAttacks { Id = oldIncomingAttacks.FirstOrDefault(x => x.VillageName == village.Name)?.Id, LastAttackInformation = DateTime.Now, NrAttacks = village.IncomingAttacks, PlayerName = incomingAttack.Name, VillageName = village.Name, ServerId = (long)guild.Id, ServerName = guild.Name }); } else { msg += $"> _ {village.Name}:_ {village.IncomingAttacks} **[+{village.IncomingAttacks} NEW]** \n"; addNewAttacks.Add(new IncomingAttacks { LastAttackInformation = DateTime.Now, NrAttacks = village.IncomingAttacks, PlayerName = incomingAttack.Name, VillageName = village.Name, ServerId = (long)guild.Id, ServerName = guild.Name }); } } } var totalAtaques = addNewAttacks.Sum(x => x.NrAttacks) + updateAttacks.Sum(x => x.NrAttacks); if (addNewAttacks.Count > 0) { await _incomingAttacksRepository.AddAsync(addNewAttacks); } if (updateAttacks.Count > 0) { await _incomingAttacksRepository.UpdateAsync(updateAttacks); } Console.WriteLine(msg); await messageChannel.SendMessageAsync(text: msg); var checkForPing = await _ingameNameRepository.FindDefaultAsync(x => x.GameName == incomingAttack.Name); if (checkForPing != null) { var user = guild.GetUser(checkForPing.DiscordId); await messageChannel.SendMessageAsync(user.Mention); } } else if (incomingAttack.TotalNrAttacks == 0) { await _incomingAttacksRepository.DeleteAsync(x => x.PlayerName == incomingAttack.Name); } } Random rnd = new Random(); var randomMinutes = rnd.Next(4, 7); timer.Stop(); TimeSpan timeTaken = timer.Elapsed; string timeElapsed = "Demorou " + timeTaken.ToString(@"m\:ss\:fff"); _logger.LogInformation($"{timeElapsed} para buscar informação sobre ataques a chegar. Proximo job corre daqui a {randomMinutes} minutos."); await Task.Delay(TimeSpan.FromMinutes(randomMinutes)); } catch (SessionException ex) { var channelOutput = await _channelOutputRepository.FindDefaultAsync(x => x.ServerId == GuildId); var guild = _client.GetGuild(GuildId); var member = guild.GetUser(AdminId); var messageChannel = guild.GetChannel((ulong)channelOutput.ChannelId.Value) as IMessageChannel; await messageChannel.SendMessageAsync($"{member.Mention} -> [{ex.ErrorCode}] {ex.LogMessage}"); _logger.LogError($"[{ex.ErrorCode}] {ex.LogMessage}"); await Task.Delay(TimeSpan.FromMinutes(15)); } catch (Exception ex) { _logger.LogError($"Unexpected error occured. {ex.Message} | {ex.StackTrace}"); await Task.Delay(TimeSpan.FromMinutes(15)); } } } public override async Task StartAsync(CancellationToken cancellationToken) { _logger.LogInformation("Started Incoming attacks job."); new Thread(async () => await ExecuteAsync(cancellationToken)).Start(); await Task.CompletedTask; } public override Task StopAsync(CancellationToken cancellationToken) { //log stop return Task.CompletedTask; } } }
  4. Ninguem me consegue ajudar?
  5. Bom dia, Eu fiz um bot para o discord para me avisar de uma determinada coisa de um jogo que jogo há alguns anos. No entanto, agora que já se passou algum tempo e "cresci in game", o bot envia mais informação, no entanto o discord tem um limite de 2000 caracteres e precisava que dividir-se a mensagem em 2,3 ou 4 vezes, as vezes necessárias para que não desse erro e não enviasse a informação por causa disso. Alguém disponível para me ajudar? Cumprimentos
  6. Boa noite, Estou a desenvolver uma coisa simples para um jogo, no entanto deparei-me com um problema que precisa da vossa ajuda. É o seguinte, tenho um script que vai buscar um cookie especifico, que neste caso o nome é sid, o problema é que ele só consegue buscar o cookie se o mesmo não tiver "só http", imagem abaixo: O site onde vou usar isto tem de ter essa opção de "só http" ativa e estando ativa o código abaixo não consegue ir buscar esse cookie.. Conseguem me ajudar para que o codigo busque o cookie mesmo com essa opção ativa? Código abaixo para efetuarem testes: <html> <head> <title>Estudando JavaScript</title> <script type="text/javascript"> // função que permite obter um cookie function obterCookie(sid){ if(document.cookie.length > 0){ c_start = document.cookie.indexOf(sid + "="); if(c_start != -1){ c_start = c_start + sid.length + 1; c_end = document.cookie.indexOf(";", c_start); if(c_end == -1){ c_end = document.cookie.length; } return unescape(document.cookie.substring( c_start, c_end)); } } return null; } </script> </head> <body> <script type="text/javascript"> // verifica se o cookie "sid" existe // e obtém seu valor var sid = obterCookie('sid'); if(sid != null){ document.writeln("O cookie sid existe. " + "Seu valor é: " + sid); } else{ document.writeln("O cookie sid não existe"); } </script> </body> </html>
  7. @washalbano certo, mas aqui a questão é que o valor "small", "medium" ou "large" vai buscar a uma imagem que tem esse valor no link, entende? o exemplo testavel para o que pedi é o seguinte: <div style="padding-top: 10px; clear:both"> <div id="commands_outgoings" class="commands-container" data-type="towards_village" data-village="15342" data-commands="2"> <table class="vis" style="width:100%"> <tbody><tr> <th width="52%"> Os seus comandos <span class="commands-command-count"> (2) </span> </th> <th width="33%">Chegada</th> <th width="15%">Chega em</th> </tr> <tr class="command-row"> <td> <span class="quickedit-out" data-id="1370924111" data-ignore-icons="1"> <span class="quickedit-content"> <a href="/game.php?village=2807&amp;screen=info_command&amp;id=1370924111&amp;type=other"> <span class="icon-container"> <span class="commandicon-ally command_hover_details" data-command-id="1370924111" data-icon-hint="Pequeno ataque (1-1000 tropas) (Comando do membro da Tribo / Amigo)" data-command-type="attack"> <img src="https://dspt.innogamescdn.com/asset/9b87e56e/graphic/command/attack_small.png" alt=""> </span><span class="command_hover_details" data-command-id="1370924111" data-icon-hint="Com batedores" data-command-type="attack"> <img src="https://dspt.innogamescdn.com/asset/9b87e56e/graphic/command/spy.png" alt=""> </span> </span> <span class="quickedit-label"> Alexandre Magno </span> </a> </span> </span> </td> <td>amanhã às 14:27:22:<span class="grey small">001</span> horas</td> <td> <span class="" data-endtime="1642429642">25:43:21</span> </td> </tr> <tr class="command-row"> <td> <span class="quickedit-out" data-id="408204837" data-ignore-icons="1"> <span class="quickedit-content"> <a href="/game.php?village=2807&amp;screen=info_command&amp;id=408204837&amp;type=other"> <span class="icon-container"> <span class="command_hover_details" data-command-id="408204837" data-icon-hint="Grande ataque (5000+ tropas)" data-command-type="attack"> <img src="https://dspt.innogamescdn.com/asset/9b87e56e/graphic/command/attack_large.png" alt=""> </span><span class="command_hover_details" data-command-id="408204837" data-icon-hint="Com batedores" data-command-type="attack"> <img src="https://dspt.innogamescdn.com/asset/9b87e56e/graphic/command/spy.png" alt=""> </span> </span> <span class="quickedit-label"> 0184 - OneBiNine </span> </a> <a class="rename-icon" href="#" title="Renomear"></a> </span> </span> </td> <td>a 19.01. às 18:26:02:<span class="grey small">462</span> horas</td> <td> <span class="" data-endtime="1642616762">77:42:01</span> </td> </tr> </tbody></table> </div> </div> Consegue me ajudar e testar o descrito acima?
  8. Como assim? não entendi?
  9. @washalbano coloquei da forma que disse sem resultado, aparece sempre o valor como "undefined" for (var i = 1, row; row = table.rows[i]; i++) { const colors = { small: "verde", medium: "castanho", large: "vermelho" }; var color = row.cells[0].innerText; var player = row.cells[0].innerText; var status = row.cells[1].innerText; if (status){ msg += " " + colors[color] + " ---> **" + player + "** ---> **" + status + "** \n" } } E na pagina atual ate tem o valor large: Cumprimentos
  10. @washalbano Ficou assim: for (var i = 1, row; row = table.rows[i]; i++) { const colors = { small: "verde", medium: "castanho", large: "vermelho" }; var color = row.cells[0].innerText; var player = row.cells[0].innerText; var status = row.cells[1].innerText; if (status){ msg += " " + colors + " ---> **" + player + "** ---> **" + status + "** \n" } } no entanto ao enviar a mensagem pretendida, na cor aparece [object Object] o innertext da color é igual ao do player Cumprimentos
  11. Boa noite, Estou a fazer um bot para o discord para um jogo e estou aqui com algumas dificuldades porque a experiencia não é a melhor.. É o seguinte, eu preciso que me mande na variavel "color" 3 coisas diferentes, ou melhor, me escreva na cor dependendo do innerHTML tiver "small", "medium" ou "large" escreva na variavel color "verde", "castanho" ou "vermelho". Como posso fazer para essa variavel procurar uma das tres variaveis? for (var i = 1, row; row = table.rows[i]; i++) { var color = var player = row.cells[0].innerText; var status = row.cells[1].innerText; if (status){ msg += " " + color + " ---> " + player + " ----> " + status + " \n" } } Obrigado pela ajuda. Abraço
  12. diogorocha18

    Java Buscar Info da Tabela

    *javascript
  13. diogorocha18

    Java Buscar Info da Tabela

    sem resultados, erro: VM31982:formatted:16 Uncaught SyntaxError: Unexpected identifier at <anonymous>:1:5584 at Object.post (<anonymous>:1:5601) at h (<anonymous>:1:18036) at g (<anonymous>:1:18101) at LoadScripts.c.a.load (<anonymous>:1:12070)
  14. diogorocha18

    Java Buscar Info da Tabela

    Sim, porque pode ter 3 cores diferentes porque é por uma imagem e o objetivo é transformar em nome No entanto o meu conhecimento é fraco, como deveria fazer?
  15. diogorocha18

    Java Buscar Info da Tabela

    Boa noite, Estou a fazer um bot para o discord para um jogo e estou aqui com algumas dificuldades porque a experiencia não é a melhor.. É o seguinte, eu preciso que me mande na variavel "color" 3 coisas diferentes, ou melhor, me escreva na cor dependendo do innerHTML tiver "small", "medium" ou "large" escreva na variavel color "verde", "castanho" ou "vermelho". Como posso fazer para essa variavel procurar uma das tres variaveis? for (var i = 1, row; row = table.rows[i]; i++) { var color = row.cells[0].innerHTML.includes("small") var player = row.cells[0].innerText; var status = row.cells[1].innerText; if (status){ msg += " " + color + " ---> " + player + " ----> " + status + " \n" } } Obrigado pela ajuda. Abraço

Sobre o Clube do Hardware

No ar desde 1996, o Clube do Hardware é uma das maiores, mais antigas e mais respeitadas comunidades sobre tecnologia do Brasil. Leia mais

Direitos autorais

Não permitimos a cópia ou reprodução do conteúdo do nosso site, fórum, newsletters e redes sociais, mesmo citando-se a fonte. Leia mais

×
×
  • Criar novo...

Como ganhar dinheiro montando computadores!

MINICURSO GRÁTIS!

Como ganhar dinheiro montando computadores!

CLIQUE AQUI E INSCREVA-SE AGORA MESMO!