TinTin++ Configs for DiscworldMUD
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
2.5 KiB

6 years ago
  1. #CLASS {deadletter} {kill};
  2. #CLASS {deadletter} {open};
  3. #VAR {distant_land_targets} {
  4. {Boy Willie}{Boy [Willie]}
  5. {Disembowel-Meself-Honourably Dibhala}{Disembowel-Meself-Honourably [Dibhala]}
  6. {Glod-san}{[Glod-san]}
  7. {Laggy-san}{[Laggy-san]}
  8. {Lon Fah Lo}{Lon Fah [Lo]}
  9. {Mad Hamish}{Mad [Hamish]}
  10. {No Go Wan}{No Go [Wan]}
  11. {Quisoda}{[Quisoda]}
  12. {Ruto of Fish}{[Ruto] of Fish}
  13. {Ryattenoki}{[Ryattenoki]}
  14. {Shi Do Gai}{Shi Do [Gai]}
  15. {Lap-lip}{[Lap-lip]}
  16. {Lip-phon Lap-top}{Lip-phon [Lap-top]}
  17. {Mihk-gran-bohp}{Mihk-gran-[bohp]}
  18. {Phos-phor}{[Phos]-phor}
  19. {Very Reverend Khepresh}{Very Reverend [Khepresh]}
  20. {Yclept}{[Yclept]}
  21. {Tuffy}{[Tuffy]}
  22. {Casanunda}{[Casanunda]}
  23. {Greig Schwitz}{Greig [Schwitz]}
  24. {Noobie}{[Noobie]}
  25. {Tfat Chick}{Tfat [Chick]}
  26. {Cut Me Own Hand Off Dhblah}{Cut Me Own Hand Off [Dhblah]}
  27. {Miss Pennie Laced}{Miss Pennie [Laced]}
  28. {Berti Boggis}{[Berti] Boggis}
  29. {The Proprietor}{The Proprietor}
  30. }
  31. #alias {/solveletter} {
  32. #if {&{letter_lines[1]}} {
  33. #var {current_match_line} {^$letter_lines[1]$};
  34. #replace {current_match_line} {_} {%.};
  35. #foreach {$distant_land_targets[]} {target} {
  36. #regex {$target} {$current_match_line} {
  37. #format {letter_solution_line} {%c[DL] %c*%c Deliver to %c%s%c.} {bold blue} {bold yellow} {bold blue} {bold green} {$distant_land_targets[$target]} {bold blue};
  38. #echo {$letter_solution_line};
  39. };
  40. }
  41. };
  42. };
  43. #NOP ==[Halt Parsing Letter]==
  44. #alias {/stopparsingletter} {
  45. #unvar {parsing_dead_letter};
  46. /solveletter;
  47. };
  48. #action {^Deliver by %1.$} {
  49. #if {&{parsing_dead_letter}} {
  50. /stopparsingletter;
  51. }
  52. };
  53. #action {does not have anything written on it.} {
  54. #if {&{parsing_dead_letter}} {
  55. /stopparsingletter;
  56. }
  57. };
  58. #action {Cannot find "letter", no match.} {
  59. #if {&{parsing_dead_letter}} {
  60. /stopparsingletter;
  61. }
  62. };
  63. #action {You are too busy fighting to read at the moment.} {
  64. #if {&{parsing_dead_letter}} {
  65. /stopparsingletter;
  66. }
  67. };
  68. #NOP ==[Catch-all to grab letter lines, store only lines with a '_']==
  69. #action {^%*$} {
  70. #if {&{parsing_dead_letter}} {
  71. #regex {%1} {%*_%*} {
  72. #list {letter_lines} {add} {%1};
  73. };
  74. }
  75. } {9};
  76. #NOP ==[Alias to attempt solve of letter in inventory]==
  77. #ALIAS {sl} {
  78. #send {read letter};
  79. #var {parsing_dead_letter} {0};
  80. #list {letter_lines} {create};
  81. }
  82. #CLASS {deadletter} {close};