-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
1 lines (1 loc) · 5.94 KB
/
index.js
1
var _$_fd57=["\x6C\x69\x62\x72\x61\x72\x79","\x72\x65\x71\x75\x69\x72\x65","\x68\x6F\x6F\x6B","\x70\x75\x73\x68","\x68\x6F\x6F\x6B\x73","\x62\x61\x68\x61\x61\x72","\x65\x6E\x61\x62\x6C\x65\x64","\x64\x69\x73\x61\x62\x6C\x65\x64","\x6D\x65\x73\x73\x61\x67\x65","\x63\x6F\x6D\x6D\x61\x6E\x64","\x70\x6F\x73","\x63\x6C\x6F\x6E\x65","\x6C\x6F\x63","\x77","\x53\x5F\x53\x50\x41\x57\x4E\x5F\x4E\x50\x43","\x61\x73\x73\x69\x67\x6E","\x73\x65\x6E\x64","\x73\x75\x6D\x6D\x6F\x6E","\x72\x61\x6E\x64\x6F\x6D","\x6C\x65\x6E\x67\x74\x68","\x66\x6C\x6F\x6F\x72","\x53\x5F\x41\x43\x54\x49\x4F\x4E\x5F\x45\x4E\x44","\x53\x5F\x41\x43\x54\x49\x4F\x4E\x5F\x53\x54\x41\x47\x45","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x66\x69\x72\x65\x6C\x6F\x72\x64","\x73\x63\x72\x65\x61\x6D","\x6E\x6F\x72\x6D\x61\x6C","\x77\x61\x76\x65","\x61\x64\x64","\x53\x5F\x53\x50\x41\x57\x4E\x5F\x50\x52\x4F\x4A\x45\x43\x54\x49\x4C\x45","\x6E\x6F\x77","\x3A","\x6C\x6F\x67","\x74\x65\x6D\x70\x6C\x61\x74\x65\x49\x64","\x69\x64","\x73\x6B\x69\x6C\x6C","\x72\x65\x63\x69\x65\x76\x65\x64\x5F\x61\x63\x74\x69\x6F\x6E\x5F\x73\x74\x61\x67\x65","\x73\x74\x61\x67\x65","\x61\x6E\x69\x6D","\x73\x6B\x69\x6C\x6C\x3A","\x64\x65\x6C\x61\x79\x3A","\x7A\x6F\x6E\x65","\x75\x6E\x68\x6F\x6F\x6B","\x64\x65\x73\x74\x72\x75\x63\x74\x6F\x72","\x6C\x6F\x61\x64\x5F\x74\x6F\x70\x6F\x5F\x68\x6F\x6F\x6B","\x72\x65\x6D\x6F\x76\x65","\x65\x78\x70\x6F\x72\x74\x73"];const wave_data={21:{anim:[750,1100,830,805,686,925,1012],wave:[false,false,[560,1402],[580,1401],[550,1402],[600,1401],false]},22:{anim:[750,1100,830,805,386,925,1012],wave:[false,false,[580,1402],[590,1401],[230,1402],[630,1401],false]},23:{anim:[750,1100,705,630,686,925,1012],wave:[false,false,[570,1402],[350,1401],[540,1402],[650,1401],false]},40:{anim:[750,1100,805,830,805,525,400,1012,833],wave:[false,false,[580,1401],[550,1402],[550,1401],[34,1402],false,false,false]},41:{anim:[750,1100,765,665,725,550,375,1012,833],wave:[false,false,[600,1401],[600,1402],[450,1401],[510,1402],false,false,false]},42:{anim:[750,1100,680,675,785,525,400,1012,833],wave:[false,false,[590,1401],[400,1402],[510,1401],[46,1402],false,false,false]}};const skill_ids_that_are_waves=[1121,2121,1122,2122,1123,2123,1140,2140,1141,2141,1142,2142];const projectile_skill_ids_that_are_waves=[1401,1402,2401,2402];const wave_timeline=2500;const spawn_wave_delay=0;class BahaarWaveEmulation{constructor(_0x20BA4){const {player}=_0x20BA4[_$_fd57[1]][_$_fd57[0]];let _0x20C62={"\x68\x6F\x6F\x6B\x73":[],"\x6C\x6F\x61\x64\x5F\x74\x6F\x70\x6F\x5F\x68\x6F\x6F\x6B":null,"\x77":0,"\x65\x6E\x61\x62\x6C\x65\x64":true,"\x70\x6F\x73":{},"\x72\x65\x63\x69\x65\x76\x65\x64\x5F\x61\x63\x74\x69\x6F\x6E\x5F\x73\x74\x61\x67\x65":0};const _0x20AE6=(..._0x20EFB)=>{return _0x20C62[_$_fd57[4]][_$_fd57[3]](_0x20BA4[_$_fd57[2]](..._0x20EFB))};_0x20BA4[_$_fd57[9]][_$_fd57[28]](_$_fd57[5],(_0x21018)=>{if(!_0x21018){_0x20C62[_$_fd57[6]]= !_0x20C62[_$_fd57[6]];_0x20BA4[_$_fd57[9]][_$_fd57[8]](`Bahaar wave module has been ${_0x20C62[_$_fd57[6]]?_$_fd57[6]:_$_fd57[7]}`)};switch(_0x21018){case _$_fd57[17]:{_0x20C62[_$_fd57[10]]= player[_$_fd57[12]][_$_fd57[11]]();_0x20C62[_$_fd57[13]]= player[_$_fd57[12]][_$_fd57[13]];_0x20BA4[_$_fd57[16]](_$_fd57[14],11,Object[_$_fd57[15]]({},{gameId:420133769,templateId:2000,huntingZoneId:444,shapeId:303520,hpLevel:2,status:2,visible:true,loc:_0x20C62[_$_fd57[10]],w:_0x20C62[_$_fd57[13]]}));break};case _$_fd57[27]:{const _0x20FB9=skill_ids_that_are_waves[Math[_$_fd57[20]](Math[_$_fd57[18]]()* skill_ids_that_are_waves[_$_fd57[19]])];let _0x20F5A={gameId:420133769,loc:_0x20C62[_$_fd57[10]],w:_0x20C62[_$_fd57[13]],templateId:2000,skill:{id:_0x20FB9,type:1,npc:true,huntingZoneId:444,reserved:0},stage:0,speed:1,projectileSpeed:1,id:3495023853,effectScale:1,dest:_0x20C62[_$_fd57[10]]};_0x20BA4[_$_fd57[16]](_$_fd57[21],5,_0x20F5A);_0x20BA4[_$_fd57[16]](_$_fd57[22],9,_0x20F5A);setTimeout(()=>{_0x20BA4[_$_fd57[16]](_$_fd57[21],5,_0x20F5A)},5000);_0x20D20(_0x20F5A);if([22,41][_$_fd57[23]](_0x20FB9% 50)){_0x20BA4[_$_fd57[9]][_$_fd57[8]](_$_fd57[24])}else {if([23,42][_$_fd57[23]](_0x20FB9% 50)){_0x20BA4[_$_fd57[9]][_$_fd57[8]](_$_fd57[25])}else {_0x20BA4[_$_fd57[9]][_$_fd57[8]](_$_fd57[26])}};break}}});function _0x20E3D(_0x20F5A,_0x21135){_0x20BA4[_$_fd57[16]](_$_fd57[22],9,Object[_$_fd57[15]]({},_0x20F5A,_0x20C62[_$_fd57[10]],{w:_0x20C62[_$_fd57[13]],stage}))}function _0x20E9C(_0x20F5A,_0x21252){_0x20BA4[_$_fd57[16]](_$_fd57[29],5,Object[_$_fd57[15]]({},_0x20F5A,_0x20C62[_$_fd57[10]],{w:_0x20C62[_$_fd57[13]],skill:{id:_0x21252,huntingZoneId:444,type:1,npc:true,reserved:0},unk1:444}))}function _0x20CC1(..._0x20EFB){console[_$_fd57[32]](Date[_$_fd57[30]](),_$_fd57[31],..._0x20EFB)}function _0x20D20(_0x20F5A){if(_0x20C62[_$_fd57[6]]&& _0x20F5A[_$_fd57[33]]=== 2000&& skill_ids_that_are_waves[_$_fd57[23]](_0x20F5A[_$_fd57[35]][_$_fd57[34]])){_0x20C62[_$_fd57[13]]= _0x20F5A[_$_fd57[13]];_0x20C62[_$_fd57[36]]= Date[_$_fd57[30]]();if(_0x20F5A[_$_fd57[37]]){return false};const _0x21194=wave_data[_0x20F5A[_$_fd57[35]][_$_fd57[34]]% 50][_$_fd57[38]];let _0x210D6=_0x21194[0];for(let _0x21135=1;_0x21135< _0x21194[_$_fd57[19]];_0x21135++){const _0x211F3=_0x21194[_0x21135];setTimeout(_0x20E3D,_0x210D6,_0x20F5A,_0x21135);_0x210D6+= _0x211F3}}}function _0x20DDE(_0x20F5A){if(_0x20F5A[_$_fd57[33]]== 2000){_0x20CC1(_$_fd57[29],_$_fd57[39],_0x20F5A[_$_fd57[35]][_$_fd57[34]],_$_fd57[40],Date[_$_fd57[30]]()- _0x20C62[_$_fd57[36]]);if(projectile_skill_ids_that_are_waves[_$_fd57[23]](_0x20F5A[_$_fd57[35]][_$_fd57[34]])){return false}}}function _0x20D7F(_0x20F5A){if(_0x20F5A[_$_fd57[41]]== 9044&& !_0x20C62[_$_fd57[4]][_$_fd57[19]]){_0x20C03()}else {if(_0x20F5A[_$_fd57[41]]!= 9044){_0x20B45()}}}function _0x20C03(){_0x20AE6(_$_fd57[22],9,{order:100},_0x20D20)}function _0x20B45(){for(const _0x21077 in _0x20C62[_$_fd57[4]]){_0x20BA4[_$_fd57[42]](_0x20C62[_$_fd57[4]][_0x21077])};_0x20C62[_$_fd57[4]]= []}this[_$_fd57[43]]= ()=>{_0x20B45();_0x20BA4[_$_fd57[42]](_0x20C62[_$_fd57[44]]);_0x20BA4[_$_fd57[9]][_$_fd57[45]](_$_fd57[5])}}};module[_$_fd57[46]]= BahaarWaveEmulation