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.

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