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.

56 lines
2.6 KiB

  1. #CLASS {missiontimers_sausages} {kill};
  2. #CLASS {missiontimers_sausages} {open};
  3. #var {missions[sausage][active_list]} {};
  4. #var {missions[sausage][retry_list]} {};
  5. #nop You have four hours to deliver 150 fresh - line to start it all?
  6. #ACTION {^You have four hours to deliver %d fresh} {
  7. #action {^Sam Slager says to%+you: I'll have to take care of this one later} {
  8. #nop [A mission started, start checking for resignations];
  9. #nop Are we already waiting on a timer for this character?
  10. #list {missions[sausage][retry_list]} {find} {$GMCP[charinfo][name]} {sausage_current};
  11. #if {$sausage_current == 0} {
  12. #list {missions[sausage][retry_list]} {add} {$GMCP[charinfo][name]};
  13. #line sub variable {
  14. #delay {600} {
  15. #nop Print message
  16. #format {sausage_retry_line} {%c[MH] %c*%c %s%c can now try a new sausage mission from Sam Slager.} {bold blue} {bold yellow} {bold green}{$GMCP[charinfo][name]} {bold blue};
  17. #echo {$sausage_retry_line};
  18. #unvar {sausage_retry_line};
  19. #nop Remove player from state list
  20. #list {missions[sausage][retry_list]} {find} {$GMCP[charinfo][name]} {sausage_current_inner};
  21. #list {missions[sausage][retry_list]} {delete} {$sausage_current_inner};
  22. };
  23. };
  24. };
  25. #unvar {sausage_current};
  26. };
  27. #action {^Sam Slager says to%+you: Thank you, that's all} {
  28. #nop [A mission started, start checking for completions];
  29. #nop Are we already waiting on a timer for this character?
  30. #list {missions[sausage][active_list]} {find} {$GMCP[charinfo][name]} {sausage_current};
  31. #if {$sausage_current == 0} {
  32. #list {missions[sausage][active_list]} {add} {$GMCP[charinfo][name]};
  33. #line sub variable {
  34. #delay {3600} {
  35. #nop Print message
  36. #format {sausage_timer_line} {%c[MH] %c*%c %s can get full XP for a sausage mission.} {bold blue} {bold yellow} {bold blue} {$GMCP[charinfo][name]};
  37. #echo {$sausage_timer_line};
  38. #unvar {sausage_timer_line};
  39. #nop Remove player from state list
  40. #list {missions[sausage][active_list]} {find} {$GMCP[charinfo][name]} {sausage_current_inner};
  41. #list {missions[sausage][active_list]} {delete} {$sausage_current_inner};
  42. };
  43. };
  44. };
  45. #unvar {sausage_current};
  46. };
  47. };
  48. #CLASS {missiontimers_sausages} {close};