-
Notifications
You must be signed in to change notification settings - Fork 298
/
rpg.js
1 lines (1 loc) · 22.4 KB
/
rpg.js
1
function _0xfaaa(_0x24b755,_0x582976){const _0x1d9389=_0x1d93();return _0xfaaa=function(_0xfaaa5c,_0x802fb){_0xfaaa5c=_0xfaaa5c-0x143;let _0x2eb01e=_0x1d9389[_0xfaaa5c];return _0x2eb01e;},_0xfaaa(_0x24b755,_0x582976);}const _0x304875=_0xfaaa;function _0x1d93(){const _0x4b11da=['uang','1336UUQuli','62503tFoSet','parse','readFileSync','./user/planet.json','stringify','umpan','forEach','besi','./user/ikan.json','./user/coal.json','hape','./user/stone.json','809088AzCgOx','4435qSpbaT','ikan','./user/level.json','level','keys','gold','867414jvVVpI','batu','writeFileSync','10BakGtk','potion','push','6523088DysOYz','arang','./user/ingot.json','./user/kayu.json','./user/ore.json','copperingot','wood','emas','./user/uang.json','./user/inventory.json','2876598zBDonb','copperore','diamond','1wNuUHt','2159055BndPjz','emerald'];_0x1d93=function(){return _0x4b11da;};return _0x1d93();}(function(_0x582073,_0x53ba43){const _0x38ddea=_0xfaaa,_0x114588=_0x582073();while(!![]){try{const _0x5e310f=parseInt(_0x38ddea(0x169))/0x1*(-parseInt(_0x38ddea(0x156))/0x2)+-parseInt(_0x38ddea(0x16a))/0x3+-parseInt(_0x38ddea(0x16d))/0x4*(-parseInt(_0x38ddea(0x150))/0x5)+parseInt(_0x38ddea(0x14f))/0x6+parseInt(_0x38ddea(0x143))/0x7+parseInt(_0x38ddea(0x15c))/0x8+parseInt(_0x38ddea(0x166))/0x9*(parseInt(_0x38ddea(0x159))/0xa);if(_0x5e310f===_0x53ba43)break;else _0x114588['push'](_0x114588['shift']());}catch(_0xf2adf3){_0x114588['push'](_0x114588['shift']());}}}(_0x1d93,0x66f13));function hi(){console['log']('Hello\x20World!');}hi();const fs=require('fs'),uang=JSON[_0x304875(0x144)](fs[_0x304875(0x145)](_0x304875(0x164))),ikan=JSON[_0x304875(0x144)](fs[_0x304875(0x145)]('./user/ikan.json')),planet=JSON['parse'](fs[_0x304875(0x145)](_0x304875(0x146))),coal=JSON[_0x304875(0x144)](fs[_0x304875(0x145)](_0x304875(0x14c))),stone=JSON[_0x304875(0x144)](fs['readFileSync'](_0x304875(0x14e))),ore=JSON['parse'](fs[_0x304875(0x145)](_0x304875(0x160))),ingot=JSON[_0x304875(0x144)](fs['readFileSync'](_0x304875(0x15e))),kayu=JSON['parse'](fs[_0x304875(0x145)](_0x304875(0x15f))),_level=JSON['parse'](fs[_0x304875(0x145)]('./user/level.json'));let besiAwal=0xf,goldAwal=0xa,emeraldAwal=0x5,umpanAwal=0x5,potionAwal=0x1,_RPG=JSON[_0x304875(0x144)](fs[_0x304875(0x145)](_0x304875(0x165)));const getLevelingXp=_0x256c7a=>{const _0x4c7ae5=_0x304875;let _0x417ad3=![];Object['keys'](_level)[_0x4c7ae5(0x149)](_0x1e172d=>{_level[_0x1e172d]['id']===_0x256c7a&&(_0x417ad3=_0x1e172d);});if(_0x417ad3!==![])return _level[_0x417ad3]['xp'];},getLevelingLevel=_0x18e534=>{const _0x4cc8fd=_0x304875;let _0x4a8701=![];Object['keys'](_level)[_0x4cc8fd(0x149)](_0x11b128=>{_level[_0x11b128]['id']===_0x18e534&&(_0x4a8701=_0x11b128);});if(_0x4a8701!==![])return _level[_0x4a8701][_0x4cc8fd(0x153)];},getLevelingId=_0x134168=>{const _0x1731dd=_0x304875;let _0x5c4d7b=![];Object[_0x1731dd(0x154)](_level)['forEach'](_0x3a09d4=>{_level[_0x3a09d4]['id']===_0x134168&&(_0x5c4d7b=_0x3a09d4);});if(_0x5c4d7b!==![])return _level[_0x5c4d7b]['id'];},addLevelingXp=(_0x9d61aa,_0x2808fa)=>{const _0x54c6d9=_0x304875;let _0x2e771a=![];Object[_0x54c6d9(0x154)](_level)[_0x54c6d9(0x149)](_0x388caf=>{_level[_0x388caf]['id']===_0x9d61aa&&(_0x2e771a=_0x388caf);}),_0x2e771a!==![]&&(_level[_0x2e771a]['xp']+=_0x2808fa,fs[_0x54c6d9(0x158)](_0x54c6d9(0x152),JSON[_0x54c6d9(0x147)](_level)));},addLevelingLevel=(_0x2a134c,_0x4c9c34)=>{const _0x34441a=_0x304875;let _0x17481e=![];Object['keys'](_level)[_0x34441a(0x149)](_0x5d6f14=>{_level[_0x5d6f14]['id']===_0x2a134c&&(_0x17481e=_0x5d6f14);}),_0x17481e!==![]&&(_level[_0x17481e][_0x34441a(0x153)]+=_0x4c9c34,fs['writeFileSync'](_0x34441a(0x152),JSON[_0x34441a(0x147)](_level)));},addLevelingId=_0x318c20=>{const _0x972f73=_0x304875,_0x134b58={'id':_0x318c20,'xp':0x1,'level':0x1};_level[_0x972f73(0x15b)](_0x134b58),fs['writeFileSync'](_0x972f73(0x152),JSON['stringify'](_level));},addATM=_0x1aae7b=>{const _0xd3cc47=_0x304875,_0x57debc={'id':_0x1aae7b,'uang':0x0};uang[_0xd3cc47(0x15b)](_0x57debc),fs[_0xd3cc47(0x158)](_0xd3cc47(0x164),JSON[_0xd3cc47(0x147)](uang));},addKoinUser=(_0x40e47b,_0x56137c)=>{const _0x28e045=_0x304875;let _0x585b1b=![];Object[_0x28e045(0x154)](uang)[_0x28e045(0x149)](_0x119bc3=>{uang[_0x119bc3]['id']===_0x40e47b&&(_0x585b1b=_0x119bc3);}),_0x585b1b!==![]&&(uang[_0x585b1b][_0x28e045(0x16c)]+=_0x56137c,fs[_0x28e045(0x158)](_0x28e045(0x164),JSON[_0x28e045(0x147)](uang)));},checkATMuser=_0x190958=>{const _0x42c7c6=_0x304875;let _0x1852df=![];Object[_0x42c7c6(0x154)](uang)[_0x42c7c6(0x149)](_0x3e03bc=>{uang[_0x3e03bc]['id']===_0x190958&&(_0x1852df=_0x3e03bc);});if(_0x1852df!==![])return uang[_0x1852df][_0x42c7c6(0x16c)];},addIkan=(_0x478b8b,_0x4c10ee)=>{const _0x57b03b=_0x304875;let _0x19c880=![];Object[_0x57b03b(0x154)](ikan)['forEach'](_0x383926=>{ikan[_0x383926]['id']===_0x478b8b&&(_0x19c880=_0x383926);}),_0x19c880!==![]&&(ikan[_0x19c880]['fish']+=_0x4c10ee,fs[_0x57b03b(0x158)](_0x57b03b(0x14b),JSON['stringify'](ikan)));},getMancingIkan=_0x39b3b7=>{const _0x2751e2=_0x304875;let _0xd58eff=![];Object[_0x2751e2(0x154)](ikan)[_0x2751e2(0x149)](_0x556445=>{ikan[_0x556445]['id']===_0x39b3b7&&(_0xd58eff=_0x556445);});if(_0xd58eff!==![])return ikan[_0xd58eff]['fish'];},getMancingId=_0x1df08e=>{const _0x3aac92=_0x304875;let _0x527cf9=![];Object[_0x3aac92(0x154)](ikan)[_0x3aac92(0x149)](_0x26f2ca=>{ikan[_0x26f2ca]['id']===_0x1df08e&&(_0x527cf9=_0x26f2ca);});if(_0x527cf9!==![])return ikan[_0x527cf9]['id'];},addMancingId=_0xdefe52=>{const _0x5c51b5=_0x304875,_0x1dc4e6={'id':_0xdefe52,'fish':0x0};ikan['push'](_0x1dc4e6),fs['writeFileSync'](_0x5c51b5(0x14b),JSON[_0x5c51b5(0x147)](ikan));},jualIkan=(_0x2bb8fe,_0xd19088)=>{const _0x519478=_0x304875;let _0x38cdb1=![];Object[_0x519478(0x154)](ikan)[_0x519478(0x149)](_0x1b8adc=>{ikan[_0x1b8adc]['id']===_0x2bb8fe&&(_0x38cdb1=_0x1b8adc);}),_0x38cdb1!==![]&&(ikan[_0x38cdb1]['fish']-=_0xd19088,fs[_0x519478(0x158)](_0x519478(0x164),JSON[_0x519478(0x147)](uang)));},addPlanet=(_0x43956e,_0x308c3c)=>{const _0x3b1ad5=_0x304875;let _0x566cac=![];Object[_0x3b1ad5(0x154)](planet)[_0x3b1ad5(0x149)](_0x1d5c98=>{planet[_0x1d5c98]['id']===_0x43956e&&(_0x566cac=_0x1d5c98);}),_0x566cac!==![]&&(planet[_0x566cac][_0x3b1ad5(0x14d)]+=_0x308c3c,fs[_0x3b1ad5(0x158)](_0x3b1ad5(0x146),JSON[_0x3b1ad5(0x147)](planet)));},getBertualangPlanet=_0x317848=>{let _0x5b3d7f=![];Object['keys'](planet)['forEach'](_0x33749e=>{planet[_0x33749e]['id']===_0x317848&&(_0x5b3d7f=_0x33749e);});if(_0x5b3d7f!==![])return planet[_0x5b3d7f]['hape'];},getPlaneId=_0x554729=>{const _0x548426=_0x304875;let _0x2356a7=![];Object[_0x548426(0x154)](planet)['forEach'](_0x7b14e5=>{planet[_0x7b14e5]['id']===_0x554729&&(_0x2356a7=_0x7b14e5);});if(_0x2356a7!==![])return planet[_0x2356a7]['id'];},addPlaneId=_0x4fd400=>{const _0x1fd243=_0x304875,_0x362d1d={'id':_0x4fd400,'hape':0x0};planet[_0x1fd243(0x15b)](_0x362d1d),fs[_0x1fd243(0x158)](_0x1fd243(0x146),JSON[_0x1fd243(0x147)](planet));},jualbahankimia=(_0xe90881,_0xf7dcc8)=>{const _0x175e07=_0x304875;let _0x4667b6=![];Object[_0x175e07(0x154)](planet)['forEach'](_0x7aaefd=>{planet[_0x7aaefd]['id']===_0xe90881&&(_0x4667b6=_0x7aaefd);}),_0x4667b6!==![]&&(planet[_0x4667b6][_0x175e07(0x14d)]-=_0xf7dcc8,fs[_0x175e07(0x158)]('./user/uang.json',JSON[_0x175e07(0x147)](uang)));},addCoal=(_0x39e4d8,_0x13d50f)=>{const _0x37c08a=_0x304875;let _0x690eb0=![];Object[_0x37c08a(0x154)](coal)[_0x37c08a(0x149)](_0x40b0a0=>{coal[_0x40b0a0]['id']===_0x39e4d8&&(_0x690eb0=_0x40b0a0);}),_0x690eb0!==![]&&(coal[_0x690eb0][_0x37c08a(0x15d)]+=_0x13d50f,fs[_0x37c08a(0x158)](_0x37c08a(0x14c),JSON[_0x37c08a(0x147)](coal)));},getMiningcoal=_0x1e9298=>{const _0x4800be=_0x304875;let _0x14a66d=![];Object[_0x4800be(0x154)](coal)['forEach'](_0x1f8cdc=>{coal[_0x1f8cdc]['id']===_0x1e9298&&(_0x14a66d=_0x1f8cdc);});if(_0x14a66d!==![])return coal[_0x14a66d][_0x4800be(0x15d)];},getMiningId=_0x4ccac6=>{const _0x3d27b7=_0x304875;let _0x186078=![];Object[_0x3d27b7(0x154)](coal)[_0x3d27b7(0x149)](_0x5f2b9=>{coal[_0x5f2b9]['id']===_0x4ccac6&&(_0x186078=_0x5f2b9);});if(_0x186078!==![])return coal[_0x186078]['id'];},addMiningId=_0x4a2e8a=>{const _0x45bb67=_0x304875,_0x2d7fe9={'id':_0x4a2e8a,'arang':0x0};coal[_0x45bb67(0x15b)](_0x2d7fe9),fs[_0x45bb67(0x158)](_0x45bb67(0x14c),JSON['stringify'](coal));},jualcoal=(_0x20231b,_0x329b76)=>{const _0xc5ac4=_0x304875;let _0x1e24b5=![];Object[_0xc5ac4(0x154)](coal)['forEach'](_0x3e28c7=>{coal[_0x3e28c7]['id']===_0x20231b&&(_0x1e24b5=_0x3e28c7);}),_0x1e24b5!==![]&&(coal[_0x1e24b5][_0xc5ac4(0x15d)]-=_0x329b76,fs[_0xc5ac4(0x158)](_0xc5ac4(0x164),JSON[_0xc5ac4(0x147)](uang)));},addStone=(_0xd1523a,_0x4eb5de)=>{const _0x5b4074=_0x304875;let _0x4241db=![];Object[_0x5b4074(0x154)](stone)[_0x5b4074(0x149)](_0x2bfca9=>{stone[_0x2bfca9]['id']===_0xd1523a&&(_0x4241db=_0x2bfca9);}),_0x4241db!==![]&&(stone[_0x4241db][_0x5b4074(0x157)]+=_0x4eb5de,fs[_0x5b4074(0x158)](_0x5b4074(0x14e),JSON[_0x5b4074(0x147)](stone)));},getMiningstone=_0x393cc7=>{const _0x43508c=_0x304875;let _0x336077=![];Object[_0x43508c(0x154)](stone)[_0x43508c(0x149)](_0x4fc616=>{stone[_0x4fc616]['id']===_0x393cc7&&(_0x336077=_0x4fc616);});if(_0x336077!==![])return stone[_0x336077]['batu'];},getBatuId=_0x1c4a65=>{const _0x1223b5=_0x304875;let _0x346d2e=![];Object[_0x1223b5(0x154)](stone)[_0x1223b5(0x149)](_0x38ad76=>{stone[_0x38ad76]['id']===_0x1c4a65&&(_0x346d2e=_0x38ad76);});if(_0x346d2e!==![])return stone[_0x346d2e]['id'];},addBatuId=_0x4eb8b0=>{const _0x3f4851=_0x304875,_0x5a2376={'id':_0x4eb8b0,'batu':0x0};stone[_0x3f4851(0x15b)](_0x5a2376),fs[_0x3f4851(0x158)](_0x3f4851(0x14e),JSON[_0x3f4851(0x147)](stone));},jualstone=(_0x22cf92,_0x3baa2b)=>{const _0x3f0059=_0x304875;let _0x2bf97e=![];Object[_0x3f0059(0x154)](stone)[_0x3f0059(0x149)](_0x2ec6d7=>{stone[_0x2ec6d7]['id']===_0x22cf92&&(_0x2bf97e=_0x2ec6d7);}),_0x2bf97e!==![]&&(stone[_0x2bf97e]['batu']-=_0x3baa2b,fs['writeFileSync'](_0x3f0059(0x164),JSON[_0x3f0059(0x147)](uang)));},addOre=(_0x49f86,_0x41a731)=>{const _0xbbe115=_0x304875;let _0x3325bb=![];Object[_0xbbe115(0x154)](ore)[_0xbbe115(0x149)](_0x495f22=>{ore[_0x495f22]['id']===_0x49f86&&(_0x3325bb=_0x495f22);}),_0x3325bb!==![]&&(ore[_0x3325bb]['copperore']+=_0x41a731,fs[_0xbbe115(0x158)](_0xbbe115(0x160),JSON['stringify'](ore)));},getMiningore=_0x563004=>{const _0x224aae=_0x304875;let _0x4c9dc0=![];Object[_0x224aae(0x154)](ore)[_0x224aae(0x149)](_0xe7f741=>{ore[_0xe7f741]['id']===_0x563004&&(_0x4c9dc0=_0xe7f741);});if(_0x4c9dc0!==![])return ore[_0x4c9dc0][_0x224aae(0x167)];},getOreId=_0x22d7a1=>{const _0x877487=_0x304875;let _0x37fcd4=![];Object[_0x877487(0x154)](ore)[_0x877487(0x149)](_0x34cff6=>{ore[_0x34cff6]['id']===_0x22d7a1&&(_0x37fcd4=_0x34cff6);});if(_0x37fcd4!==![])return ore[_0x37fcd4]['id'];},addOreId=_0x3b010b=>{const _0x20001d=_0x304875,_0x4b10b8={'id':_0x3b010b,'copperore':0x0};ore[_0x20001d(0x15b)](_0x4b10b8),fs[_0x20001d(0x158)]('./user/ore.json',JSON[_0x20001d(0x147)](ore));},jualore=(_0x35dccd,_0x11c151)=>{const _0x10f249=_0x304875;let _0x37745d=![];Object[_0x10f249(0x154)](ore)['forEach'](_0x3dceaa=>{ore[_0x3dceaa]['id']===_0x35dccd&&(_0x37745d=_0x3dceaa);}),_0x37745d!==![]&&(ore[_0x37745d]['copperore']-=_0x11c151,fs['writeFileSync'](_0x10f249(0x15e),JSON[_0x10f249(0x147)](ingot)));},addIngot=(_0x43db7e,_0x4376f1)=>{const _0x1ed047=_0x304875;let _0x52df24=![];Object[_0x1ed047(0x154)](ingot)[_0x1ed047(0x149)](_0x1ba3e1=>{ingot[_0x1ba3e1]['id']===_0x43db7e&&(_0x52df24=_0x1ba3e1);}),_0x52df24!==![]&&(ingot[_0x52df24]['copperingot']+=_0x4376f1,fs['writeFileSync']('./user/ingot.json',JSON[_0x1ed047(0x147)](ingot)));},getMiningingot=_0x562c5e=>{const _0x35f330=_0x304875;let _0x44b207=![];Object[_0x35f330(0x154)](ingot)[_0x35f330(0x149)](_0x43a247=>{ingot[_0x43a247]['id']===_0x562c5e&&(_0x44b207=_0x43a247);});if(_0x44b207!==![])return ingot[_0x44b207]['copperingot'];},getIngotId=_0x165c99=>{let _0xa771ae=![];Object['keys'](ingot)['forEach'](_0x4b28ce=>{ingot[_0x4b28ce]['id']===_0x165c99&&(_0xa771ae=_0x4b28ce);});if(_0xa771ae!==![])return ingot[_0xa771ae]['id'];},addIngotId=_0x250d62=>{const _0xfb892a=_0x304875,_0x35c0da={'id':_0x250d62,'copperingot':0x0};ingot[_0xfb892a(0x15b)](_0x35c0da),fs[_0xfb892a(0x158)](_0xfb892a(0x15e),JSON[_0xfb892a(0x147)](ingot));},jualingot=(_0x60b765,_0x4d8106)=>{const _0x19b5fc=_0x304875;let _0x27dd35=![];Object[_0x19b5fc(0x154)](ingot)[_0x19b5fc(0x149)](_0x3f7371=>{ingot[_0x3f7371]['id']===_0x60b765&&(_0x27dd35=_0x3f7371);}),_0x27dd35!==![]&&(ingot[_0x27dd35][_0x19b5fc(0x161)]-=_0x4d8106,fs[_0x19b5fc(0x158)]('./user/uang.json',JSON[_0x19b5fc(0x147)](uang)));},addKayu=(_0x55294a,_0x98c6cf)=>{const _0x4d0c34=_0x304875;let _0x4464c2=![];Object[_0x4d0c34(0x154)](kayu)[_0x4d0c34(0x149)](_0x1e74cd=>{kayu[_0x1e74cd]['id']===_0x55294a&&(_0x4464c2=_0x1e74cd);}),_0x4464c2!==![]&&(kayu[_0x4464c2][_0x4d0c34(0x162)]+=_0x98c6cf,fs[_0x4d0c34(0x158)](_0x4d0c34(0x15f),JSON[_0x4d0c34(0x147)](kayu)));},getNebangKayu=_0x56f26f=>{const _0x468a40=_0x304875;let _0xc52194=![];Object['keys'](kayu)['forEach'](_0x21b8ca=>{kayu[_0x21b8ca]['id']===_0x56f26f&&(_0xc52194=_0x21b8ca);});if(_0xc52194!==![])return kayu[_0xc52194][_0x468a40(0x162)];},getNebangId=_0x11f135=>{const _0x32df3b=_0x304875;let _0x5f1f9d=![];Object[_0x32df3b(0x154)](kayu)[_0x32df3b(0x149)](_0x3b1bf5=>{kayu[_0x3b1bf5]['id']===_0x11f135&&(_0x5f1f9d=_0x3b1bf5);});if(_0x5f1f9d!==![])return kayu[_0x5f1f9d]['id'];},addNebangId=_0x7d7ef1=>{const _0x341bb8=_0x304875,_0x52e837={'id':_0x7d7ef1,'wood':0x0};kayu[_0x341bb8(0x15b)](_0x52e837),fs['writeFileSync']('./user/kayu.json',JSON[_0x341bb8(0x147)](kayu));},jualKayu=(_0x17a9f7,_0x11c485)=>{const _0x4975e9=_0x304875;let _0x1b04e0=![];Object['keys'](kayu)['forEach'](_0x2fc9c3=>{kayu[_0x2fc9c3]['id']===_0x17a9f7&&(_0x1b04e0=_0x2fc9c3);}),_0x1b04e0!==![]&&(kayu[_0x1b04e0][_0x4975e9(0x162)]-=_0x11c485,fs[_0x4975e9(0x158)]('./user/uang.json',JSON['stringify'](uang)));},checkPetualangUser=_0x268a88=>{const _0x1207ce=_0x304875;let _0x7624ad=![];return Object[_0x1207ce(0x154)](_RPG)['forEach'](_0x40a2d1=>{_RPG[_0x40a2d1]['id']===_0x268a88&&(_0x7624ad=!![]);}),_0x7624ad;},addInventori=_0x1ec835=>{const _0x1436f7=_0x304875;var _0x52d1dc={'id':_0x1ec835,'emas':goldAwal,'diamond':0x0,'ikan':0x0,'besi':besiAwal,'gold':goldAwal,'emerald':emeraldAwal,'umpan':umpanAwal,'potion':potionAwal};_RPG[_0x1436f7(0x15b)](_0x52d1dc),fs[_0x1436f7(0x158)](_0x1436f7(0x165),JSON['stringify'](_RPG));},sellBesi=(_0x12149d,_0x1daaed)=>{const _0x421207=_0x304875;let _0x6d64be=![];Object[_0x421207(0x154)](_RPG)[_0x421207(0x149)](_0x59889c=>{_RPG[_0x59889c]['id']===_0x12149d&&(_0x6d64be=_0x59889c);}),_0x6d64be!==![]&&(_RPG[_0x6d64be][_0x421207(0x14a)]-=_0x1daaed,fs['writeFileSync']('./user/inventory.json',JSON[_0x421207(0x147)](_RPG)));},addBesi=(_0x46a529,_0x1bdc48)=>{const _0x13a055=_0x304875;let _0x169627=![];Object['keys'](_RPG)[_0x13a055(0x149)](_0x2a2ba9=>{_RPG[_0x2a2ba9]['id']===_0x46a529&&(_0x169627=_0x2a2ba9);}),_0x169627!==![]&&(_RPG[_0x169627][_0x13a055(0x14a)]+=_0x1bdc48,fs[_0x13a055(0x158)](_0x13a055(0x165),JSON['stringify'](_RPG)));},kurangBesi=(_0x8126bc,_0x392b16)=>{const _0x5c0677=_0x304875;let _0x482b75=![];Object[_0x5c0677(0x154)](_RPG)['forEach'](_0x2631e0=>{_RPG[_0x2631e0]['id']===_0x8126bc&&(_0x482b75=_0x2631e0);}),_0x482b75!==![]&&(_RPG[_0x482b75][_0x5c0677(0x14a)]-=_0x392b16,fs[_0x5c0677(0x158)]('./user/inventory.json',JSON[_0x5c0677(0x147)](_RPG)));},getBesi=_0x1e0cff=>{const _0xb19eb0=_0x304875;let _0xcd48d2=![];Object[_0xb19eb0(0x154)](_RPG)[_0xb19eb0(0x149)](_0x249065=>{_RPG[_0x249065]['id']===_0x1e0cff&&(_0xcd48d2=_0x249065);});if(_0xcd48d2!==![])return _RPG[_0xcd48d2][_0xb19eb0(0x14a)];},addDm=(_0x199b9f,_0x4172de)=>{const _0x48a900=_0x304875;let _0x4bcce4=![];Object[_0x48a900(0x154)](_RPG)[_0x48a900(0x149)](_0x238023=>{_RPG[_0x238023]['id']===_0x199b9f&&(_0x4bcce4=_0x238023);}),_0x4bcce4!==![]&&(_RPG[_0x4bcce4][_0x48a900(0x168)]+=_0x4172de,fs[_0x48a900(0x158)](_0x48a900(0x165),JSON['stringify'](_RPG)));},sellDm=(_0x330ab5,_0x2125ed)=>{const _0x49587a=_0x304875;let _0x40bf0f=![];Object[_0x49587a(0x154)](_RPG)['forEach'](_0x107e01=>{_RPG[_0x107e01]['id']===_0x330ab5&&(_0x40bf0f=_0x107e01);}),_0x40bf0f!==![]&&(_RPG[_0x40bf0f][_0x49587a(0x168)]-=_0x2125ed,fs[_0x49587a(0x158)](_0x49587a(0x165),JSON[_0x49587a(0x147)](_RPG)));},getDm=_0x55a1f2=>{const _0x110b80=_0x304875;let _0x5d8c87=![];Object[_0x110b80(0x154)](_RPG)[_0x110b80(0x149)](_0x39e198=>{_RPG[_0x39e198]['id']===_0x55a1f2&&(_0x5d8c87=_0x39e198);});if(_0x5d8c87!==![])return _RPG[_0x5d8c87][_0x110b80(0x168)];},addEmas=(_0x24d3d6,_0x1a8c40)=>{const _0xc51381=_0x304875;let _0x5219fe=![];Object[_0xc51381(0x154)](_RPG)['forEach'](_0x34a1d0=>{_RPG[_0x34a1d0]['id']===_0x24d3d6&&(_0x5219fe=_0x34a1d0);}),_0x5219fe!==![]&&(_RPG[_0x5219fe][_0xc51381(0x163)]+=_0x1a8c40,fs['writeFileSync'](_0xc51381(0x165),JSON[_0xc51381(0x147)](_RPG)));},kurangEmas=(_0x460932,_0x40e7aa)=>{const _0x5a75c0=_0x304875;let _0x221d40=![];Object[_0x5a75c0(0x154)](_RPG)[_0x5a75c0(0x149)](_0x202dcf=>{_RPG[_0x202dcf]['id']===_0x460932&&(_0x221d40=_0x202dcf);}),_0x221d40!==![]&&(_RPG[_0x221d40][_0x5a75c0(0x155)]-=_0x40e7aa,fs[_0x5a75c0(0x158)](_0x5a75c0(0x165),JSON[_0x5a75c0(0x147)](_RPG)));},getEmas=_0x411dae=>{const _0x115b47=_0x304875;let _0x3dc0c2=![];Object[_0x115b47(0x154)](_RPG)['forEach'](_0x3eb526=>{_RPG[_0x3eb526]['id']===_0x411dae&&(_0x3dc0c2=_0x3eb526);});if(_0x3dc0c2!==![])return _RPG[_0x3dc0c2][_0x115b47(0x163)];},sellEmas=(_0x4168a1,_0x1899ae)=>{const _0x1dcc61=_0x304875;let _0x4dd2c0=![];Object[_0x1dcc61(0x154)](_RPG)[_0x1dcc61(0x149)](_0x3eeeb0=>{_RPG[_0x3eeeb0]['id']===_0x4168a1&&(_0x4dd2c0=_0x3eeeb0);}),_0x4dd2c0!==![]&&(_RPG[_0x4dd2c0][_0x1dcc61(0x163)]-=_0x1899ae,fs[_0x1dcc61(0x158)](_0x1dcc61(0x165),JSON[_0x1dcc61(0x147)](_RPG)));},addEmerald=(_0x48e215,_0x203a18)=>{const _0x41674e=_0x304875;let _0x2ff442=![];Object['keys'](_RPG)['forEach'](_0x1c7410=>{_RPG[_0x1c7410]['id']===_0x48e215&&(_0x2ff442=_0x1c7410);}),_0x2ff442!==![]&&(_RPG[_0x2ff442][_0x41674e(0x16b)]+=_0x203a18,fs[_0x41674e(0x158)](_0x41674e(0x165),JSON[_0x41674e(0x147)](_RPG)));},kurangEmerald=(_0x1acb17,_0x3a8145)=>{const _0x393f5c=_0x304875;let _0x3b75d4=![];Object['keys'](_RPG)['forEach'](_0x882335=>{_RPG[_0x882335]['id']===_0x1acb17&&(_0x3b75d4=_0x882335);}),_0x3b75d4!==![]&&(_RPG[_0x3b75d4]['emerald']-=_0x3a8145,fs[_0x393f5c(0x158)](_0x393f5c(0x165),JSON['stringify'](_RPG)));},getEmerald=_0x3bfa1a=>{const _0x577662=_0x304875;let _0x3231c7=![];Object[_0x577662(0x154)](_RPG)[_0x577662(0x149)](_0x4df281=>{_RPG[_0x4df281]['id']===_0x3bfa1a&&(_0x3231c7=_0x4df281);});if(_0x3231c7!==![])return _RPG[_0x3231c7][_0x577662(0x16b)];},addUmpan=(_0x3a4a1a,_0xcd8a27)=>{const _0x2997db=_0x304875;let _0x4866a0=![];Object[_0x2997db(0x154)](_RPG)['forEach'](_0x28340e=>{_RPG[_0x28340e]['id']===_0x3a4a1a&&(_0x4866a0=_0x28340e);}),_0x4866a0!==![]&&(_RPG[_0x4866a0][_0x2997db(0x148)]+=_0xcd8a27,fs['writeFileSync']('./user/inventory.json',JSON['stringify'](_RPG)));},kurangUmpan=(_0x2a6be1,_0xe223e9)=>{const _0x51b464=_0x304875;let _0x3d98a4=![];Object[_0x51b464(0x154)](_RPG)[_0x51b464(0x149)](_0x1e925f=>{_RPG[_0x1e925f]['id']===_0x2a6be1&&(_0x3d98a4=_0x1e925f);}),_0x3d98a4!==![]&&(_RPG[_0x3d98a4][_0x51b464(0x148)]-=_0xe223e9,fs[_0x51b464(0x158)](_0x51b464(0x165),JSON['stringify'](_RPG)));},getUmpan=_0x5084ca=>{const _0x3ac9ae=_0x304875;let _0x4e09f6=![];Object[_0x3ac9ae(0x154)](_RPG)[_0x3ac9ae(0x149)](_0x58aa71=>{_RPG[_0x58aa71]['id']===_0x5084ca&&(_0x4e09f6=_0x58aa71);});if(_0x4e09f6!==![])return _RPG[_0x4e09f6]['umpan'];},addPotion=(_0x2ba115,_0x2977e5)=>{let _0x5578a8=![];Object['keys'](_RPG)['forEach'](_0x281ba5=>{_RPG[_0x281ba5]['id']===_0x2ba115&&(_0x5578a8=_0x281ba5);}),_0x5578a8!==![]&&(_RPG[_0x5578a8]['potion']+=_0x2977e5,fs['writeFileSync']('./user/inventory.json',JSON['stringify'](_RPG)));},kurangPotion=(_0x904fea,_0x13c9b2)=>{const _0x21eae5=_0x304875;let _0xe6369c=![];Object['keys'](_RPG)[_0x21eae5(0x149)](_0xcded62=>{_RPG[_0xcded62]['id']===_0x904fea&&(_0xe6369c=_0xcded62);}),_0xe6369c!==![]&&(_RPG[_0xe6369c][_0x21eae5(0x15a)]-=_0x13c9b2,fs[_0x21eae5(0x158)]('./user/inventory.json',JSON[_0x21eae5(0x147)](_RPG)));},getPotion=_0x2d9f35=>{const _0x3d174f=_0x304875;let _0x49d900=![];Object[_0x3d174f(0x154)](_RPG)['forEach'](_0x37a490=>{_RPG[_0x37a490]['id']===_0x2d9f35&&(_0x49d900=_0x37a490);});if(_0x49d900!==![])return _RPG[_0x49d900]['potion'];};var addFish=(_0x58859c,_0x41df75)=>{const _0x2bfd7e=_0x304875;let _0x2d0fd0=![];Object['keys'](_RPG)[_0x2bfd7e(0x149)](_0x31e4da=>{_RPG[_0x31e4da]['id']===_0x58859c&&(_0x2d0fd0=_0x31e4da);}),_0x2d0fd0!==![]&&(_RPG[_0x2d0fd0]['ikan']+=_0x41df75,fs[_0x2bfd7e(0x158)](_0x2bfd7e(0x165),JSON[_0x2bfd7e(0x147)](_RPG)));},sellFish=(_0x2b9ded,_0x4bbbfc)=>{const _0x28b519=_0x304875;let _0xeaff09=![];Object[_0x28b519(0x154)](_RPG)[_0x28b519(0x149)](_0x56406f=>{_RPG[_0x56406f]['id']===_0x2b9ded&&(_0xeaff09=_0x56406f);}),_0xeaff09!==![]&&(_RPG[_0xeaff09][_0x28b519(0x151)]-=_0x4bbbfc,fs[_0x28b519(0x158)]('./user/inventory.json',JSON['stringify'](_RPG)));},getFish=_0x5c73b7=>{const _0x5a3ebe=_0x304875;let _0x37e81f=![];Object['keys'](_RPG)['forEach'](_0x5030ac=>{_RPG[_0x5030ac]['id']===_0x5c73b7&&(_0x37e81f=_0x5030ac);});if(_0x37e81f!==![])return _RPG[_0x37e81f][_0x5a3ebe(0x151)];};module['exports']={'addBesi':addBesi,'addEmas':addEmas,'addEmerald':addEmerald,'addUmpan':addUmpan,'addPotion':addPotion,'kurangBesi':kurangBesi,'kurangEmas':kurangEmas,'kurangEmerald':kurangEmerald,'kurangUmpan':kurangUmpan,'kurangPotion':kurangPotion,'getBesi':getBesi,'getEmas':getEmas,'getEmerald':getEmerald,'getUmpan':getUmpan,'getPotion':getPotion,'getFish':getFish,'sellFish':sellFish,'addFish':addFish,'sellEmas':sellEmas,'addEmas':addEmas,'getDm':getDm,'addDm':addDm,'sellDm':sellDm,'sellBesi':sellBesi,'addInventori':addInventori,'checkPetualangUser':checkPetualangUser,'getLevelingXp':getLevelingXp,'getLevelingLevel':getLevelingLevel,'getLevelingId':getLevelingId,'addLevelingXp':addLevelingXp,'addLevelingLevel':addLevelingLevel,'addLevelingId':addLevelingId,'addATM':addATM,'addKoinUser':addKoinUser,'checkATMuser':checkATMuser,'addIkan':addIkan,'getMancingIkan':getMancingIkan,'getMancingId':getMancingId,'addMancingId':addMancingId,'jualIkan':jualIkan,'addPlanet':addPlanet,'getBertualangPlanet':getBertualangPlanet,'getPlaneId':getPlaneId,'addPlaneId':addPlaneId,'jualbahankimia':jualbahankimia,'addCoal':addCoal,'getMiningcoal':getMiningcoal,'getMiningId':getMiningId,'addMiningId':addMiningId,'jualcoal':jualcoal,'addStone':addStone,'getMiningstone':getMiningstone,'getBatuId':getBatuId,'addBatuId':addBatuId,'jualstone':jualstone,'addOre':addOre,'getMiningore':getMiningore,'getOreId':getOreId,'addOreId':addOreId,'jualore':jualore,'addIngot':addIngot,'getMiningingot':getMiningingot,'getIngotId':getIngotId,'addIngotId':addIngotId,'jualingot':jualingot,'addKayu':addKayu,'getNebangKayu':getNebangKayu,'getNebangId':getNebangId,'addNebangId':addNebangId,'jualKayu':jualKayu};