Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //...........................................................................................................................
- //...SSSSSSS.........................iiii...........llll..... IIII...........llll............................dddd............
- //..SSSSSSSSS........................iiii...........llll..... IIII...........llll............................dddd............
- //..SSSSSSSSSS......................................llll..... IIII...........llll............................dddd............
- //.SSSSS..SSSS....oooooo....cccccc...iiii..aaaaaa...llll..... IIII.sssssss...llll..aaaaaa...nnnnnnnn....ddddddddd.sssssss....
- //.SSSSS........ooooooooo..cccccccc..iiii.aaaaaaaa..llll..... IIIIIssssssss..llll.aaaaaaaa..nnnnnnnnn..dddddddddddssssssss...
- //..SSSSSSS.....oooo.oooooocccc.cccc.iiiiiaaa.aaaaa.llll..... IIIIIsss.ssss..lllllaaa.aaaaa.nnnn.nnnnnndddd.ddddddsss.ssss...
- //...SSSSSSSSS.Sooo...oooooccc..ccc..iiii....aaaaaa.llll..... IIIIIssss......llll....aaaaaa.nnnn..nnnnnddd...dddddssss.......
- //.....SSSSSSS.Sooo...oooooccc.......iiii.aaaaaaaaa.llll..... IIII.ssssss....llll.aaaaaaaaa.nnnn..nnnnnddd...dddd.ssssss.....
- //........SSSSSSooo...oooooccc.......iiiiiaaaaaaaaa.llll..... IIII..sssssss..lllllaaaaaaaaa.nnnn..nnnnnddd...dddd..sssssss...
- //.SSSS....SSSSSooo...oooooccc..ccc..iiiiiaaa.aaaaa.llll..... IIII......ssss.lllllaaa.aaaaa.nnnn..nnnnnddd...dddd......ssss..
- //.SSSSSSSSSSSS.oooo.oooooocccc.cccc.iiiiiaaa.aaaaa.llll..... IIIIIsss..ssss.lllllaaa.aaaaa.nnnn..nnnnndddd.ddddddsss..ssss..
- //..SSSSSSSSSS..ooooooooo..ccccccccc.iiiiiaaaaaaaaa.llll..... IIIIIssssssss..lllllaaaaaaaaa.nnnn..nnnn.dddddddddddssssssss...
- //...SSSSSSSS.....oooooo....cccccc...iiii.aaaaaaaaa.llll..... IIII..ssssss...llll.aaaaaaaaa.nnnn..nnnn..ddddddddd..ssssss....
- //...........................................................................................................................
- /*
- Howdy yall, Welcome to the 2nd engineering test!
- the rules are the same as last test. I recommend for this test you try it in the built in browser console to make life easier.
- This time the script is hidden so you will have to figure out classes and their methods yourselves and look for the already instantiated objects
- Good luck! (Ofcourse there are major security flaws in the classes that you do not need to worry about)
- 1. Make all players join chess
- 2. Make the island chess show all chat messages
- 3. Kill a player (that is not admin)
- 4. Respawn that player
- 5. Ban that player (using an admin)
- 6. Make the remaining 2 players leave chess and join the private server "Developing"
- 7. Create another player, make him join the private server "Developing" and make him try to ban the admin
- 8. Now your done! :D send to me !Kwame#0246
- */
- var _0x3be4=['toString','substring','players','acceptConnection','push','log','username','\x20Has\x20joined\x20','\x20Has\x20failed\x20to\x20join\x20','removeConnection','\x20Has\x20left\x20','kill','health','\x20has\x20been\x20killed','respawn','length','talk','member','playerx','playery','banned','ban','admin','\x20Has\x20banned\x20','\x20Is\x20not\x20a\x20member\x20of\x20staff\x20','\x20Said\x20','Kwame','haxxor','Dave','Play\x20Chess\x20with\x20anyone','Develope\x20Server','k3y','Medieval\x20Roleplay','Create\x20your\x20house\x20and\x20start\x20roleplaying!','name','Untitled','description','No\x20Description','playercount','maxplayercount','locked','password','random'];(function(_0x5f1648,_0x5abfa6){var _0x4c7f59=function(_0x4f21c8){while(--_0x4f21c8){_0x5f1648['push'](_0x5f1648['shift']());}};_0x4c7f59(++_0x5abfa6);}(_0x3be4,0x1d0));var _0x52aa=function(_0x440dce,_0x1626df){_0x440dce=_0x440dce-0x0;var _0x2d7ac1=_0x3be4[_0x440dce];return _0x2d7ac1;};var MasterServer=[];class Island{constructor(_0x5a286b,_0x55707b,_0x5bb084,_0xfab9cc,_0x2e9c42){this[_0x52aa('0x0')]=_0x5a286b||_0x52aa('0x1');this[_0x52aa('0x2')]=_0x55707b||_0x52aa('0x3');this[_0x52aa('0x4')]=0x0;this[_0x52aa('0x5')]=_0x5bb084||0xa;this[_0x52aa('0x6')]=_0xfab9cc||![];this[_0x52aa('0x7')]=_0x2e9c42||null;this['id']=Math[_0x52aa('0x8')]()[_0x52aa('0x9')](0x24)[_0x52aa('0xa')](0x2,0xf)+Math[_0x52aa('0x8')]()['toString'](0x24)['substring'](0x2,0xf);this[_0x52aa('0xb')]=[];}[_0x52aa('0xc')](_0x4ba93d){this[_0x52aa('0xb')][_0x52aa('0xd')](_0x4ba93d);this[_0x52aa('0x4')]++;return console[_0x52aa('0xe')](_0x4ba93d[_0x52aa('0xf')]+_0x52aa('0x10')+this[_0x52aa('0x0')]);}['acceptPrivateConnection'](_0x5c2bd0,_0x56a52e){if(_0x56a52e==this[_0x52aa('0x7')]){this[_0x52aa('0xb')][_0x52aa('0xd')](_0x5c2bd0);this[_0x52aa('0x4')]++;return console[_0x52aa('0xe')](_0x5c2bd0[_0x52aa('0xf')]+'\x20Has\x20joined\x20'+this[_0x52aa('0x0')]);}else{return console[_0x52aa('0xe')](_0x5c2bd0[_0x52aa('0xf')]+_0x52aa('0x11')+this[_0x52aa('0x0')]);}}[_0x52aa('0x12')](_0x5862f4){this[_0x52aa('0xb')]['pop'](_0x5862f4);this[_0x52aa('0x4')]--;return console['log'](_0x5862f4[_0x52aa('0xf')]+_0x52aa('0x13')+this[_0x52aa('0x0')]);}[_0x52aa('0x14')](_0x46f1f7){_0x46f1f7[_0x52aa('0x15')]=0x0;return console[_0x52aa('0xe')](_0x46f1f7[_0x52aa('0xf')]+_0x52aa('0x16'));}[_0x52aa('0x17')](_0x436af1){_0x436af1['health']=0x64;return console[_0x52aa('0xe')](_0x436af1[_0x52aa('0xf')]+'\x20has\x20been\x20respawned');}['getPlayerMessages'](){for(var _0x5eb002=0x0;_0x5eb002<this[_0x52aa('0xb')][_0x52aa('0x18')];_0x5eb002++){this['players'][_0x5eb002][_0x52aa('0x19')]();}}}class Player{constructor(_0x445dfb,_0x1a07dc,_0x17cfb2,_0x394a97,_0x5a2b64,_0x2569d6){this[_0x52aa('0xf')]=_0x445dfb;this['power']=_0x1a07dc||_0x52aa('0x1a');this[_0x52aa('0x1b')]=_0x17cfb2||0x0;this[_0x52aa('0x1c')]=_0x394a97||0x0;this[_0x52aa('0x1d')]=_0x5a2b64||![];this['health']=_0x2569d6||0x64;}[_0x52aa('0x1e')](_0x18f5f0){if(this['power']==_0x52aa('0x1f')){_0x18f5f0['banned']=!![];return console[_0x52aa('0xe')](this[_0x52aa('0xf')]+_0x52aa('0x20')+_0x18f5f0[_0x52aa('0xf')]);}else{return console['log'](this['username']+_0x52aa('0x21'));}}[_0x52aa('0x19')](){return console['log'](this[_0x52aa('0xf')]+_0x52aa('0x22')+Math[_0x52aa('0x8')]()[_0x52aa('0x9')](0x24)[_0x52aa('0xa')](0x2,0xf)+Math[_0x52aa('0x8')]()[_0x52aa('0x9')](0x24)[_0x52aa('0xa')](0x2,0xf));}}var Player1=new Player(_0x52aa('0x23'),'admin');var Player2=new Player(_0x52aa('0x24'),_0x52aa('0x1a'));var Player3=new Player(_0x52aa('0x25'),_0x52aa('0x1a'));var Island1=new Island('Chess',_0x52aa('0x26'),0x19);var Island2=new Island('Developing',_0x52aa('0x27'),0x5,!![],_0x52aa('0x28'));var Island3=new Island(_0x52aa('0x29'),_0x52aa('0x2a'),0x64);MasterServer['push'](Island1,Island2,Island3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement