Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function(context, args) { //t:#s.nonplayer.loc
  2. //                                                
  3. //_|_  '|      __   __   __   __  |__,  ___   __  
  4. // |_,  |     (___ |  ' (__( (___ |  \ (__/_ |  '
  5. //                                                
  6.     let tg = args.t,
  7.     r = tg.call({}),
  8.     reg = /nn/g,
  9.     ts = reg.test(r),
  10.     pass = ['unlock', 'open', 'release'],
  11.     dg = [0,1,2,3,4,5,6,7,8,9],
  12.     key = ['vc2c7q', '5c7e1r', 'cmppiq', '4jitu5', 'uphlaw', 'xwz7ja', 'vthf6e', 'tvfkyq', 'sa23uw', '72umy0', '6hh8xw'],
  13.     prime = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97],
  14.     color = ["red", "purple", "blue", "cyan", "green", "lime", "yellow", "orange"],
  15.     ul = ['`NLOCK_UNLOCKED`', 'Connection terminated'],
  16.     l = {}
  17.    
  18.     let gl = #fs.scripts.get_level({name:tg.name});
  19.    
  20.     if (gl < 4) {
  21.         return {ok:false, msg:"INSEC SCRIPT " + gl}
  22.     }
  23.  
  24.    
  25.     while (!reg.test(r)) {
  26.         //#D(r)
  27.         //#D(l)
  28.         let counter = 0;
  29.         counter++;
  30.         if (counter > 100) {
  31.             break;
  32.         }
  33.         if (r.includes('SYSTEMS `NEZ_21`')) {
  34.             let i = 0;
  35.             while (!r.includes(ul[0] + ' EZ_21') && !r.includes(ul[1])) {
  36.                 l.EZ_21 = pass[i];
  37.                 r = tg.call(l);
  38.                 //#D(l)
  39.                 //#D(r)
  40.                 i++;
  41.             }
  42.             //#D(l)
  43.             //#D(r)
  44.         }
  45.        
  46.         if (r.includes('SYSTEMS `NEZ_35`')) {
  47.             let j = 0;
  48.             while (!r.includes('digit')) {
  49.                 l.EZ_35 = pass[j];
  50.                 r = tg.call(l);
  51.                 //#D(l)
  52.                 //#D(r)
  53.                 j++;
  54.             }
  55.             let count = 0;
  56.             while (!r.includes(ul[0] + ' EZ_35') && !r.includes(ul[1])) {
  57.                 l.digit = count;
  58.                 r = tg.call(l);
  59.                 //#D(l)
  60.                 //#D(r)
  61.                 count++;
  62.             }
  63.             //#D(l)
  64.             //#D(r)
  65.         }
  66.        
  67.         if (r.includes('SYSTEMS `NEZ_40`')) {
  68.             let v = 0;
  69.             while (!r.includes('ez_prime')) {
  70.                 l.EZ_40 = pass[v];
  71.                 r = tg.call(l);
  72.                 //#D(l)
  73.                 //#D(r)
  74.                 v++;
  75.             }
  76.             let e = 0;
  77.             //i'm dead inside why does this not work
  78.             while (!r.includes('`NLOCK_UNLOCKED` EZ_40') && !r.includes(ul[1])) {
  79.                 l.ez_prime = prime[e];
  80.                 r = tg.call(l);
  81.                 //#D(l)
  82.                 //#D(r)
  83.                 e++;
  84.             }
  85.             //#D(l)
  86.             //#D(r)
  87.         }
  88.        
  89.         if (r.includes('nuutec `Nl0cket`')) {
  90.             let k = 0;
  91.             while (!r.includes('`NLOCK_UNLOCKED` l0cket') && !r.includes(ul[1])) {
  92.                 l.l0cket = key[k];
  93.                 r = tg.call(l);
  94.                 //#D(l)
  95.                 //#D(r)
  96.                 k++;
  97.             }
  98.             #D(l)
  99.             #D(r)
  100.         }
  101.        
  102.         if (r.includes('CORE `Nc001`')) {
  103.             let cind2;
  104.             let c = 0;
  105.             while (!r.includes('color_digit')) {
  106.                 l.c001 = color[c];
  107.                 cind2 = color.indexOf(color[c]);
  108.                 r = tg.call(l);
  109.                 //#D(l)
  110.                 //#D(r)
  111.                 c++;
  112.             }
  113.             l.color_digit = color[cind2].length;
  114.             r = tg.call(l);
  115.             //#D(l)
  116.             //#D(r)
  117.             if (r.includes('`NLOCK_UNLOCKED` c001') || r.includes(ul[1])) {
  118.                 //#D(l)
  119.                 //#D(r)
  120.             }
  121.         }
  122.        
  123.          if (r.includes('CORE `Nc002`')) {
  124.             let cind1;
  125.             let z = 0;
  126.             while (!r.toLowerCase().includes('c002_complement')) {
  127.                 l.c002 = color[z];
  128.                 cind1 = color.indexOf(color[z]);
  129.                 r = tg.call(l);
  130.                 //#D(l)
  131.                 //#D(r)
  132.                 z++;
  133.             }
  134.             l.c002_complement = color[(cind1 + 4) % 8];
  135.             r = tg.call(l);
  136.             //#D(l)
  137.             //#D(r)
  138.             if (r.includes('`NLOCK_UNLOCKED` c002') || r.includes(ul[1])) {
  139.                 //#D(l)
  140.                 //#D(r)
  141.             }
  142.         }
  143.        
  144.         if (r.includes('CORE `Nc003`')) {
  145.             let cind;
  146.             let y = 0;
  147.             while (!r.includes('c003_triad_1')) {
  148.                 l.c003 = color[y];
  149.                 cind = color.indexOf(color[y]);
  150.                 r = tg.call(l);
  151.                 //#D(l)
  152.                 //#D(r)
  153.                 y++;
  154.             }
  155.             l.c003_triad_1 = color[(cind + 3) % color.length];
  156.             r = tg.call(l);
  157.             //#D(l)
  158.             //#D(r)
  159.             if (r.includes('c003_triad_2')) {
  160.                 l.c003_triad_2 = color[(cind + 5) % color.length];
  161.                 r = tg.call(l);
  162.                 //#D(l)
  163.                 //#D(r)
  164.                 if (r.includes('`NLOCK_UNLOCKED` c003') || r.includes(ul[1])) {
  165.                     //#D(l)
  166.                     //#D(r)
  167.                 }
  168.             }
  169.         }
  170.        
  171.         if (r.includes('`NDATA_CHECK`')) {
  172.             l.DATA_CHECK = "";
  173.             r = tg.call(l);
  174.             var qs=r.split('\n');
  175.             var a=#db.f({type:"data_check",question:{$in:qs}}).array()
  176.             var as=qs.map(o=>a.filter(q=>q.question==o)[0].answer).join('');
  177.             l.DATA_CHECK = as;
  178.             r = tg.call(l);
  179.         }
  180.        
  181.     }      
  182.     //#D(typeof r)
  183.     //#D(r)
  184.     //#D(l)
  185.     return r;
  186. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement