Advertisement
JSchmoe

comms

Mar 12th, 2017
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. def Initialize() {
  2. $words = vector(
  3. "assistant", "Greyshit",
  4. "captain", "Assistant With All Access",
  5. "head of personnel", "Free All Access",
  6. "bartender", "Drunkard",
  7. "cook", "Fatass",
  8. "botanist", "Stoner",
  9. "quartermaster", "Order All The Guns",
  10. "cargo technician", "Crate Monkey",
  11. "shaft miner", "Dead In 10 Minutes",
  12. "clown", "The Most Holy Profession Of Them All",
  13. "mime", "Mute Psycho",
  14. "janitor", "Slippery Bastard",
  15. "librarian", "Spare Arcane Tome Supplier",
  16. "lawyer", "Ignored By Security",
  17. "chaplain", "Unholy Crusader",
  18. "chief engineer", "Chief Lazy Bum",
  19. "station engineer", "Tesla Freedom Advocate",
  20. "atmospheric technician", "Plasma Flooder",
  21. "chief medical officer", "Chief Malpractice Officer",
  22. "medical doctor", "Surgical Drill To The Eye",
  23. "chemist", "Meth-head Pyromaniac",
  24. "geneticist", "Retarded Hulking Mass",
  25. "virologist", "Plague 'Doctor'",
  26. "research director", "What The Fuck Is Ethics",
  27. "scientist", "PLES GIBE BAG OF HOLDENG XD",
  28. "roboticist", "Mech Maniac",
  29. "head of security", "Head Of Shitcurity",
  30. "warden", "Too Fat To Get Out Of Brig",
  31. "detective", "Noir Gunslinger",
  32. "security officer", "Shitcurity Officer",
  33. "ai", "CLOWN IN UPLOAD",
  34. "cyborg", "Flash Me Harder Daddy",
  35. "personal ai", "pAI(n In The Ass)",
  36. "paramedic", "SUIT SENSORS TO MAXIMUM!!",
  37. );
  38.  
  39. $index = 1;
  40. while($index <= length($words))
  41. {
  42. $key = at($words, $index);
  43. $val = at($words, $index+1);
  44. mem($key, $val);
  45. $index += 2;
  46. }
  47. }
  48.  
  49. if(mem("initialized") != 1)
  50. {
  51. Initialize();
  52. mem("initialized", 1);
  53. }
  54.  
  55. $foo = "";
  56. $joblow = lower($job);
  57.  
  58. if(mem($joblow)) { $foo = mem($joblow); }
  59. else { $foo = substr($job, 1, 6); }
  60.  
  61. if (!find($source, "Unknown") && $job != "No id" && !find($source, " (as ")) {
  62. $source = $source + " (" + $foo + ")";
  63. $content = replace($content, "AI open", "AI, please open the door I'm next to. Thanks in advance!");
  64. $content = replace($content, "HELP", "Dear fellow crewmembers, I seem to require assistance. Can someone please come over and help me out ");
  65.  
  66. $index = 1;
  67. $new = "";
  68. $splort = $content;
  69. while($index <= length($splort))
  70. {
  71. $word = substr($splort, $index, $index+1);
  72. $word = pick(upper($word), lower($word));
  73. $new += $word;
  74. $index += 1;
  75. }
  76. $content = $new;
  77. if (find(lower($content), "has signed up as")) {
  78. $pass = 0;
  79. $j = pick("Traitor","Revolutionary","Changeling","Nuclear Operative","Gangster","Monkey","Abductor","Cultist","Wizard","Blob","Malfunctioning AI","Meteor");
  80. $exploded = explode($content, " ");
  81. $first = at($exploded, 1);
  82. $last = at($exploded, 2);
  83. $broadcast($first+" "+$last+" has signed up as "+$j, $common, "AAS");
  84. }
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement