Advertisement
Guest User

ss13 Telecomm Script Updated

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