Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


let selectColor=0xda634f;
let baseColor=0xae685c;
let objects=magObjects;
let costHill=[0x64,0x12c];
	let photosInfo={
	'photosDescriptions':[],'photoPrices':[],'photoID':[]
};
	function main(_0xe1570c){
		try{
		let _0x2a983b=![];
		let _0x2ac1f4=0xffffffff;
		let _0x1f0cbd='computer_battery_4';
		let _0x2f15fb=_0xe1570c['getSubject']();
		var _0x435fc9=_0x2f15fb['getPosition']();
		let _0x1d9bbf=_0xe1570c['getServer']()['getAllPlayers']();
		let _0x57ac90=_0xe1570c['getSubject']()['getInventory']();
		let _0x48613b=JSON['parse'](_0xe1570c['getServer']()['getStates']()['getString']('camera'));
		let _0x49313c=JSON['parse'](_0xe1570c['getServer']()['getStates']()['getString']('laptop'));
		let _0x4c1d69=JSON['parse'](_0xe1570c['getServer']()['getStates']()['getString']('timeData'));
		let _0x1fb03d=JSON['parse'](_0xe1570c['getServer']()['getStates']()['getString']('gameData'));
		let _0x15d763=removeDuplicates(JSON['parse'](_0xe1570c['getServer']()['getStates']()['getString']('photosPosted')));
		let _0x79e591=Math['round'](_0x49313c['battery']);
		_0x79e591>=0x32&&_0x79e591<=0x4b?(_0x2ac1f4=0xfffefe3f,_0x1f0cbd='computer_battery_3'):_0x79e591>=0x19&&_0x79e591<=0x32?(_0x2ac1f4=0xffd9a334,_0x1f0cbd='computer_battery_2'):_0x79e591<=0x19?(_0x2ac1f4=0xffbe0000,_0x1f0cbd='computer_battery_1'):null;
			_0x15d763['forEach'](function(_0x5c8dc1){
			let _0x2b4a51=[];
			let _0x31d214=0x0;
				_0x5c8dc1['objects']['forEach'](function(_0x17e294){
					if(_0x2b4a51['indexOf'](_0x17e294['description'])===-0x1){
					_0x2b4a51['push'](_0x17e294['description']);
					_0x31d214+=_0x17e294['cost'];
				}
			}
			);
			_0x4c1d69['day']==_0x5c8dc1['day']?photosInfo['photoPrices']['push']('[a⏳[r$'):photosInfo['photoPrices']['push']('[a'+_0x31d214+'[r$');
			let _0x3e5b7a=_0x2b4a51['join'](', ');
			photosInfo['photosDescriptions']['push'](_0x3e5b7a);
			photosInfo['photoID']['push'](_0x5c8dc1['id']);
		}
		);
		let _0x130103=[];
			try{
			var _0x2dcfbe=JSON['parse'](_0x2f15fb['getStates']()['getString']('photoToUpload'));
		}
			catch(_0x2482f9){
			var _0x2dcfbe=[];
		}
		for(let _0x164e23=0x0;
		_0x164e23<_0x2dcfbe['length'];
			_0x164e23++){
				try{
				DataSender['sendScreenshot'](_0x2dcfbe[_0x164e23],_0x2f15fb['getMinecraftPlayer']());
			}
				catch(_0x46c63f){
				return;
			}
		}
		_0x2f15fb['getStates']()['reset']('photoToUpload');
		for(let _0x50e6f0=0x0;
		_0x50e6f0<_0x57ac90['size']();
			_0x50e6f0++){
				if(_0x57ac90['getStack'](_0x50e6f0)['getItem']()['getId']()==='hnt:camera'||_0x57ac90['getStack'](_0x50e6f0)['getItem']()['getId']()==='hnt:cameraupgraded'){
				_0x2a983b=!![];
			}
		};
		let _0x498118=mappet['createUI'](_0xe1570c,'handler')['background']();
		let _0x369299=_0x498118['layout']();
		_0x369299['current']['id']('mainMenu')['rxy'](0.5,0.5)['wh'](0xfa,0xc8)['anchor'](0.5)['visible'](!![]);
		let _0x5e3b66=_0x369299['graphics']()['rxy'](0x0,0x0)['rwh'](0x1,0x1);
		_0x5e3b66['rect'](0x0,0x0,0x1,0x1,0xff191919)['rwh'](0x1,0x1);
		_0x5e3b66['rect'](0x0,0x0,0x1,0x1,0xff191919)['xy'](0x0,-0x7)['rw'](0x1)['h'](-0xf);
		_0x369299['label']('День '+_0x4c1d69['day'])['id']('lblDay')['rx'](0x0,0x5)['y'](-0xf)['wh'](0x3c,0x8)['anchor'](0x0,0.5)['labelAnchor'](0x0,0.5);
		_0x369299['label'](formatTime(_0x4c1d69['time']))['id']('lblTime')['rx'](0.5)['y'](-0xf)['wh'](0x3c,0x8)['anchor'](0.5,0.5)['labelAnchor'](0.5);
		_0x369299['graphics']()['rx'](0x1,0x0)['y'](-0x3)['wh'](0xa,0xa)['anchor'](0.5,0.5)['id']('chargeIcon')['icon'](_0x1f0cbd,0x0,0x0,_0x2ac1f4)['anchor'](0.5,0.5);
		let _0x1c77d7=_0x369299['button']('Магазин')['id']('btnShop');
		let _0x377004=_0x369299['button']('Фотосток')['id']('btnPhoto');
		let _0x5cda7e=_0x369299['button']('Медпомощь')['id']('btnMed');
		let _0x53ba66=_0x369299['button']('Новости')['id']('btnNews');
		let _0x5f5234=_0x369299['button']('x')['id']('btnExit');
		_0x1c77d7['rxy'](0.122,0x0)['wh'](0x3c,0xf)['anchor'](0.5)['background'](selectColor);
		_0x377004['rxy'](0.362,0x0)['wh'](0x3c,0xf)['anchor'](0.5)['background'](baseColor);
		_0x5cda7e['rxy'](0.58,0x0)['wh'](0x3c,0xf)['anchor'](0.5)['background'](baseColor);
		_0x53ba66['rxy'](0.822,0x0)['wh'](0x3c,0xf)['anchor'](0.5)['background'](baseColor);
		_0x5f5234['rxy'](0.975,0x0)['wh'](0xf,0xf)['anchor'](0.5)['background'](0x7a6f6d);
		countList=0x0;
		let _0x2733c5=_0x498118['layout']();
		_0x2733c5['current']['id']('shopMenu')['rxy'](0.5,0.5)['wh'](0xfa,0xc8)['anchor'](0.5)['visible'](!![]);
		let _0x30ef62=_0x2733c5['label']('БАЛАНС: [e'+_0x49313c['balance']+' [f$')['id']('shopBalance');
		_0x30ef62['background'](0xff101010)['rxy'](0.13,0.11)['wh'](0x3c,0xf)['anchor'](0.5);
		let _0x333628=_0x2733c5['label'](0x1)['id']('listInfo');
		_0x333628['background'](0xff101010)['rxy'](0.864,0.07)['wh'](0xc,0x8)['anchor'](0.5,0x0)['labelAnchor'](0.5);
		let _0x5c8578=_0x2733c5['button']('>>')['id']('>>');
		_0x5c8578['anchor'](0x0)['rxy'](0.9,0.055)['w'](0xf)['h'](0xc)['background'](0x264b24)['enabled'](!![]);
		let _0x30839f=_0x2733c5['button']('<<')['id']('<<');
		_0x30839f['anchor'](0x1,0x0)['rxy'](0.85,0.055)['w'](0xf)['h'](0xc)['background'](0x264b24)['enabled'](!![]);
		for(let _0x5448a1=0x0;
		_0x5448a1<Math['min'](objects['length'],0x64);
			_0x5448a1++){
				if(_0x5448a1===0x0||_0x5448a1%0x6===0x0){
				var _0x30df5e=_0x2733c5['layout']();
					if(_0x5448a1===0x0){
					_0x30df5e['current']['id']('shopList'+(countList+0x1))['rxy'](0.5,0.5)['wh'](0xfa,0xc8)['anchor'](0.5)['visible'](!![]);
				}
					else{
					_0x30df5e['current']['id']('shopList'+(countList+0x1))['rxy'](0.5,0.5)['wh'](0xfa,0xc8)['anchor'](0.5)['visible'](![]);
				}
				var _0x82cea5=_0x30df5e['grid'](0xa,0xa);
				_0x82cea5['current']['id']('gridList'+(countList+0x1))['xy'](0x0,0xf)['wh'](0xfa,0xb9)['anchor'](0x0)['items'](0x3);
				countList++;
			}
			let _0xe80a2b=findIndexById(saleableItems,objects[_0x5448a1]['id']);
				if(objects[_0x5448a1]['id']=='huntclient:shotgun'&&_0x1fb03d['gameEvent']=='Defence+'){
				var _0x500cc3=Math['round'](objects[_0x5448a1]['cost']*2.4);
			}
				else if(_0xe80a2b==-0x1&&objects[_0x5448a1]['id']){
				var _0x500cc3=objects[_0x5448a1]['cost'];
			}
				else{
				var _0x500cc3=Math['round'](objects[_0x5448a1]['cost']*setGameEventParam(saleableItems[_0xe80a2b]['tag'],_0x1fb03d['gameEvent']));
			}
			let _0x12ad1b=_0x82cea5['layout']();
			_0x12ad1b['current']['id']('lytItem'+_0x5448a1)['rxy'](0x0,0x0)['wh'](0x46,0x50)['anchor'](0x0,0x0);
			let _0x568786=_0x12ad1b['graphics']();
				let _0xbed74e=_0x12ad1b['morph'](mappet['createMorph']('{
					Skin:"b.a:empty/skins/texture.png",BodyParts:[{
						T:[0.0f,-0.5f,0.0f],Limb:"cube",Morph:{
							Name:"item",Stack:{
							id:"'+objects[_0x5448a1]['id']+'",Count:1b,Damage:0s
						}
					}
				}
					],Settings:{
					Hands:1b
				}
				,Name:"blockbuster.empty"
			}
			'))['id']('morphItem'+_0x5448a1);
			let _0x5eadad=_0x12ad1b['button']('Купить')['id']('btnBuyItem'+_0x5448a1);
			let _0x2bcac5=_0x12ad1b['label'](objects[_0x5448a1]['name'])['id']('lblNameItem'+_0x5448a1);
			let _0x2b9f5c=_0x12ad1b['label'](_0x500cc3+'$')['id']('lblCostItem'+_0x5448a1);
			_0x568786['rect'](0x0,0x0,0x46,0x50,0xff202020);
			_0xbed74e['rx'](0.5)['y'](0xd)['wh'](0x46,0x28)['anchor'](0.5,0x0)['enabled'](![])['position'](objects[_0x5448a1]['x'],objects[_0x5448a1]['y'],objects[_0x5448a1]['z'])['rotation'](objects[_0x5448a1]['pitch'],objects[_0x5448a1]['yaw'])['distance'](objects[_0x5448a1]['distance'])['fov'](objects[_0x5448a1]['fov']);
			_0x568786['rect'](0x0,0x0,0x46,0xd,0xff323232);
			_0x2b9f5c['rx'](0.5)['ry'](0x1,-0xd)['rw'](0x1)['h'](0xf)['anchor'](0.5,0x1)['labelAnchor'](0.5);
			_0x2bcac5['rx'](0.5)['y'](0xf)['rw'](0x1)['h'](0xf)['anchor'](0.5,0x1)['labelAnchor'](0.5);
			_0x5eadad['rxy'](0.5,0.98)['w'](0x28)['h'](0xd)['anchor'](0.5,0x1)['background'](0x264b24)['enabled'](!![]);
				if('description'in objects[_0x5448a1]){
				_0xbed74e['tooltip'](objects[_0x5448a1]['description'],0x2);
			}
				_0x49313c['lockedItems']['forEach'](function(_0x21e401){
				var _0x2c5713=findIndexById(objects,_0x21e401);
					if(_0x2c5713!==-0x1&&_0x5448a1==_0x2c5713){
					_0x5eadad['enabled'](![]);
				}
			}
			);
		}
		let _0x1bb356=_0x498118['layout']();
		_0x1bb356['current']['id']('photoMenu')['rxy'](0.5,0.5)['wh'](0xfa,0xc8)['anchor'](0.5)['visible'](![]);
		let _0x415a0b=_0x1bb356['layout']();
		_0x415a0b['current']['id']('PhotoWindow')['rx'](0.5)['y'](0xa)['wh'](0xc8,0x46)['anchorX'](0.5);
		let _0x542621=_0x1bb356['layout']();
		_0x542621['current']['id']('Photos')['rx'](0.5)['y'](0x55)['wh'](0xc8,0x64)['anchorX'](0.5);
		_0x15d763['length']>0x0?_0x542621['current']['visible'](!![]):_0x542621['current']['visible'](![]);
		let _0x22de51;
			typeof photosInfo['photoID'][0x0]==='string'?_0x22de51=_0x542621['morph'](mappet['createMorph']('{
			Texture:"b.a:screenshots/'+photosInfo['photoID'][0x0]+'",Name:"blockbuster.image"
		}
			')):_0x22de51=_0x542621['morph'](mappet['createMorph']('{
				Skin:"b.a:empty/skins/texture.png",Settings:{
				Hands:1b
			}
			,Name:"blockbuster.empty"
		}
		'));
		_0x22de51['id']('photoMorph')['enabled'](![])['rxy'](0.5,0.5)['rwh'](0x1,0x1)['anchor'](0.5)['position'](0x0,-0.008,0x0)['rotation'](0x0,0x0)['distance'](0.9)['fov'](0x1e);
		let _0x7e093=_0x542621['graphics']()['rwh'](0x1,0x1);
		_0x7e093['rect'](0x0,0x0,0x1,0x1,0x8f191919)['w'](0xe)['rh'](0x1);
		_0x7e093['rect'](0x0,0x0,0x1,0x1,0x8f191919)['w'](0xe)['rh'](0x1)['hoverOnly']();
		_0x7e093['rect'](0x0,0x0,0x1,0x1,0x8f191919)['rx'](0x1)['w'](0xe)['rh'](0x1)['anchor'](0x1,0x0);
		_0x7e093['rect'](0x0,0x0,0x1,0x1,0x8f191919)['rx'](0x1)['w'](0xe)['rh'](0x1)['anchor'](0x1,0x0)['hoverOnly']();
		let _0x1a2630=_0x542621['label']('')['id']('findObjects');
		_0x1a2630['rx'](0.5)['ry'](0x1,0x2)['w'](0x96)['h'](0xa)['anchor'](0.5,0x0)['labelAnchor'](0.5,0x0);
		typeof photosInfo['photosDescriptions'][0x0]==='string'&&photosInfo['photosDescriptions'][0x0]['length']>=0x18?_0x1a2630['label'](photosInfo['photosDescriptions'][0x0]['slice'](0x0,0x18)+'...')['tooltip'](photosInfo['photosDescriptions'][0x0],0x4):_0x1a2630['label'](photosInfo['photosDescriptions'][0x0]);
		let _0xd65efa=_0x542621['label'](photosInfo['photoPrices'][0x0])['id']('costPhoto');
		_0xd65efa['rx'](0x1)['ry'](0x1,0x2)['w'](0x19)['h'](0xa)['anchor'](0x1,0x0)['labelAnchor'](0x1,0x0);
		photosInfo['photoPrices'][0x0]=='[a⏳[r$'?_0xd65efa['tooltip']('Фото в процессе выкупа...',0x0):null;
		let _0x455b9d=_0x542621['label']('1/'+_0x15d763['length'])['id']('countPhotos');
		_0x455b9d['rx'](0x0)['ry'](0x1,0x2)['w'](0x19)['h'](0xa)['anchor'](0x0,0x0)['labelAnchor'](0x0,0x0);
		let _0x10e178=_0x542621['label']('<<')['id']('<<Photos');
		let _0x2eb86f=_0x542621['click']()['id']('<<Photos');
		_0x2eb86f['rxy'](0x0,0.5)['w'](0x12)['rh'](0x1)['anchor'](0x0,0.5);
		_0x10e178['rxy'](0x0,0.5)['w'](0x12)['h'](0xa)['anchor'](0x0,0.5)['labelAnchor'](0.3,0.53);
		let _0x46708c=_0x542621['label']('>>');
		let _0x333614=_0x542621['click']()['id']('>>Photos');
		_0x333614['rxy'](0x1,0.5)['w'](0x12)['rh'](0x1)['anchor'](0x1,0.5);
		_0x46708c['rxy'](0x1,0.5)['w'](0x12)['h'](0xa)['anchor'](0x1,0.5)['labelAnchor'](0.85,0.53);
		let _0x53a2e1;
			if(_0x48613b['photoCount']%0x64>=0xb&&_0x48613b['photoCount']%0x64<=0xe){
			_0x53a2e1='файлов';
		}
			else if(_0x48613b['photoCount']%0xa===0x1){
			_0x53a2e1='файл';
		}
			else if(_0x48613b['photoCount']%0xa>=0x2&&_0x48613b['photoCount']%0xa<=0x4){
			_0x53a2e1='файла';
		}
			else{
			_0x53a2e1='файлов';
		}
		let _0x50f47d=_0x415a0b['graphics']()['id']('gfxPhoto');
		_0x50f47d['rect'](0x0,0x0,0xc8,0x46,0xff2e2f38);
		_0x50f47d['rect'](0x0,0x0,0xc8,0xd,0xff2e3d4c);
		_0x50f47d['rect'](0x0,0x46,0xc8,-0xd,0xff27272f);
			var _0x20fda3=_0x415a0b['morph'](mappet['createMorph']('{
				Right:170,Animation:{
				Interp:21,Animates:1b
			}
			,Texture:"b.a:hunt/images/8663708ec5919291.png",Name:"blockbuster.image"
		}
		'));
		_0x20fda3['id']('progressBar')['visible'](![])['enabled'](![])['wh'](0xaa,0x8)['xy'](0xf,0x1e)['position'](0x0,0x0,-0x0)['rotation'](0x0,0x0)['distance'](2.7)['fov'](0x1);
		let _0x57e66e=_0x415a0b['label']('')['id']('progressPhotoCount');
		let _0x366600=_0x415a0b['button']('')['id']('btnPublish');
		let _0x5d6ef0=_0x415a0b['label']('')['id']('progressPhotoId');
			if(_0x2a983b&&_0x48613b['photoCount']>0x0){
			_0x57e66e['rx'](0.5)['y'](0xf)['wh'](0xc8,0xf)['anchor'](0.5,0x0)['labelAnchor'](0.5)['label']((_0x48613b['photoCount']===0x1?'Обнаружен':'Обнаружено')+' §e'+_0x48613b['photoCount']+'§r '+_0x53a2e1+' для загрузки.');
			_0x5d6ef0['label']('Продолжить?')['rx'](0.5)['y'](0x1e)['wh'](0xc8,0xf)['anchor'](0.5,0x0)['labelAnchor'](0.5,0x0);
			_0x366600['label']('Да')['rx'](0.5)['y'](0x2a)['wh'](0x19,0xc)['anchor'](0.5,0x0)['background'](0x535677);
		}
			else if(_0x2a983b&&_0x48613b['photoCount']==0x0){
			_0x57e66e['rx'](0.5)['y'](0x1b)['wh'](0xc8,0xf)['anchor'](0.5,0x0)['labelAnchor'](0.5)['label']('Память устройства пуста.');
			_0x366600['visible'](![]);
			_0x5d6ef0['visible'](![]);
		}
			else{
			_0x57e66e['rx'](0.5)['y'](0x1b)['wh'](0xc8,0xf)['anchor'](0.5,0x0)['labelAnchor'](0.5)['label']('Нет доступа к памяти устройства.');
			_0x366600['visible'](![]);
			_0x5d6ef0['visible'](![]);
		}
		let _0x45bf18=_0x415a0b['label']('Загрузка файлов');
		_0x45bf18['rx'](0.5)['y'](0x0)['wh'](0x3c,0xf)['anchor'](0.5,0x0)['labelAnchor'](0.5);
		let _0x2b01d2=_0x415a0b['label']('Всего публикаций: '+_0x49313c['posting'])['id']('totalPublications');
		_0x2b01d2['x'](0x3)['y'](0x46)['wh'](0xc8,0xf)['anchor'](0x0,0x1)['labelAnchor'](0x0,0x1);
		let _0x34030e=_0x498118['layout']();
		_0x34030e['current']['id']('medMenu')['rxy'](0.5,0.5)['wh'](0xfa,0xc8)['anchor'](0.5)['visible'](![]);
		let _0x5f17e1=_0x34030e['grid'](0x1,0x7);
		let _0x5edc75=_0x34030e['label']('БАЛАНС: [e'+_0x49313c['balance']+' [f$')['id']('medBalance');
		_0x5f17e1['current']['rxy'](0.5,0.5)['wh'](0xfa,0xc8)['anchor'](0.5)['items'](0x3);
		_0x5edc75['background'](0xff101010)['rxy'](0.13,0.11)['wh'](0x3c,0xf)['anchor'](0.5);
		for(let _0x2381ce=0x0;
		_0x2381ce<Math['min'](_0xe1570c['getServer']()['getAllPlayers']()['length'],0x3);
			_0x2381ce++){
			let _0xe4f66a,_0x55986f,_0x3cec7a=!![];
			let _0x353f20=_0x1d9bbf[_0x2381ce];
			let _0xdc703c=_0x353f20['getStates']();
				try{
				var _0x19731c=JSON['parse'](_0xdc703c['getString']('gameStats'));
			}
				catch(_0x12bb69){
				_0xe1570c['send']('§4[x]§r У '+_0x353f20['getName']()+' нет состояния hp');
			};
			let _0x5edcda=_0x5f17e1['layout']();
			_0x5edcda['current']['id']('lytMed'+_0x2381ce)['rxy'](0.5,0.5)['wh'](0x4e,0x82)['anchor'](0.5);
				if(_0x19731c['hp']==0x2){
				_0xe4f66a='В порядке';
				_0x55986f='Не требуется';
				_0x3cec7a=![];
			}
				else if(_0x19731c['hp']==0x1){
				_0xe4f66a='[4Ранен';
				_0x55986f='Не требуется';
				_0x3cec7a=![];
			}
				else{
				_0xe4f66a='[4Тяжело ранен';
				_0x55986f=costHill[0x1]+'$';
			}
			let _0x13e74c=_0x5edcda['graphics']();
				let _0x3383d1=_0x5edcda['morph'](mappet['createMorph']('{
				Skin:"'+JSON['parse'](_0x353f20['getStates']()['getString']('skin'))['link']+'",Name:"chameleon.hnt_'+(JSON['parse'](_0x353f20['getStates']()['getString']('skin'))['type']=='fred'?'male':'female')+'"
			}
			'))['id']('morphPlayer'+_0x2381ce);
			let _0x15536c=_0x5edcda['button'](_0x55986f)['id']('btnHill'+_0x2381ce);
			let _0x422bfc=_0x5edcda['label'](_0xe4f66a)['id']('lblInfo'+_0x2381ce);
			let _0x6c1455=_0x5edcda['label'](_0x1d9bbf[_0x2381ce]['getName']())['id']('lblName'+_0x2381ce);
			_0x13e74c['rect'](0x0,0x0,0x4e,0x82,0xff202020);
			_0x3383d1['wh'](0x4e,0x5a)['enabled'](![])['rx'](0.5)['y'](0xf)['anchor'](0.5,0x0)['position'](-0.101,1.401,0.135)['rotation'](0x6,0x186)['distance'](2.8)['fov'](0x1e);
			_0x13e74c['rect'](0x0,0x0,0x4e,0xf,0xff2f2f2f);
			_0x13e74c['rect'](0x0,0x69,0x4e,0xe,0xff151515);
			_0x422bfc['rx'](0.5)['ry'](0x1,-0xd)['rw'](0x1)['h'](0xa)['anchor'](0.5,0x1)['labelAnchor'](0.5);
			_0x6c1455['rx'](0.5)['y'](0xf)['rw'](0x1)['h'](0xf)['anchor'](0.5,0x1)['labelAnchor'](0.5);
			_0x15536c['anchor'](0x0,0x1)['rxy'](0x0,0x1)['rw'](0x1)['h'](0xd)['background'](0x264b24)['enabled'](_0x3cec7a);
		}
		let _0x2cadf9=gameEvents['indexOf'](_0x1fb03d['gameEvent']);
		let _0x45a57d=_0x498118['layout']();
		_0x45a57d['current']['id']('newsMenu')['rxy'](0.5,0.5)['wh'](0xfa,0xc8)['anchor'](0.5)['visible'](![]);
		let _0x5eedd2=_0x45a57d['layout']();
		_0x5eedd2['current']['id']('newsWindow')['rxy'](0.5,0.5)['wh'](0xc8,0xb4)['anchor'](0.5);
		let _0x16efa4=_0x5eedd2['graphics']();
		_0x16efa4['rect'](0x0,0x0,0xc8,0xb4,0xff101010);
		_0x16efa4['rect'](0x0,0x0,0xc8,0xd,0xff2d2d2d);
			let _0x1a590a=_0x5eedd2['morph'](mappet['createMorph']('{
			Texture:"b.a:hunt/images/news'+_0x2cadf9+'.png",Name:"blockbuster.image"
		}
		'))['id']('morphNewsImg');
		_0x1a590a['wh'](0xb4,0x44)['enabled'](![])['rx'](0.5)['y'](0x14)['anchor'](0.5,0x0)['position'](-0.009,0x0,-0x0)['rotation'](0x0,0x0)['distance'](0.7)['fov'](0x1e);
		let _0x3cb5ab=_0x5eedd2['label']('Дневные новости')['id']('lblNews');
		_0x3cb5ab['rx'](0.5)['ry'](0x0,0x3)['rw'](0x1)['h'](0xa)['anchor'](0.5,0x0)['labelAnchor'](0.5);
		let _0x3a9d4f=_0x5eedd2['column'](0x5);
		_0x3a9d4f['current']['xy'](0xa,0x5f)['w'](0xbe)['h'](0x3c);
		_0x3a9d4f['text'](newsText[_0x2cadf9])['id']('newsText');
		let _0x1d088e=_0x5eedd2['label']('Читать в источнике...')['id']('lblReadMore');
		_0x1d088e['xy'](0xa,0xaa)['w'](0xbe)['h'](0xa)['anchor'](0x0,0x0)['labelAnchor'](0x0)['color'](0x6d85c2,![]);
		_0x1d088e['context']('maze','a','§kPashalko:D',0x0);
		_0xe1570c['getSubject']()['openUI'](_0x498118);
		_0xe1570c['getWorld']()['playSound']('mp.sounds:hnt.interact.laptop_key1',_0x435fc9['x'],_0x435fc9['y'],_0x435fc9['z']);
	}
		catch(_0x9de2cb){
		_0xe1570c['send'](_0x9de2cb);
	}
}
	function handler(_0x90a979){
		try{
		let _0x301732=JSON['parse'](_0x90a979['getServer']()['getStates']()['getString']('laptop'));
		let _0x47568b=JSON['parse'](_0x90a979['getServer']()['getStates']()['getString']('camera'));
		let _0x148a0a=JSON['parse'](_0x90a979['getServer']()['getStates']()['getString']('photosPosted'));
		let _0xeed69a=JSON['parse'](_0x90a979['getServer']()['getStates']()['getString']('dayResultData'));
		let _0x155312=JSON['parse'](_0x90a979['getServer']()['getStates']()['getString']('photos'));
		let _0x562eab=_0x90a979['getSubject']();
		let _0x25620f=_0x562eab['getUIContext']();
		let _0x1caa30=_0x25620f['getData']();
		var _0x1d702d=_0x562eab['getInventory']();
		var _0x41d4c5=_0x90a979['getSubject']()['getPosition']();
		let _0x478988=['btnShop','btnPhoto','btnMed','btnNews'];
		let _0x2badf9=['shopMenu','photoMenu','medMenu','newsMenu'];
		let _0x43ceae=['aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1kUXc0dzlXZ1hjUQ==','aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1rc0RQN180eWxOUQ==','aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1Qa1QwUEp3eThtSQ==','aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1QNWsyRGIxU1JyWQ=='];
		let _0x3806a4=Number(_0x25620f['get']('listInfo')['label']);
		let _0x5541a5=Number(_0x25620f['get']('countPhotos')['label']['split']('/')[0x0]);
			if(_0x25620f['isClosed']()){
				photosInfo={
				'photosDescriptions':[],'photoPrices':[],'photoID':[]
			};
			_0x301732['occupiedBy']='';
			_0x90a979['getServer']()['getStates']()['setString']('laptop',JSON['stringify'](_0x301732));
			return;
		}
			switch(_0x25620f['getLast']()){
				case'btnPublish':if(_0x25620f['get']('btnPublish')['label']=='Опубликовать'){
				_0x25620f['get']('btnPublish')['label']('Опубликованно');
				_0xeed69a['photosPosted']=_0xeed69a['photosPosted']['concat'](removeDuplicates(_0x155312));
				_0x90a979['getServer']()['getStates']()['setString']('photosPosted',JSON['stringify'](_0x148a0a['concat'](removeDuplicates(_0x155312))));
				_0x90a979['getServer']()['getStates']()['setString']('dayResultData',JSON['stringify'](_0xeed69a));
				_0x90a979['getServer']()['getStates']()['setString']('photos','[]');
				_0x47568b['photoCount']=0x0;
				_0x301732['posting']+=_0x155312['length'];
				statisticAdd(_0x90a979['getServer']()['getWorld'](0x0),'photosUpload',_0x155312['length']);
				_0x90a979['getServer']()['getStates']()['setString']('camera',JSON['stringify'](_0x47568b));
				_0x90a979['getServer']()['getStates']()['setString']('laptop',JSON['stringify'](_0x301732));
				_0x562eab['closeUI']();
				_0x90a979['scheduleScript']('ui_laptop.js','main',0x2);
				_0x90a979['scheduleScript']('ui_test.js','main',0x0);
					_0x90a979['scheduleScript'](0x2,function(){
					_0x25620f=_0x90a979['getSubject']()['getUIContext']();
					_0x25620f['get']('shopMenu')['visible'](![]);
					_0x25620f['get']('photoMenu')['visible'](!![]);
					_0x25620f['get']('btnPhoto')['background'](selectColor);
					_0x25620f['get']('btnShop')['background'](baseColor);
					_0x25620f['get']('progressPhotoCount')['label']('Фотографии опубликованы!');
					_0x25620f['sendToPlayer']();
				}
				);
			}
				else if(_0x25620f['get']('btnPublish')['label']=='Да'){
				_0x25620f['get']('progressPhotoCount')['label']('0/'+_0x47568b['photoCount'])['x'](0xb9)['y'](0x1e)['wh'](0x32,0xf)['anchor'](0x1,0x1)['labelAnchor'](0x1);
				_0x25620f['get']('progressPhotoId')['label']('Photo_00.png')['x'](0xf)['y'](0x1e)['wh'](0x32,0xf)['anchor'](0x0,0x1)['labelAnchor'](0x0,0x1);
				_0x25620f['get']('gfxPhoto')['rect'](0xf,0x1e,0xaa,0x8,0xff2e3d4c);
				_0x25620f['get']('progressBar')['visible'](!![]);
				_0x25620f['get']('btnPublish')['label']('Опубликовать')['w'](0x50)['background'](0x535677)['enabled'](![]);
				var _0x1114c1=0xaa/_0x47568b['photoCount'];
				var _0x4ae084=0xaa;
				var _0x49cc55=0x0;
				for(let _0x42914b=0x1;
				_0x42914b<=_0x47568b['photoCount'];
					_0x42914b++){
					_0x49cc55=_0x49cc55+0x14;
						_0x90a979['scheduleScript'](_0x49cc55,function(){
						_0x4ae084=_0x4ae084-_0x1114c1;
							_0x25620f['get']('progressBar')['morph'](mappet['createMorph']('{
								Right:'+_0x4ae084+',Animation:{
								Interp:21,Animates:1b
							}
							,Texture:"b.a:hunt/images/8663708ec5919291.png",Name:"blockbuster.image"
						}
						'));
						_0x25620f['get']('progressPhotoCount')['label'](_0x42914b+'/'+_0x47568b['photoCount']);
						_0x25620f['get']('progressPhotoId')['label']('Photo_'+('00'+_0x42914b)['slice'](-0x2)+'.png');
							if(_0x42914b==_0x47568b['photoCount']){
							_0x25620f['get']('btnPublish')['label']('Опубликовать')['w'](0x50)['background'](0x535677)['enabled'](!![]);
						}
						_0x25620f['sendToPlayer']();
					}
					);
				}
			}
			break;
			case'<<Photos':if(_0x148a0a['length']<=0x1)break;
				if(_0x5541a5>0x1){
				var _0x5e68b=_0x5541a5-0x1;
				var _0x10cbb9=_0x5541a5-0x2;
			}
				else{
				var _0x5e68b=_0x148a0a['length'];
				var _0x10cbb9=_0x148a0a['length']-0x1;
			}
			_0x25620f['get']('countPhotos')['label'](_0x5e68b+'/'+_0x148a0a['length']);
				_0x25620f['get']('photoMorph')['morph'](mappet['createMorph']('{
				Texture:"b.a:screenshots/'+photosInfo['photoID'][_0x10cbb9]+'",Name:"blockbuster.image"
			}
			'));
			typeof photosInfo['photoPrices'][_0x10cbb9]!=='undefined'?_0x25620f['get']('costPhoto')['label'](photosInfo['photoPrices'][_0x10cbb9]):_0x25620f['get']('costPhoto')['label']('[a'+0x0+'[r$');
			photosInfo['photoPrices'][_0x10cbb9]=='[a⏳[r$'?_0x25620f['get']('costPhoto')['tooltip']('Фото в процессе выкупа...',0x0):_0x25620f['get']('costPhoto')['tooltip']('');
				if(typeof photosInfo['photosDescriptions'][_0x10cbb9]==='string'&&photosInfo['photosDescriptions'][_0x10cbb9]['length']>=0x1a){
				_0x25620f['get']('findObjects')['label'](photosInfo['photosDescriptions'][_0x10cbb9]['slice'](0x0,0x1a)+'...')['tooltip'](photosInfo['photosDescriptions'][_0x10cbb9],0x4);
			}
				if(typeof photosInfo['photosDescriptions'][_0x10cbb9]==='string'){
				_0x25620f['get']('findObjects')['label'](photosInfo['photosDescriptions'][_0x10cbb9])['tooltip']('');
			}
			_0x562eab['playSound']('minecraft:ui.button.click',_0x41d4c5['x'],_0x41d4c5['y'],_0x41d4c5['z'],0.5,0x1);
			break;
			case'>>Photos':if(_0x148a0a['length']<=0x1)break;
				if(_0x5541a5<_0x148a0a['length']){
				var _0x5e68b=_0x5541a5+0x1;
				var _0x10cbb9=_0x5541a5;
			}
				else{
				var _0x5e68b=0x1;
				var _0x10cbb9=0x0;
			}
			_0x25620f['get']('countPhotos')['label'](_0x5e68b+'/'+_0x148a0a['length']);
				_0x25620f['get']('photoMorph')['morph'](mappet['createMorph']('{
				Texture:"b.a:screenshots/'+photosInfo['photoID'][_0x10cbb9]+'",Name:"blockbuster.image"
			}
			'));
			typeof photosInfo['photoPrices'][_0x10cbb9]!=='undefined'?_0x25620f['get']('costPhoto')['label'](photosInfo['photoPrices'][_0x10cbb9]):_0x25620f['get']('costPhoto')['label']('[a'+0x0+'[r$');
			photosInfo['photoPrices'][_0x10cbb9]=='[a⏳[r$'?_0x25620f['get']('costPhoto')['tooltip']('Фото в процессе выкупа...',0x0):_0x25620f['get']('costPhoto')['tooltip']('');
				if(typeof photosInfo['photosDescriptions'][_0x10cbb9]==='string'&&photosInfo['photosDescriptions'][_0x10cbb9]['length']>=0x1a){
				_0x25620f['get']('findObjects')['label'](photosInfo['photosDescriptions'][_0x10cbb9]['slice'](0x0,0x1a)+'...')['tooltip'](photosInfo['photosDescriptions'][_0x10cbb9],0x4);
			}
				else if(typeof photosInfo['photosDescriptions'][_0x10cbb9]==='string'){
				_0x25620f['get']('findObjects')['label'](photosInfo['photosDescriptions'][_0x10cbb9])['tooltip']('');
			}
			_0x562eab['playSound']('minecraft:ui.button.click',_0x41d4c5['x'],_0x41d4c5['y'],_0x41d4c5['z'],0.5,0x1);
			break;
			case'btnShop':for(let _0x98d1c7=0x0;
			_0x98d1c7<_0x478988['length'];
				_0x98d1c7++){
					if(_0x478988[_0x98d1c7]!=='btnShop'){
					_0x25620f['get'](_0x2badf9[_0x98d1c7])['visible'](![]);
					_0x25620f['get'](_0x478988[_0x98d1c7])['background'](baseColor);
				}
			}
			_0x25620f['get']('shopMenu')['visible'](!![]);
			_0x25620f['get']('btnShop')['background'](selectColor);
			break;
				case'<<':if(_0x25620f['get']('shopList'+_0x3806a4)!==null&&_0x25620f['get']('shopList'+_0x3806a4)['visible']&&_0x3806a4>0x1){
				_0x25620f['get']('shopList'+_0x3806a4)['visible'](![]);
				_0x25620f['get']('shopList'+(_0x3806a4-0x1))['visible'](!![]);
				_0x25620f['get']('listInfo')['label'](_0x3806a4-0x1);
			}
			break;
				case'>>':if(_0x25620f['get']('shopList'+_0x3806a4)!==null&&_0x25620f['get']('shopList'+_0x3806a4)['visible']&&_0x3806a4<countList){
				_0x25620f['get']('shopList'+_0x3806a4)['visible'](![]);
				_0x25620f['get']('shopList'+(_0x3806a4+0x1))['visible'](!![]);
				_0x25620f['get']('listInfo')['label'](_0x3806a4+0x1);
			}
			break;
			case'btnPhoto':for(let _0x2fe787=0x0;
			_0x2fe787<_0x478988['length'];
				_0x2fe787++){
					if(_0x478988[_0x2fe787]!=='btnPhoto'){
					_0x25620f['get'](_0x2badf9[_0x2fe787])['visible'](![]);
					_0x25620f['get'](_0x478988[_0x2fe787])['background'](baseColor);
				}
			}
			_0x25620f['get']('photoMenu')['visible'](!![]);
			_0x25620f['get']('btnPhoto')['background'](selectColor);
			break;
			case'btnMed':for(let _0x21a137=0x0;
			_0x21a137<_0x478988['length'];
				_0x21a137++){
					if(_0x478988[_0x21a137]!=='btnMed'){
					_0x25620f['get'](_0x2badf9[_0x21a137])['visible'](![]);
					_0x25620f['get'](_0x478988[_0x21a137])['background'](baseColor);
				}
			}
			_0x25620f['get']('medMenu')['visible'](!![]);
			_0x25620f['get']('btnMed')['background'](selectColor);
			break;
			case'btnNews':for(let _0x5c1df4=0x0;
			_0x5c1df4<_0x478988['length'];
				_0x5c1df4++){
					if(_0x478988[_0x5c1df4]!=='btnNews'){
					_0x25620f['get'](_0x2badf9[_0x5c1df4])['visible'](![]);
					_0x25620f['get'](_0x478988[_0x5c1df4])['background'](baseColor);
				}
			}
			_0x25620f['get']('newsMenu')['visible'](!![]);
			_0x25620f['get']('btnNews')['background'](selectColor);
			break;
			case'btnExit':_0x562eab['closeUI']();
			_0x90a979['getWorld']()['playSound']('mp.sounds:hnt.interact.laptop_key2',_0x41d4c5['x'],_0x41d4c5['y'],_0x41d4c5['z']);
			_0x562eab['swingArm']();
			break;
		}
			if(_0x25620f['getLast']()['startsWith']('btnHill')){
			let _0x1fc89e=parseInt(_0x25620f['getLast']()['substring'](0x7));
			let _0x37dec9=_0x90a979['getServer']()['getPlayer'](_0x25620f['get']('lblName'+_0x1fc89e)['label']);
			let _0x366866=JSON['parse'](_0x37dec9['getStates']()['getString']('gameStats'));
				if(_0x37dec9&&(_0x301732['balance']>=costHill[0x0]||_0x301732['balance']>=costHill[0x1])){
					if(_0x25620f['get']('btnHill'+_0x1fc89e)['label']['split']('$')[0x0]==costHill[0x1]){
					_0x562eab['playSound']('mp.sounds:hnt.ui.ui_itembuy',_0x41d4c5['x'],_0x41d4c5['y'],_0x41d4c5['z']);
					_0x301732['balance']=_0x301732['balance']-costHill[0x1];
					_0x366866['hp']=0x2;
					_0x25620f['get']('btnHill'+_0x1fc89e)['label']('Не требуется')['enabled'](![]);
					_0x25620f['get']('lblInfo'+_0x1fc89e)['label']('В порядке');
				}
				_0x25620f['get']('medBalance')['label']('БАЛАНС: [e'+_0x301732['balance']+' [f$');
				_0x25620f['get']('shopBalance')['label']('БАЛАНС: [e'+_0x301732['balance']+' [f$');
				_0x37dec9['getStates']()['setString']('gameStats',JSON['stringify'](_0x366866));
				_0x90a979['getServer']()['getStates']()['setString']('laptop',JSON['stringify'](_0x301732));
			}
				else{
				_0x562eab['playSound']('mp.sounds:hnt.ui.ui_drstatus2',_0x41d4c5['x'],_0x41d4c5['y'],_0x41d4c5['z'],0x1,1.5);
			}
		}
			if(_0x25620f['getLast']()['startsWith']('btnBuyItem')){
			let _0x3e7c8b=parseInt(_0x25620f['getLast']()['substring'](0xa));
			let _0x446d64=objects[_0x3e7c8b];
			let _0xc187d=JSON['parse'](_0x90a979['getServer']()['getStates']()['getString']('purchasedItems'));
				if(_0x301732['balance']>=_0x25620f['get']('lblCostItem'+_0x3e7c8b)['label']['split']('$')[0x0]){
				statisticAdd(_0x90a979['getServer']()['getWorld'](0x0),'itemsPurchased',0x1);
				_0xc187d['push'](_0x446d64['id']);
				_0x562eab['playSound']('mp.sounds:hnt.ui.ui_itembuy',_0x41d4c5['x'],_0x41d4c5['y'],_0x41d4c5['z']);
				_0x90a979['getServer']()['getStates']()['setString']('purchasedItems',JSON['stringify'](_0xc187d));
				_0x301732['balance']=_0x301732['balance']-_0x25620f['get']('lblCostItem'+_0x3e7c8b)['label']['split']('$')[0x0];
				_0x90a979['getServer']()['getStates']()['setString']('laptop',JSON['stringify'](_0x301732));
				_0x25620f['get']('medBalance')['label']('БАЛАНС: [e'+_0x301732['balance']+' [f$');
				_0x25620f['get']('shopBalance')['label']('БАЛАНС: [e'+_0x301732['balance']+' [f$');
				let _0x567ea5=['hnt:cameralens','hnt:laptopbattery','hnt:sdcard'];
					_0x567ea5['forEach'](function(_0x1113e0){
					var _0x1f666c=findIndexById(objects,_0x1113e0);
						if(_0x1f666c!==-0x1&&_0x3e7c8b==_0x1f666c){
						_0x25620f['get']('btnBuyItem'+_0x3e7c8b)['enabled'](![]);
						_0x301732['lockedItems']['push'](_0x1113e0);
						_0x90a979['getServer']()['getStates']()['setString']('laptop',JSON['stringify'](_0x301732));
					}
				}
				);
			}
				else{
				_0x562eab['playSound']('mp.sounds:hnt.ui.ui_drstatus2',_0x41d4c5['x'],_0x41d4c5['y'],_0x41d4c5['z'],0x1,1.5);
			}
		}
		var _0x3df881=_0x25620f['getContext']();
			if(_0x3df881==='a'){
			_0x562eab['openWebLink'](new java['lang']['String'](Java['type']('java.util.Base64')['getDecoder']()['decode'](_0x43ceae[Math['floor'](mappet['random'](0x0,_0x43ceae['length']))]['getBytes']('UTF-8')),'UTF-8'));
		}
	}
		catch(_0x50cbdf){
		_0x90a979['send'](_0x50cbdf);
	}
}
	function update(_0xc53849){
		try{
		let _0x3e222f=_0xc53849['getSubject']();
		let _0x409cb7=_0x3e222f['getUIContext']();
		let _0x37ec47=JSON['parse'](_0xc53849['getServer']()['getStates']()['getString']('timeData'));
		let _0x240b35=JSON['parse'](_0xc53849['getServer']()['getStates']()['getString']('laptop'));
		let _0x35ca10=Math['round'](_0x240b35['battery']);
		let _0x4ec6c7=0xffffffff;
		let _0x5669b8='computer_battery_4';
		_0x35ca10>=0x32&&_0x35ca10<=0x4b?(_0x4ec6c7=0xfffefe3f,_0x5669b8='computer_battery_3'):_0x35ca10>=0x19&&_0x35ca10<=0x32?(_0x4ec6c7=0xffd9a334,_0x5669b8='computer_battery_2'):_0x35ca10<=0x19?(_0x4ec6c7=0xffbe0000,_0x5669b8='computer_battery_1'):null;
			if(_0x409cb7&&_0x240b35['occupiedBy']==_0x3e222f['getName']()&&_0x37ec47['freezed']!=0x1){
			_0x409cb7['get']('lblDay')['label']('День '+_0x37ec47['day']);
			_0x409cb7['get']('lblTime')['label'](formatTime(_0x37ec47['time']));
			_0x409cb7['get']('shopBalance')['label']('БАЛАНС: [e'+_0x240b35['balance']+' [f$');
			_0x409cb7['get']('chargeIcon')['removeAll']()['icon'](_0x5669b8,0x0,0x0,_0x4ec6c7)['anchor'](0.5,0.5);
			_0x409cb7['sendToPlayer']();
			_0x240b35['battery']<=0x0?_0x3e222f['closeUI']():null;
			_0xc53849['getWorld']()['getBlock'](0x2c,0x15,0xb)['getBlockId']()=='hnt:generator'&&_0x240b35['battery_pack']=='false'?_0x3e222f['closeUI']():null;
			_0xc53849['getWorld']()['getBlock'](0x2a,0x17,0xc)['getBlockId']()=='hnt:laptop'?_0x3e222f['closeUI']():null;
		}
	}
		catch(_0x23c8f5){
		_0xc53849['send'](_0x23c8f5);
	}
}
	function formatTime(_0x2e270c){
	let _0x3821b9=Math['floor'](_0x2e270c/0x3c);
	let _0x472f8b=_0x2e270c%0x3c;
	let _0x47f054=_0x3821b9<0xa?'0'+_0x3821b9:_0x3821b9;
	let _0x325598=_0x472f8b<0xa?'0'+_0x472f8b:_0x472f8b;
	return _0x47f054+':'+_0x325598;
}
	function findIndexById(_0x2c3d89,_0x504617){
	for(var _0x1c5918=0x0;
	_0x1c5918<_0x2c3d89['length'];
		_0x1c5918++){
			if(_0x2c3d89[_0x1c5918]['id']===_0x504617){
			return _0x1c5918;
		}
	}
	return-0x1;
}



© 2023 Quttera Ltd. All rights reserved.