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.

194 lines
7.6 KiB

  1. #CLASS {missiontimers_letters} {kill};
  2. #CLASS {missiontimers_letters} {open};
  3. #NOP =======================
  4. #NOP ===== VARIABLES =====
  5. #NOP =======================
  6. #NOP [1 = Local, 2 = Far Away, 3 = Distant Lands, 4 = Difficult Customer]
  7. #VAR {dead_letter_rewards} {
  8. {4 Ankh-Morpork dollars}{1}
  9. {8 Ankh-Morpork dollars}{2}
  10. {3 Djelian talents and 5 Djelian tooni}{3}
  11. {4 Lancre crowns and 2 Lancre shillings}{3}
  12. {7 Ephebian decadrachmae and 2 Ephebian stater}{3}
  13. {2 Ankh-Morpork ten-dollars}{3}
  14. {2 Genuan forins and 5 Genuan livres}{3}
  15. {1 Klatchian ten dinar and 2 Klatchian two dinar coins}{3}
  16. {1 Agatean Empire ten-rhinu and 5 Agatean Empire rhinu}{3}
  17. {7 Lancre crowns and 5 Lancre shillings}{4}
  18. {2 Agatean Empire ten-rhinu and 5 Agatean Empire rhinu}{4}
  19. {6 Djelian talents and 5 Djelian tooni}{4}
  20. {4 Genuan forins and 3 Genuan livres}{4}
  21. {3 Ankh-Morpork ten-dollars and 2 Ankh-Morpork dollars}{4}
  22. {1 Ephebian mina and 5 Ephebian decadrachmae}{4}
  23. {1 Agatean Empire fifty-rhinu and 2 Agatean Empire ten-rhinu}{5}
  24. {9 Ankh-Morpork ten-dollars}{5}
  25. {1 Lancre sovereign and 1 Lancre tencrown}{5}
  26. {3 Ephebian minae and 5 Ephebian decadrachmae}{5}
  27. {1 Genuan ducat and 2 Genuan forins}{5}
  28. }
  29. #VARIABLE {missions[letter]} {
  30. {last_difficulty}{0}
  31. }
  32. #NOP =======================
  33. #NOP ===== Aliases =====
  34. #NOP =======================
  35. #ALIAS {/letter_returned} {
  36. #format {missions[letter][retry_list][$GMCP[charinfo][capname]]} {%T};
  37. #line sub variable {
  38. #format {delayname} {letter_retry_%s} {$GMCP[charinfo][capname]};
  39. #delay {$delayname} {
  40. #format {letter_timer_line} {%c[MT] %c*%c %s can now request another letter from Frank.} {bold blue} {bold yellow} {bold blue} {$GMCP[charinfo][capname]};
  41. #echo {$letter_timer_line};
  42. #unvar {letter_timer_line};
  43. #unvar {missions[letter][retry_list][$GMCP[charinfo][capname]]};
  44. } {600};
  45. };
  46. #unvar {delayname};
  47. };
  48. #ALIAS {return letter} {
  49. #send {return letter};
  50. #format {missions[letter][retry_list][$GMCP[charinfo][capname]]} {%T};
  51. #line sub variable {
  52. #format {delayname} {letter_retry_%s} {$GMCP[charinfo][capname]};
  53. #delay {$delayname} {
  54. #format {letter_timer_line} {%c[MT] %c*%c %s can now request another letter from Frank.} {bold blue} {bold yellow} {bold blue} {$GMCP[charinfo][capname]};
  55. #echo {$letter_timer_line};
  56. #unvar {letter_timer_line};
  57. #unvar {missions[letter][retry_list][$GMCP[charinfo][capname]]};
  58. } {600};
  59. };
  60. #unvar {delayname};
  61. #nop /letter_returned;
  62. };
  63. #NOP =======================
  64. #NOP ===== Actions =====
  65. #NOP =======================
  66. #ACTION {^You offer to give a letter to Frank} {
  67. #nop letter_returned;
  68. };
  69. #ACTION {^You have been awarded %d experience points and given %2.$} {
  70. #nop You have been awarded 60407 experience points and given 2 Agatean Empire ten-rhinu and 5 Agatean Empire rhinu.
  71. #var {missions[letter][last_difficulty]} {0};
  72. #if {&dead_letter_rewards[%2]} {
  73. #var {missions[letter][last_difficulty]} {$dead_letter_rewards[%2]};
  74. };
  75. };
  76. #ACTION {^You salute smartly as you deliver a letter} {
  77. #nop If we don't have a difficulty match, we can't act.
  78. #if {"$missions[letter][last_difficulty]" == "0"} {
  79. #return;
  80. };
  81. #nop If we know the difficulty, set the appropriate timer;
  82. #switch {$missions[letter][last_difficulty]} {
  83. #case {1} {
  84. #nop Local;
  85. #if {&missions[letter][active_list][$GMCP[charinfo][capname]][local]} { #break; };
  86. #format {missions[letter][active_list][$GMCP[charinfo][capname]][local]} {%T};
  87. #line sub variable {
  88. #format {delayname} {letter_distant_%s} {$GMCP[charinfo][capname]};
  89. #delay {$delayname} {
  90. #format {letter_timer_line} {%c[MT] %c*%c %s can now do another local letter.} {bold blue} {bold yellow} {bold blue} {$GMCP[charinfo][capname]};
  91. #echo {$letter_timer_line};
  92. #unvar {letter_timer_line};
  93. #unvar {missions[letter][active_list][$GMCP[charinfo][capname]][local]};
  94. } {3600};
  95. };
  96. #unvar {delayname};
  97. };
  98. #case {2} {
  99. #nop Closeby;
  100. #if {&missions[letter][active_list][$GMCP[charinfo][capname]][close]} { #break; };
  101. #format {missions[letter][active_list][$GMCP[charinfo][capname]][close]} {%T};
  102. #line sub variable {
  103. #format {delayname} {letter_distant_%s} {$GMCP[charinfo][capname]};
  104. #delay {$delayname} {
  105. #format {letter_timer_line} {%c[MT] %c*%c %s can now do another close-by letter.} {bold blue} {bold yellow} {bold blue} {$GMCP[charinfo][capname]};
  106. #echo {$letter_timer_line};
  107. #unvar {letter_timer_line};
  108. #unvar {missions[letter][active_list][$GMCP[charinfo][capname]][close]};
  109. } {3600};
  110. };
  111. #unvar {delayname};
  112. };
  113. #case {3} {
  114. #nop Faraway;
  115. #if {&missions[letter][active_list][$GMCP[charinfo][capname]][far]} { #break; };
  116. #format {missions[letter][active_list][$GMCP[charinfo][capname]][far]} {%T};
  117. #line sub variable {
  118. #format {delayname} {letter_distant_%s} {$GMCP[charinfo][capname]};
  119. #delay {$delayname} {
  120. #format {letter_timer_line} {%c[MT] %c*%c %s can now do another far away letter.} {bold blue} {bold yellow} {bold blue} {$GMCP[charinfo][capname]};
  121. #echo {$letter_timer_line};
  122. #unvar {letter_timer_line};
  123. #unvar {missions[letter][active_list][$GMCP[charinfo][capname]][far]};
  124. } {3600};
  125. };
  126. #unvar {delayname};
  127. };
  128. #case {4} {
  129. #nop Distantland;
  130. #if {&missions[letter][active_list][$GMCP[charinfo][capname]][distant]} { #break; };
  131. #format {missions[letter][active_list][$GMCP[charinfo][capname]][distant]} {%T};
  132. #line sub variable {
  133. #format {delayname} {letter_distant_%s} {$GMCP[charinfo][capname]};
  134. #delay {$delayname} {
  135. #format {letter_timer_line} {%c[MT] %c*%c %s can now do another distant land letter.} {bold blue} {bold yellow} {bold blue} {$GMCP[charinfo][capname]};
  136. #echo {$letter_timer_line};
  137. #unvar {letter_timer_line};
  138. #unvar {missions[letter][active_list][$GMCP[charinfo][capname]][distant]};
  139. } {3600};
  140. };
  141. #unvar {delayname};
  142. };
  143. #case {5} {
  144. #nop Difficultcustomer;
  145. #if {&missions[letter][active_list][$GMCP[charinfo][capname]][difficult]} { #break; };
  146. #format {missions[letter][active_list][$GMCP[charinfo][capname]][difficult]} {%T};
  147. #line sub variable {
  148. #format {delayname} {letter_distant_%s} {$GMCP[charinfo][capname]};
  149. #delay {$delayname} {
  150. #format {letter_timer_line} {%c[MT] %c*%c %s can now do another difficult customer letter.} {bold blue} {bold yellow} {bold blue} {$GMCP[charinfo][capname]};
  151. #echo {$letter_timer_line};
  152. #unvar {letter_timer_line};
  153. #unvar {missions[letter][active_list][$GMCP[charinfo][capname]][difficult]};
  154. } {3600};
  155. };
  156. #unvar {delayname};
  157. };
  158. };
  159. #var {missions[letter][last_difficulty]} {0};
  160. };
  161. #CLASS {missiontimers_letters} {close};