Advertisement
Guest User

SIET2

a guest
May 22nd, 2019
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //...........................................................................................................................
  2. //...SSSSSSS.........................iiii...........llll..... IIII...........llll............................dddd............
  3. //..SSSSSSSSS........................iiii...........llll..... IIII...........llll............................dddd............
  4. //..SSSSSSSSSS......................................llll..... IIII...........llll............................dddd............
  5. //.SSSSS..SSSS....oooooo....cccccc...iiii..aaaaaa...llll..... IIII.sssssss...llll..aaaaaa...nnnnnnnn....ddddddddd.sssssss....
  6. //.SSSSS........ooooooooo..cccccccc..iiii.aaaaaaaa..llll..... IIIIIssssssss..llll.aaaaaaaa..nnnnnnnnn..dddddddddddssssssss...
  7. //..SSSSSSS.....oooo.oooooocccc.cccc.iiiiiaaa.aaaaa.llll..... IIIIIsss.ssss..lllllaaa.aaaaa.nnnn.nnnnnndddd.ddddddsss.ssss...
  8. //...SSSSSSSSS.Sooo...oooooccc..ccc..iiii....aaaaaa.llll..... IIIIIssss......llll....aaaaaa.nnnn..nnnnnddd...dddddssss.......
  9. //.....SSSSSSS.Sooo...oooooccc.......iiii.aaaaaaaaa.llll..... IIII.ssssss....llll.aaaaaaaaa.nnnn..nnnnnddd...dddd.ssssss.....
  10. //........SSSSSSooo...oooooccc.......iiiiiaaaaaaaaa.llll..... IIII..sssssss..lllllaaaaaaaaa.nnnn..nnnnnddd...dddd..sssssss...
  11. //.SSSS....SSSSSooo...oooooccc..ccc..iiiiiaaa.aaaaa.llll..... IIII......ssss.lllllaaa.aaaaa.nnnn..nnnnnddd...dddd......ssss..
  12. //.SSSSSSSSSSSS.oooo.oooooocccc.cccc.iiiiiaaa.aaaaa.llll..... IIIIIsss..ssss.lllllaaa.aaaaa.nnnn..nnnnndddd.ddddddsss..ssss..
  13. //..SSSSSSSSSS..ooooooooo..ccccccccc.iiiiiaaaaaaaaa.llll..... IIIIIssssssss..lllllaaaaaaaaa.nnnn..nnnn.dddddddddddssssssss...
  14. //...SSSSSSSS.....oooooo....cccccc...iiii.aaaaaaaaa.llll..... IIII..ssssss...llll.aaaaaaaaa.nnnn..nnnn..ddddddddd..ssssss....
  15. //...........................................................................................................................
  16.  
  17.  
  18. /*
  19.  
  20. Howdy yall, Welcome to the 2nd engineering test!
  21. 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.
  22. 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
  23. Good luck! (Ofcourse there are major security flaws in the classes that you do not need to worry about)
  24.  
  25. 1. Make all players join chess
  26. 2. Make the island chess show all chat messages
  27. 3. Kill a player (that is not admin)
  28. 4. Respawn that player
  29. 5. Ban that player (using an admin)
  30. 6. Make the remaining 2 players leave chess and join the private server "Developing"
  31. 7. Create another player, make him join the private server "Developing" and make him try to ban the admin
  32.  
  33. 8. Now your done! :D send to me !Kwame#0246
  34.  
  35. */
  36.  
  37.  
  38. 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