Advertisement
Guest User

ada.fullsec

a guest
Sep 24th, 2016
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function(context, args)// npc:true
  2. {
  3.     args = JSON_.parse( JSON_.stringify( args ) );
  4.     if(args.npc == null) args.npc = true;
  5.     #s.ada.haxfax({log:{a:args,c:context}});
  6.     let npc_check = function(n)
  7.     {
  8.         switch(n)
  9.         {
  10.             case 'amal_robo':
  11.             case 'archaic':
  12.             case 'arino':
  13.             case 'blackstar':
  14.             case 'bluebun':
  15.             case 'bunnybat_hut':
  16.             case 'context':
  17.             case 'core':
  18.             case 'cyberdine':
  19.             case 'empty_nest':
  20.             case 'futuretech':
  21.             case 'halperyon':
  22.             case 'kill_9_1':
  23.             case 'kill_bio':
  24.             case 'legion_bible':
  25.             case 'legion_intl':
  26.             case 'light':
  27.             case 'lowell_extermination':
  28.             case 'marco_polo':
  29.             case 'merrymoor_pharma':
  30.             case 'nation_of_wales':
  31.             case 'nuutec':
  32.             case 'protein_prevention':
  33.             case 'ros13':
  34.             case 'ros_13_update_checker':
  35.             case 'setec_gas':
  36.             case 'sn_w':
  37.             case 'soylentbean':
  38.             case 'suborbital_airlines':
  39.             case 'tandoori':
  40.             case 'the_holy_checksum':
  41.             case 'turing_testing':
  42.             case 'tyrell':
  43.             case 'vacuum_rescue':
  44.             case 'welsh_measles_info':
  45.             case 'weyland':
  46.             case 'world_pop':
  47.                 return args.npc;
  48.             default:
  49.                 return !args.npc;
  50.         }
  51.     }
  52.  
  53.     let scripts = #s.scripts.fullsec();
  54.     let npc = [];
  55.     for(var i = 0; i < scripts.length; i++)
  56.     {
  57.         let addr = scripts[i].split('.');
  58.         if(npc_check(addr[0])) npc.push(scripts[i]);
  59.     }
  60.     return npc;
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement