Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function(context, args) { //t:#s.nonplayer.loc
- //
- //_|_ '| __ __ __ __ |__, ___ __
- // |_, | (___ | ' (__( (___ | \ (__/_ | '
- //
- let tg = args.t,
- r = tg.call({}),
- reg = /nn/g,
- ts = reg.test(r),
- pass = ['unlock', 'open', 'release'],
- dg = [0,1,2,3,4,5,6,7,8,9],
- key = ['vc2c7q', '5c7e1r', 'cmppiq', '4jitu5', 'uphlaw', 'xwz7ja', 'vthf6e', 'tvfkyq', 'sa23uw', '72umy0', '6hh8xw'],
- 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],
- color = ["red", "purple", "blue", "cyan", "green", "lime", "yellow", "orange"],
- ul = ['`NLOCK_UNLOCKED`', 'Connection terminated'],
- l = {}
- let gl = #fs.scripts.get_level({name:tg.name});
- if (gl < 4) {
- return {ok:false, msg:"INSEC SCRIPT " + gl}
- }
- while (!reg.test(r)) {
- //#D(r)
- //#D(l)
- let counter = 0;
- counter++;
- if (counter > 100) {
- break;
- }
- if (r.includes('SYSTEMS `NEZ_21`')) {
- let i = 0;
- while (!r.includes(ul[0] + ' EZ_21') && !r.includes(ul[1])) {
- l.EZ_21 = pass[i];
- r = tg.call(l);
- //#D(l)
- //#D(r)
- i++;
- }
- //#D(l)
- //#D(r)
- }
- if (r.includes('SYSTEMS `NEZ_35`')) {
- let j = 0;
- while (!r.includes('digit')) {
- l.EZ_35 = pass[j];
- r = tg.call(l);
- //#D(l)
- //#D(r)
- j++;
- }
- let count = 0;
- while (!r.includes(ul[0] + ' EZ_35') && !r.includes(ul[1])) {
- l.digit = count;
- r = tg.call(l);
- //#D(l)
- //#D(r)
- count++;
- }
- //#D(l)
- //#D(r)
- }
- if (r.includes('SYSTEMS `NEZ_40`')) {
- let v = 0;
- while (!r.includes('ez_prime')) {
- l.EZ_40 = pass[v];
- r = tg.call(l);
- //#D(l)
- //#D(r)
- v++;
- }
- let e = 0;
- //i'm dead inside why does this not work
- while (!r.includes('`NLOCK_UNLOCKED` EZ_40') && !r.includes(ul[1])) {
- l.ez_prime = prime[e];
- r = tg.call(l);
- //#D(l)
- //#D(r)
- e++;
- }
- //#D(l)
- //#D(r)
- }
- if (r.includes('nuutec `Nl0cket`')) {
- let k = 0;
- while (!r.includes('`NLOCK_UNLOCKED` l0cket') && !r.includes(ul[1])) {
- l.l0cket = key[k];
- r = tg.call(l);
- //#D(l)
- //#D(r)
- k++;
- }
- #D(l)
- #D(r)
- }
- if (r.includes('CORE `Nc001`')) {
- let cind2;
- let c = 0;
- while (!r.includes('color_digit')) {
- l.c001 = color[c];
- cind2 = color.indexOf(color[c]);
- r = tg.call(l);
- //#D(l)
- //#D(r)
- c++;
- }
- l.color_digit = color[cind2].length;
- r = tg.call(l);
- //#D(l)
- //#D(r)
- if (r.includes('`NLOCK_UNLOCKED` c001') || r.includes(ul[1])) {
- //#D(l)
- //#D(r)
- }
- }
- if (r.includes('CORE `Nc002`')) {
- let cind1;
- let z = 0;
- while (!r.toLowerCase().includes('c002_complement')) {
- l.c002 = color[z];
- cind1 = color.indexOf(color[z]);
- r = tg.call(l);
- //#D(l)
- //#D(r)
- z++;
- }
- l.c002_complement = color[(cind1 + 4) % 8];
- r = tg.call(l);
- //#D(l)
- //#D(r)
- if (r.includes('`NLOCK_UNLOCKED` c002') || r.includes(ul[1])) {
- //#D(l)
- //#D(r)
- }
- }
- if (r.includes('CORE `Nc003`')) {
- let cind;
- let y = 0;
- while (!r.includes('c003_triad_1')) {
- l.c003 = color[y];
- cind = color.indexOf(color[y]);
- r = tg.call(l);
- //#D(l)
- //#D(r)
- y++;
- }
- l.c003_triad_1 = color[(cind + 3) % color.length];
- r = tg.call(l);
- //#D(l)
- //#D(r)
- if (r.includes('c003_triad_2')) {
- l.c003_triad_2 = color[(cind + 5) % color.length];
- r = tg.call(l);
- //#D(l)
- //#D(r)
- if (r.includes('`NLOCK_UNLOCKED` c003') || r.includes(ul[1])) {
- //#D(l)
- //#D(r)
- }
- }
- }
- if (r.includes('`NDATA_CHECK`')) {
- l.DATA_CHECK = "";
- r = tg.call(l);
- var qs=r.split('\n');
- var a=#db.f({type:"data_check",question:{$in:qs}}).array()
- var as=qs.map(o=>a.filter(q=>q.question==o)[0].answer).join('');
- l.DATA_CHECK = as;
- r = tg.call(l);
- }
- }
- //#D(typeof r)
- //#D(r)
- //#D(l)
- return r;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement