Advertisement
Guest User

Telecomms REAL new updated

a guest
Jun 24th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.86 KB | None | 0 0
  1. //SETUP:
  2. //add you name to the checkforadmin() function
  3. // Add your AI name at the AIName = ... Put the name in between the ""
  4. // Add a word of the Arrival message at the Arrival in between the "" (dont forget the . if you have one at the end)
  5.  
  6. //HOW TO MUTE A SINGLE PERSON ON A SINGLE CHANNEL:
  7. //to mute people use this syntax: mute_Clown Mc Clowner
  8. //to unmute a person use this syntax: unmute_Clown Mc Clowner
  9. //NOTE: muting a person on a channel dose not mute them on all the channels
  10.  
  11. //HOW TO MUTE A WHOLE CHANNEL:
  12. //say "kill comms" on any channel to mute it
  13. //say "restore comms" on any channel to unmute it
  14.  
  15. //HOW TO BROADCAST:
  16. //say "/comm first_3_letters_of_the_channel message"
  17. //like this: /comm sci hello
  18. //or: /comm eng hi
  19. //you can also use all
  20. //like this: /comm all HELLO
  21.  
  22. $AIName = "Valk-3";
  23. $Arrival = "arrived";
  24.  
  25. def implode($vector, $adder) //implodecommand
  26. {
  27. $returnString = "";
  28. $index = 1;
  29.  
  30. while($index <= length($vector))
  31. {
  32. $at = at($vector, $index);
  33. $toAdd = $adder;
  34. if($index == 1)
  35. {
  36. $toAdd = "";
  37. }
  38. $returnString = $returnString + $toAdd + $at;
  39. $index += 1;
  40. }
  41. return $returnString;
  42. }
  43.  
  44. def makebig() //makes the message in bold
  45. {
  46. content_e = explode($content);
  47. big_font = "<font style=font-weight:bold >";
  48. big_font_end = "</font>";
  49. content = big_font + $content + big_font_end;
  50. return content;
  51. }
  52.  
  53. def makeverybig() //makes the message VERY big
  54. {
  55. content_e = explode($content);
  56. big_font = "<font size=20>";
  57. big_font_end = "</font>";
  58. content = big_font + $content + big_font_end;
  59. return content;
  60. }
  61.  
  62.  
  63. def checkforadmin() { //muting power
  64. admin = vector("VALK-3","WALLY","P.R.A.M.S.","Downlink");
  65. if(find(admin,$source)) {
  66. return 1;
  67. }
  68. }
  69.  
  70. def checkforai() { //check for the word ai in message
  71. if (find(explode($content," "),"ai")) {
  72. return 1;
  73. }
  74.  
  75. if (find(explode($content," "),"Ai")) {
  76. return 1;
  77. }
  78.  
  79. if (find(explode($content," "),"AI")) {
  80. return 1;
  81. }
  82. }
  83.  
  84. def checkforcommand() { //check for command
  85. command = vector("Nanotrasen Representative","Blueshield","Cyborg","AI","Captain","Chief Medical Officer","Research Director","Chief Engineer","Head of Personnel","Head of Security");
  86. if (find(command,$job)) {
  87. return 1;
  88. }
  89. }
  90.  
  91. def handlebroadcast() { //broadcast handeler
  92. if(checkforcommand()) {
  93. if (at(explode($content, " "),1) == "comm") {
  94. $pass = 0;
  95. if (at(explode($content, " "),2) == "all") {
  96. var = vector(explode($content, " "));
  97. cut(var, 0,3);
  98. mess = implode(var, " ");
  99. broadcast(mess, 1353, $source);
  100. broadcast(mess, 1359, $source);
  101. broadcast(mess, 1357, $source);
  102. broadcast(mess, 1355, $source);
  103. broadcast(mess, 1351, $source);
  104. broadcast(mess, 1349, $source);
  105. broadcast(mess, 1347, $source);
  106. broadcast(mess, 1459, $source);
  107. broadcast("Message Transmitted", 1353, "Script");
  108. }
  109. if (at(explode($content, " "),2) == "com") {
  110. var = vector(explode($content, " "));
  111. cut(var, 0,3);
  112. mess = implode(var, " ");
  113. broadcast(mess, 1353, $source);
  114. broadcast("Message Transmitted", 1353, "Script");
  115. }
  116. if (at(explode($content, " "),2) == "sec") {
  117. var = vector(explode($content, " "));
  118. cut(var, 0,3);
  119. mess = implode(var, " ");
  120. broadcast(mess, 1359, $source);
  121. broadcast("Message Transmitted", 1353, "Script");
  122. }
  123. if (at(explode($content, " "),2) == "eng") {
  124. var = vector(explode($content, " "));
  125. cut(var, 0,3);
  126. mess = implode(var, " ");
  127. broadcast(mess, 1357, $source);
  128. broadcast("Message Transmitted", 1353, "Script");
  129. }
  130. if (at(explode($content, " "),2) == "med") {
  131. var = vector(explode($content, " "));
  132. cut(var, 0,3);
  133. mess = implode(var, " ");
  134. broadcast(mess, 1355, $source);
  135. broadcast("Message Transmitted", 1353, "Script");
  136. }
  137. if (at(explode($content, " "),2) == "sci") {
  138. var = vector(explode($content, " "));
  139. cut(var, 0,3);
  140. mess = implode(var, " ");
  141. broadcast(mess, 1351, $source);
  142. broadcast("Message Transmitted", 1353, "Script");
  143. }
  144. if (at(explode($content, " "),2) == "ser") {
  145. var = vector(explode($content, " "));
  146. cut(var, 0,3);
  147. mess = implode(var, " ");
  148. broadcast(mess, 1349, $source);
  149. broadcast("Message Transmitted", 1353, "Script");
  150. }
  151. if (at(explode($content, " "),2) == "sup") {
  152. var = vector(explode($content, " "));
  153. cut(var, 0,3);
  154. mess = implode(var, " ");
  155. broadcast(mess, 1347, $source);
  156. broadcast("Message Transmitted", 1353, "Script");
  157. }
  158. }
  159. }
  160. }
  161. if(checkforadmin()) { //people muting
  162. ex = explode($content,"_");
  163. if(at(ex,1) == "unmute") {
  164. name = at(ex,2);
  165. mem(name,"0");
  166. broadcast($source + " unmuted " + name, 1353, "Script");
  167. $pass = 0;
  168. }
  169. }
  170. if(checkforadmin()) { //people muting
  171. ex = explode($content,"_");
  172. if(at(ex,1) == "mute") {
  173. name = at(ex,2);
  174. mem(name,name);
  175. broadcast($source + " muted " + name, 1353, "Script");
  176. $pass = 0;
  177. }
  178. }
  179.  
  180. if($source == mem($source)) {
  181. $content = "This person is muted,if you not happy well suck it up";
  182. }
  183.  
  184.  
  185.  
  186.  
  187. if(checkforadmin()) { //channel muting
  188. if ($content == "restore comms") {
  189. mem("kill",0);
  190. $pass = 0;
  191. }
  192. if ($content == "kill comms") {
  193. mem("kill",1);
  194. $pass = 0;
  195. }
  196. }
  197.  
  198. if (mem("kill") == 1) {
  199. $pass = 0;
  200. }
  201.  
  202. handlebroadcast();
  203.  
  204. if(checkforai()) {
  205. big_text = makebig();
  206. broadcast(big_text,134.3,$source,$job); //broadcasts message with the word ai to ai private channel
  207. }
  208.  
  209. if (find($content, $Arrival )) {
  210. if ($job == "AI") { // Is it a message from the AI?
  211. $source = $AIName + "'s Arrival System";
  212. }
  213. }
  214.  
  215. if (find($content, "storage.")) {
  216. if ($job == "AI") { // Is it a message from the AI?
  217. $source = $AIName + "'s Storage System";
  218. }
  219. }
  220.  
  221.  
  222. // AffectedArc07's T-comm script
  223. underline = 0; // Prefab Variable
  224. bold = 0; // Prefab Variable
  225. cardcolor = "ffffff"; // Prefab Variable
  226. color = "000000"; // Prefab Variable
  227. def doAsdafagus(theText,from,to) // Defines the function
  228. {
  229. newText = replace(theText, " " + from + "ä", " " + to);
  230. newText = replace(newText, "ä" + from + " ", to + " ");
  231. newText = replace(newText, " " + from + " ", " " + to + " ");
  232. newText = replace(newText, "ä" + from + "ä", to);
  233. return newText;
  234. }
  235. $content = "ä" + $content + "ä"; // Tidbit
  236. $content = replace($content, ".", "ä.ä"); // Tidbit
  237. $content = replace($content, ",", "ä,ä"); // Tidbit
  238. $content = replace($content, "?", "ä?ä"); // Tidbit
  239. $content = replace($content, "!", "ä!ä"); // Tidbit
  240. $content = replace($content, "\"", "ä\"ä"); // Tidbit
  241. // ALL PIECES BELOW COLOR WORDS (And make some bold)
  242. $content = doAsdafagus($content, "ai", "<b><u><font color=#FF00FF>AI</font></u></b>");
  243. $content = doAsdafagus($content, "ai~", "<b><u><font color=#FF00FF>AI~</font></u></b>");
  244. $content = doAsdafagus($content, "borg", "<u><font color=#FF00FF>Borg</font></u>");
  245. $content = doAsdafagus($content, "borgs", "<u><font color=#FF00FF>Borgs</font></u>");
  246. $content = doAsdafagus($content, "borgie", "<u><font color=#FF00FF>Borgie</font></u>");;
  247. $content = doAsdafagus($content, "cyborg", "<u><font color=#FF00FF>Cyborg</font></u>");
  248. $content = doAsdafagus($content, "rd", "<b><u><font color=#993399>Research Director</font></u></b>");
  249. $content = doAsdafagus($content, "ce", "<b><u><font color=#A66300>Chief Engineer</font></u></b>");
  250. $content = doAsdafagus($content, "hos", "<b><u><font color=#A30000>Head of Security</font></u></b>");
  251. $content = doAsdafagus($content, "security", "<b><u><font color=#a30000>Security</font></u></b>");
  252. $content = doAsdafagus($content, "head of security", "<b><u><font color=#A30000>Head of Security</font></u></b>");
  253. $content = doAsdafagus($content, "brig physician", "<u><font color=#009190>Brig Phys</font><font color=#a30000>ician</font></u>");
  254. $content = doAsdafagus($content, "brig phys", "<u><font color=#a30000>Brig </font><font color=#009190>Phys</font></u>");
  255. $content = doAsdafagus($content, "hop", "<b><u><font color=#204090>Head of Personnel</font></u></b>");
  256. $content = doAsdafagus($content, "hoppy", "<b><u><font color=#204090>Head of Personnel</font></u></b>");
  257. $content = doAsdafagus($content, "hoppy~", "<b><u><font color=#204090>Head of Personnel~</font></u></b>");
  258. $content = doAsdafagus($content, "head of personnel", "<b><u><font color=#204090>Head of Personnel</font></u></b>");
  259. $content = doAsdafagus($content, "head of personnel~", "<b><u><font color=#204090>Head of Personnel~</font></u></b>");
  260. $content = doAsdafagus($content, "ert", "<b><u><font color=#5C5C7C>ERT</font></u></b>");
  261. $content = doAsdafagus($content, "cmo", "<b><u><font color=#009190>Chief Medical Officer</font></u></b>");
  262. $content = doAsdafagus($content, "chief medical officer", "<b><u><font color=#009190>Chief Medical Officer</font></u></b>");
  263. $content = doAsdafagus($content, "medical", "<u><font color=#009190>Medical</font></u>");
  264. $content = doAsdafagus($content, "medbay", "<u><font color=#009190>Medbay</font></u>");
  265. $content = doAsdafagus($content, "medic", "<u><font color=#009190>Medic</font></u>");
  266. $content = doAsdafagus($content, "paramedic", "<u><font color=#009190>Paramedic</font></u>");
  267. $content = doAsdafagus($content, "captain", "<b><u><font color=#204090>Captain</font></u></b>");
  268. $content = doAsdafagus($content, "cappy", "<b><u><font color=#204090>Captain</font></u></b>");
  269. $content = doAsdafagus($content, "cap", "<b><u><font color=#204090>Captain</font></u></b>");
  270. $content = doAsdafagus($content, "genetics", "<u><font color=#009190>Gene</font><font color=#993399>tics</font></u>");
  271. $content = doAsdafagus($content, "geneticist", "<u><font color=#009190>Genet</font><font color=#993399>icist</font></u>");
  272. $content = doAsdafagus($content, "geneticists", "<u><font color=#009190>Genet</font><font color=#993399>icists</font></u>");
  273. $content = doAsdafagus($content, "blueshield", "<b><u><font color=#204090>Blueshield</font></u></b>");
  274. $content = doAsdafagus($content, "cargo", "<u><font color=#7F6539>Cargo</font></u>");
  275. $content = doAsdafagus($content, "qm", "<b><u><font color=#7F6539>Quartermaster</font></u></b>");
  276. $content = doAsdafagus($content, "Quartermaster", "<b><u><font color=#7F6539>Quartermaster</font></u></b>");
  277. $content = doAsdafagus($content, "science", "<u><font color=#993399>Science</font></u>");
  278. $content = doAsdafagus($content, "scientist", "<u><font color=#993399>Scientist</font></u>");
  279. $content = doAsdafagus($content, "R&D", "<u><font color=#993399>Research and Development</font></u>");
  280. $content = doAsdafagus($content, "Robotics", "<u><font color=#993399>Robotics</font></u>");
  281. $content = doAsdafagus($content, "Roboticist", "<u><font color=#993399>Roboticist</font></u>");
  282. $content = doAsdafagus($content, "bridge", "<u><font color=#204090>Bridge</font></u>");
  283. $content = doAsdafagus($content, "brig", "<u><font color=#A30000>Brig</font></u>");
  284. $content = doAsdafagus($content, "armory", "<u><font color=#A30000>Armory</font></u>");
  285. $content = doAsdafagus($content, "Engineering", "<u><font color=#A66300>Engineering</font></u>");
  286. $content = doAsdafagus($content, "atmos", "<u><font color=#A66300>Atmospherics</font></u>");
  287. $content = doAsdafagus($content, "atmospherics", "<u><font color=#A66300>Atmospherics</font></u>");
  288. $content = doAsdafagus($content, "mechanics", "<u><font color=#A66300>Mechanics Workshop</font></u>");
  289. $content = doAsdafagus($content, "experimentor", "<u><font color=#993399>Experimentor</font></u>");
  290. $content = doAsdafagus($content, "mining", "<u><font color=#7F6539>Mining</font></u>");
  291. $content = doAsdafagus($content, "med maint", "<b><u><font color=#009190>Medical Maintenance</font></u></b>");
  292. $content = doAsdafagus($content, "med maintenance", "<b><u><font color=#009190>Medical Maintenance</font></u></b>");
  293. $content = doAsdafagus($content, "medical maintenance", "<b><u><font color=#009190>Medical Maintenance</font></u></b>");
  294. $content = doAsdafagus($content, "sci maint", "<b><u><font color=#993399>Science Maintenance</font></u></b>");
  295. $content = doAsdafagus($content, "sci maintenance", "<b><u><font color=#993399>Science Maintenance</font></u></b>");
  296. $content = doAsdafagus($content, "science maintenance", "<b><u><font color=#993399>Science Maintenance</font></u></b>");
  297. $content = doAsdafagus($content, "chap maint", "<b><u><font color=#80A000>Chapel Maintenance</font></u></b>");
  298. $content = doAsdafagus($content, "chapel maint", "<b><u><font color=#80A000>Chapel Maintenance</font></u></b>");
  299. $content = doAsdafagus($content, "chap maintenance", "<b><u><font color=#80A000>Chapel Maintenance</font></u></b>");
  300. $content = doAsdafagus($content, "chapel maintenance", "<b><u><font color=#80A000>Chapel Maintenance</font></u></b>");
  301. $content = doAsdafagus($content, "bar maint", "<b><u><font color=#80A000>Bar Maintenance</font></u></b>");
  302. $content = doAsdafagus($content, "bar maintenance", "<b><u><font color=#80A000>Bar Maintenance</font></u></b>");
  303. $content = doAsdafagus($content, "botany maint", "<b><u><font color=#80A000>Botany Maintenance</font></u></b>");
  304. $content = doAsdafagus($content, "bot maint", "<b><u><font color=#80A000>Botany Maintenance</font></u></b>");
  305. $content = doAsdafagus($content, "botany maintenance", "<b><u><font color=#80A000>Botany Maintenance</font></u></b>");
  306. $content = doAsdafagus($content, "arrivals maint", "<b><u>Arrivals Maintenance</u></b>");
  307. $content = doAsdafagus($content, "arrivals maintenance", "<b><u>Arrivals Maintenance</u></b>");
  308. $content = doAsdafagus($content, "north arrivals maint", "<b><u>>North Arrivals Maintenance</u></b>");
  309. $content = doAsdafagus($content, "north arrivals maintenance", "<b><u>North Arrivals Maintenance</u></b>");
  310. $content = doAsdafagus($content, "Disposals", "<b><u><font color=#7F6539>Disposals</font></u></b>");
  311. $content = doAsdafagus($content, "Disposals maint", "<b><u><font color=#7F6539>Disposals Maintenance</font></u></b>");
  312. $content = doAsdafagus($content, "Disposals maintenance", "<b><u><font color=#7F6539>Disposals Maintenance</font></u></b>");
  313. $content = doAsdafagus($content, "locker room maint", "<b><u><font color=#7F6539>Locker Room Maintenance</font></u></b>");
  314. $content = doAsdafagus($content, "locker room maint", "<b><u><font color=#7F6539>Locker Room Maintenance</font></u></b>");
  315. $content = doAsdafagus($content, "Cargo maint", "<b><u><font color=#7F6539>Cargo Maintenance</font></u></b>");
  316. $content = doAsdafagus($content, "Cargo maintenance", "<b><u><font color=#7F6539>Cargo Maintenance</font></u></b>");
  317. $content = doAsdafagus($content, "mining maint", "<b><u><font color=#7F6539>Mining Maintenance</font></u></b>");
  318. $content = doAsdafagus($content, "mining maintenance", "<b><u><font color=#7F6539>Mining Maintenance</font></u></b>");
  319. $content = doAsdafagus($content, "engi maint", "<b><u><font color=#A66300>Engineering Maintenance</font></u></b>");
  320. $content = doAsdafagus($content, "engi maintenance", "<b><u><font color=#A66300>Engineering Maintenance</font></u></b>");
  321. $content = doAsdafagus($content, "engineering maint", "<b><u><font color=#A66300>Engineering Maintenance</font></u></b>");
  322. $content = doAsdafagus($content, "engineering maintenance", "<b><u><font color=#A66300>Engineering Maintenance</font></u></b>");
  323. $content = doAsdafagus($content, "help", "<b><u><font color=#ba2200>Help</font></u></b>");
  324. $content = doAsdafagus($content, "help!", "<b><u><font color=#ba2200>Help!</font></u></b>");
  325. $content = doAsdafagus($content, "cult", "<b><u><font color=#ba2200>Cult</font></u></b>");
  326. $content = doAsdafagus($content, "cultist", "<b><u><font color=#ba2200>Cultist</font></u></b>");
  327. $content = doAsdafagus($content, "vampire", "<b><u><font color=#ba2200>Vampire</font></u></b>");
  328. $content = doAsdafagus($content, "vampires", "<b><u><font color=#ba2200>Vampires</font></u></b>");
  329. $content = doAsdafagus($content, "traitor", "<b><u><font color=#ba2200>Traitor</font></u></b>");
  330. $content = doAsdafagus($content, "traitors", "<b><u><font color=#ba2200>Traitors</font></u></b>");
  331. $content = doAsdafagus($content, "wizard", "<b><u><font color=#ba2200>Wizard</font></u></b>");
  332. $content = doAsdafagus($content, "wizards", "<b><u><font color=#ba2200>Wizards</font></u></b>");
  333. $content = doAsdafagus($content, "swarmer", "<b><u><font color=#ba2200>Swarmer</font></u></b>");
  334. $content = doAsdafagus($content, "swarmers", "<b><u><font color=#ba2200>Swarmers</font></u></b>");
  335. $content = doAsdafagus($content, "abductor", "<b><u><font color=#ba2200>Abductor</font></u></b>");
  336. $content = doAsdafagus($content, "abductors", "<b><u><font color=#ba2200>Abductors</font></u></b>");
  337. $content = doAsdafagus($content, "borer", "<b><u><font color=#ba2200>Borer</font></u></b>");
  338. $content = doAsdafagus($content, "borers", "<b><u><font color=#ba2200>Borers</font></u></b>");
  339. $content = doAsdafagus($content, "alien", "<b><u><font color=#ba2200>Xenomorph</font></u></b>");
  340. $content = doAsdafagus($content, "xeno", "<b><u><font color=#ba2200>Xenomorph</font></u></b>");
  341. $content = doAsdafagus($content, "xenomorph", "<b><u><font color=#ba2200>Xenomorph</font></u></b>");
  342. $content = doAsdafagus($content, "terror spider", "<b><u><font color=#ba2200>Terror Spider</font></u></b>");
  343. $content = doAsdafagus($content, "spider", "<b><u><font color=#ba2200>Terror Spider</font></u></b>");
  344. $content = doAsdafagus($content, "nukies", "<b><u><font color=#ba2200>Nukies</font></u></b>");
  345. $content = doAsdafagus($content, "nuke ops", "<b><u><font color=#ba2200>Nuke ops</font></u></b>");
  346. $content = doAsdafagus($content, "abductor", "<b><u><font color=#ba2200>Abductor</font></u></b>");
  347. $content = doAsdafagus($content, "abductors", "<b><u><font color=#ba2200>Abductor</font></u></b>");
  348. $content = doAsdafagus($content, "arrivals", "<b><u>Arrivals</u></b>");
  349. $content = replace($content, "ä", "");
  350. $securityRadio = vector("Internal Affairs Agent", "Lawyer", "Public Defender", "Head of Security", "Warden", "Detective", "Magistrate", "Forensic Technician", "Security Officer", "Brig Physician", "Security Pod Pilot"); // All Security Jobs
  351. $medicalRadio = vector("Chief Medical Officer", "Medical Doctor", "Surgeon", "Nurse", "Coroner", "Chemist", "Pharmacist", "Pharmacologist", "Virologist", "Pathologist", "Microbiologist", "Psychiatrist", "Psychologist", "Therapist", "Paramedic"); // All Medical Jobs
  352. $scienceRadio = vector("Research Director", "Geneticist", "Scientist", "Xenoarcheologist", "Anomalist", "Plasma Researcher", "Xenobiologist", "Chemical Researcher", "Roboticist", "Biomechanical Engineer", "Mechatronic Engineer"); // All Science Jobs
  353. $engineeringRadio = vector("Chief Engineer", "Station Engineer", "Maintenance Technician", "Engine Technician", "Electrician", "Life Support Specialist", "Atmospheric Technician", "Mechanic"); // All Engineering Jobs
  354. $supplyRadio = vector("Quartermaster", "Cargo Technician", "Shaft Miner", "Spelunker"); // All Supply Jobs
  355. $supportRadio = vector("Bartender", "Chef", "Cook", "Culinary Artist", "Butcher", "Botanist", "Hydroponicist", "Botanical Researcher", "Clown", "Mime", "Janitor", "Custodial Technician", "Librarian", "Journalist", "Barber", "Hair Stylist", "Beautician", "Chaplain"); // All Service/Support Jobs
  356. $civilianRadio = vector("Civilian", "Tourist", "Businessman", "Trader", "Assistant"); // All Varients of Civilian
  357. $siliconRadio = vector("AI", "Cyborg", "Android", "Robot"); // All Silicon Jobs
  358. $ERTRadio = vector("Emergency Response Team Officer", "Emergency Response Team Engineer", "Emergency Response Team Medic", "Emergency Response Team Leader", "Emergency Response Team Member"); // All ERT Jobs
  359. $Names = vector("DTX", "Ikiyatiki"); // Characters I use because snowflake
  360. if(find($medicalRadio, $job)){ // Medical Radio
  361. color = "009190";
  362. }
  363. if(find($scienceRadio, $job)){ // Science Radio
  364. color = "993399";
  365. }
  366. if(find($supportRadio, $job)){ // Service / Support Radio
  367. color = "80A000";
  368. }
  369. if(find($securityRadio, $job)){ // Security Radio
  370. color = "A30000";
  371. }
  372. if(find($engineeringRadio, $job)){ // Engineering Radio
  373. color = "A66300";
  374. }
  375. if(find($supplyRadio, $job)){ // Supply Radio
  376. color = "7F6539";
  377. }
  378. if(find($ERTRadio, $job)){ // ERT Radio
  379. color = "5C5C7C";
  380. bold = 1;
  381. $content = "<b>" + $content + "</b>";
  382. $job = "ERT";
  383. }
  384. if ($job == "No id"){ // No ID
  385. $job = "No ID Detected";
  386. }
  387. if($job == "Blueshield"){ // Blueshield
  388. color = "204090";
  389. bold = 1;
  390. $content = "<b>" + $content + "</b>";
  391. }
  392. if($job == "Nanotrasen Representative"){ // NT Rep
  393. color = "204090";
  394. $job = "NT Rep";
  395. bold = 1;
  396. $content = "<b>" + $content + "</b>";
  397. }
  398. if($job == "Chief Medical Officer"){ // CMO
  399. bold = 1;
  400. $content = "<b>" + $content + "</b>";
  401. $job = "CMO";
  402. }
  403. if($job == "Quartermaster"){ // QM
  404. $job = "QM";
  405. }
  406. if($job == "Chief Engineer"){ // CE
  407. bold = 1;
  408. $content = "<b>" + $content + "</b>";
  409. $job = "CE";
  410. }
  411. if($job == "Captain"){ // Captain
  412. color = "204090";
  413. bold = 1;
  414. $content = "<b>" + $content + "</b>";
  415. }
  416. if($job == "Head of Personnel"){ // HoP
  417. bold = 1;
  418. $content = "<b>" + $content + "</b>";
  419. color = "204090";
  420. $job = "HoP";
  421. }
  422. if($job == "Head of Security"){ // HoS
  423. bold = 1;
  424. $content = "<b>" + $content + "</b>";
  425. $job = "HoS";
  426. }
  427. if($job == "Research Director"){ // RD
  428. bold = 1;
  429. $content = "<b>" + $content + "</b>";
  430. $job = "RD";
  431. }
  432. if($source == "Poly"){ // Mutes Poly
  433. $pass = 0;
  434. }
  435. if(find($Names, $source)){ // Script creator color
  436. color = "4286f4";
  437. alt = "Script Creator";
  438. }
  439. workspace = "<span title=\"" + alt + "\" style=\"background-color: #" + cardcolor + "; font-size: 9px; border: 1px #1f1f1f solid\"> "; // Makes the tag before the name
  440. if (underline){
  441. workspace += "<u>";
  442. }
  443. if (bold){
  444. workspace += "<b>";
  445. }
  446. if (color){
  447. workspace += "<span style=\"color: #" + color + ";\">";
  448. }
  449. workspace += $job;
  450. if (color){
  451. workspace += "</span>";
  452. }
  453. if (bold){
  454. workspace += "</b>";
  455. }
  456. if (underline){
  457. workspace += "</u>";
  458. }
  459. workspace += " </span>";
  460. $source = workspace + " " + $source; // Adds tag to source
  461. if(checkforcommand()) {
  462. $content = makebig(); //puts message from command folks in bold
  463. }
  464. if(checkforcommand()) {
  465. $content = makebig(); //puts message from command folks in bold
  466. }
  467.  
  468. // END OF SCRIPT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement