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.

185 lines
7.1 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. /letter_returned
  51. };
  52. #ALIAS {give letter to {f|F}rank} {
  53. #send {give letter to Frank};
  54. /letter_returned;
  55. };
  56. #NOP =======================
  57. #NOP ===== Actions =====
  58. #NOP =======================
  59. #ACTION {^You offer to give a letter to Frank} {
  60. #nop letter_returned;
  61. };
  62. #ACTION {^You have been awarded %d experience points and given %2.$} {
  63. #nop You have been awarded 60407 experience points and given 2 Agatean Empire ten-rhinu and 5 Agatean Empire rhinu.
  64. #var {missions[letter][last_difficulty]} {0};
  65. #if {&dead_letter_rewards[%2]} {
  66. #var {missions[letter][last_difficulty]} {$dead_letter_rewards[%2]};
  67. };
  68. };
  69. #ACTION {^You salute smartly as you deliver a letter} {
  70. #nop If we don't have a difficulty match, we can't act.
  71. #if {"$missions[letter][last_difficulty]" == "0"} {
  72. #return;
  73. };
  74. #nop If we know the difficulty, set the appropriate timer;
  75. #switch {$missions[letter][last_difficulty]} {
  76. #case {1} {
  77. #nop Local;
  78. #if {&missions[letter][active_list][$GMCP[charinfo][capname]][local]} { #break; };
  79. #format {missions[letter][active_list][$GMCP[charinfo][capname]][local]} {%T};
  80. #line sub variable {
  81. #format {delayname} {letter_distant_%s} {$GMCP[charinfo][capname]};
  82. #delay {$delayname} {
  83. #format {letter_timer_line} {%c[MT] %c*%c %s can now do another local letter.} {bold blue} {bold yellow} {bold blue} {$GMCP[charinfo][capname]};
  84. #echo {$letter_timer_line};
  85. #unvar {letter_timer_line};
  86. #unvar {missions[letter][active_list][$GMCP[charinfo][capname]][local]};
  87. } {3600};
  88. };
  89. #unvar {delayname};
  90. };
  91. #case {2} {
  92. #nop Closeby;
  93. #if {&missions[letter][active_list][$GMCP[charinfo][capname]][close]} { #break; };
  94. #format {missions[letter][active_list][$GMCP[charinfo][capname]][close]} {%T};
  95. #line sub variable {
  96. #format {delayname} {letter_distant_%s} {$GMCP[charinfo][capname]};
  97. #delay {$delayname} {
  98. #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]};
  99. #echo {$letter_timer_line};
  100. #unvar {letter_timer_line};
  101. #unvar {missions[letter][active_list][$GMCP[charinfo][capname]][close]};
  102. } {3600};
  103. };
  104. #unvar {delayname};
  105. };
  106. #case {3} {
  107. #nop Faraway;
  108. #if {&missions[letter][active_list][$GMCP[charinfo][capname]][far]} { #break; };
  109. #format {missions[letter][active_list][$GMCP[charinfo][capname]][far]} {%T};
  110. #line sub variable {
  111. #format {delayname} {letter_distant_%s} {$GMCP[charinfo][capname]};
  112. #delay {$delayname} {
  113. #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]};
  114. #echo {$letter_timer_line};
  115. #unvar {letter_timer_line};
  116. #unvar {missions[letter][active_list][$GMCP[charinfo][capname]][far]};
  117. } {3600};
  118. };
  119. #unvar {delayname};
  120. };
  121. #case {4} {
  122. #nop Distantland;
  123. #if {&missions[letter][active_list][$GMCP[charinfo][capname]][distant]} { #break; };
  124. #format {missions[letter][active_list][$GMCP[charinfo][capname]][distant]} {%T};
  125. #line sub variable {
  126. #format {delayname} {letter_distant_%s} {$GMCP[charinfo][capname]};
  127. #delay {$delayname} {
  128. #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]};
  129. #echo {$letter_timer_line};
  130. #unvar {letter_timer_line};
  131. #unvar {missions[letter][active_list][$GMCP[charinfo][capname]][distant]};
  132. } {3600};
  133. };
  134. #unvar {delayname};
  135. };
  136. #case {5} {
  137. #nop Difficultcustomer;
  138. #if {&missions[letter][active_list][$GMCP[charinfo][capname]][difficult]} { #break; };
  139. #format {missions[letter][active_list][$GMCP[charinfo][capname]][difficult]} {%T};
  140. #line sub variable {
  141. #format {delayname} {letter_distant_%s} {$GMCP[charinfo][capname]};
  142. #delay {$delayname} {
  143. #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]};
  144. #echo {$letter_timer_line};
  145. #unvar {letter_timer_line};
  146. #unvar {missions[letter][active_list][$GMCP[charinfo][capname]][difficult]};
  147. } {3600};
  148. };
  149. #unvar {delayname};
  150. };
  151. };
  152. #var {missions[letter][last_difficulty]} {0};
  153. };
  154. #CLASS {missiontimers_letters} {close};