home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / games / tinymud2.zip / CONFIG.H < prev    next >
C/C++ Source or Header  |  1990-09-02  |  6KB  |  160 lines

  1. #include "copyright.h"
  2.  
  3. /* room number of player start location */
  4. #define PLAYER_START ((dbref) 0)
  5.  
  6. /* minimum cost to create various things */
  7. #define OBJECT_COST 10
  8. #define EXIT_COST 1
  9. #define LINK_COST 1
  10. #define ROOM_COST 10
  11.  
  12. /* cost for various special commands */
  13. #ifdef TINYHELL
  14. # define FIND_COST 20
  15. #else  TINYHELL
  16. # define FIND_COST 100
  17. #endif TINYHELL
  18.  
  19. #define PAGE_COST 1
  20.  
  21. /* limit on player name length */
  22. #define PLAYER_NAME_LIMIT 16
  23.  
  24. /* magic cookies */
  25. #define NOT_TOKEN '!'
  26. #define AND_TOKEN '&'
  27. #define OR_TOKEN '|'
  28. #define THING_TOKEN 'x'
  29. #define LOOKUP_TOKEN '*'
  30. #define NUMBER_TOKEN '#'
  31. #define ARG_DELIMITER '='
  32.  
  33. /* magic command cookies */
  34. #define SAY_TOKEN '"'
  35. #define POSE_TOKEN ':'
  36.  
  37. /* amount of object endowment, based on cost */
  38. #define MAX_OBJECT_ENDOWMENT 100
  39. #define OBJECT_ENDOWMENT(cost) (((cost)-5)/5)
  40.  
  41. /* amount at which temple stops being so profitable */
  42. #define MAX_PENNIES 10000
  43.  
  44. /* penny generation parameters */
  45. #define PENNY_RATE 10        /* 1/chance of getting a penny per room */
  46.  
  47. /* costs of kill command */
  48. #define KILL_BASE_COST 100    /* prob = expenditure/KILL_BASE_COST */
  49. #define KILL_MIN_COST 10
  50. #define KILL_BONUS 50        /* paid to victim */
  51.  
  52. /* delimiter for lists of exit aliases */
  53. #define EXIT_DELIMITER ';'
  54.  
  55. /* timing stuff */
  56. #ifdef TINYHELL
  57. # define DUMP_INTERVAL 21600    /* 6 hours (seconds) between dumps */
  58. #else  TINYHELL
  59. # define DUMP_INTERVAL 10800   /* 3 hours between dumps */
  60. #endif TINYHELL
  61.  
  62. #define COMMAND_TIME_MSEC 100    /* time slice length in milliseconds */
  63. #define COMMAND_BURST_SIZE 10    /* commands allowed per user in a burst */
  64. #define COMMANDS_PER_TIME 1    /* commands per time slice after burst */
  65.  
  66. /* maximum amount of queued output */
  67. #define MAX_OUTPUT 16384
  68.  
  69. #ifdef TINYHELL
  70. /*---------------- TinyHELL Welcome, Registration messages ----------------*/
  71. # define TINYPORT 6250
  72. # define INTERNAL_PORT 6249
  73. # define WELCOME_MESSAGE "Welcome to TinyHELL\nTo connect to your existing character, enter \"connect name password\"\nTo create a new character, enter \"create name password\"\nUse the news command to get up-to-date news on program changes.\n\nYou can disconnect using the QUIT command, which must be capitalized as shown.\n\nUse the WHO command to find out who is currently active.\n\n"
  74. # define REGISTER_MESSAGE "In order to get an account, send mail to tinyhell-request@uokmax.ecn.uoknor.edu\nwith the following lines:\n\nPlayer: <playername>\nPassword: <password>\n\nYour character SHOULD be created in 72 hours.\n\n"
  75. #endif TINYHELL
  76.  
  77. #ifdef ISLANDIA
  78. /*---------------- Islandia Welcome, Registration messages ----------------*/
  79. # define TINYPORT 2323
  80. # define INTERNAL_PORT 2322
  81. # define WELCOME_MESSAGE "Welcome to Islandia\nTo connect to your existing character, enter \"connect name password\"\nTo create a new character, enter \"create name password\"\nUse the news command to get up-to-date news on program changes.\n\nYou can disconnect using the QUIT command, which must be capitalized as shown.\n\nUse the WHO command to find out who is currently active.\n\n"
  82. # define REGISTER_MESSAGE "You should not see this message\n\n"
  83. #endif ISLANDIA
  84.  
  85. #ifndef TINYPORT
  86. /*---------------- Generic Welcome, Registration messages ----------------*/
  87. # define TINYPORT 4201
  88. # define INTERNAL_PORT 4200
  89. # define WELCOME_MESSAGE "Welcome to TinyMUD\nTo connect to your existing character, enter \"connect name password\"\nTo create a new character, enter \"create name password\"\nUse the news command to get up-to-date news on program changes.\n\nYou can disconnect using the QUIT command, which must be capitalized as shown.\n\nUse the WHO command to find out who is currently active.\n\n"
  90. # define REGISTER_MESSAGE "You must send mail to the TinyMUD system administrator to get an account.\nUnfortunately, he or she forgot to set an Email address in this part of the\n code.  Good luck!\n\n"
  91. #endif  TINYPORT
  92.  
  93. #define LEAVE_MESSAGE "\n***Disconnected***\n"
  94.  
  95. #define QUIT_COMMAND "QUIT"
  96. #define WHO_COMMAND "WHO"
  97. #define PREFIX_COMMAND "OUTPUTPREFIX"
  98. #define SUFFIX_COMMAND "OUTPUTSUFFIX"
  99.  
  100. #ifdef ISLANDIA
  101. # define HELP_FILE    "/clients/Islandia/lib/help.txt"
  102. # define NEWS_FILE    "/clients/Islandia/lib/news.txt"
  103. # define MOTD_FILE    "/clients/Islandia/lib/motd.txt"
  104. # define CONNECT_FILE    "/clients/Islandia/lib/connect.txt"
  105. # define WIZARD_FILE    "/clients/Islandia/lib/tinker.txt"
  106. # define LOG_FILE    "/clients/Islandia/lib/islandia.log"
  107. #endif ISLANDIA
  108.  
  109. #ifdef TINYHELL
  110. # define HELP_FILE    "/usr/games/lib/tinyhell/help.txt"
  111. # define NEWS_FILE    "/usr/games/lib/tinyhell/news.txt"
  112. # define MOTD_FILE    "/usr/games/lib/tinyhell/motd.txt"
  113. # define WIZARD_FILE    "/usr/games/lib/tinyhell/tinker.txt"
  114. # define LOG_FILE    "/usr/games/lib/tinyhell/gnu.log"
  115. #endif TINYHELL
  116.  
  117. #ifndef HELP_FILE
  118. # define HELP_FILE    "help.txt"
  119. # define NEWS_FILE    "news.txt"
  120. # define MOTD_FILE    "motd.txt"
  121. # define WIZARD_FILE    "wizard.txt"
  122. # define LOG_FILE    "tinymud.log"
  123. #endif HELP_FILE
  124.  
  125. #ifdef LOCKOUT
  126. #define LOCKOUT_FILE "lockout.txt"
  127. #endif /* LOCKOUT */
  128.  
  129. /*
  130.  * This section defines the flag markers used by unparse.c
  131.  * They are shipped so that they default to 1.5.3A without
  132.  * the TINKER flag, and the Islandia settings with the
  133.  * TINKER flag...of course, you can define them any way you
  134.  * want, but then you may have to change other messages to
  135.  * make the letters match their flag types.    --Fuzzy 5/31/90
  136.  */
  137.  
  138. # define TYPE_CODES    "R-EP" /* Room, thing, exit, player */
  139. # define STICKY_MARK    'S'
  140. # define DARK_MARK    'D'
  141. # define LINK_MARK    'L'
  142. # define ABODE_MARK    'A'
  143. # define HAVEN_MARK    'H'
  144. # define UNWANTED_MARK    'U'
  145. # define MALE_MARK    'M'
  146. # define FEMALE_MARK    'F'
  147. # define NEUTER_MARK    'N'
  148.  
  149. #ifndef TINKER
  150. # define WIZARD_MARK    'W'  /* For Wizard */
  151. # define TEMPLE_MARK    'T'  /* For Tinker */
  152. # define ROBOT_MARK    'C'  /* For Cybernetic */
  153. # define BUILDER_MARK    'B'  /* For Builder */
  154. #else TINKER
  155. # define WIZARD_MARK    'T'  /* For Tinker */
  156. # define TEMPLE_MARK    'J'  /* For Junkpile */
  157. # define ROBOT_MARK    'B'  /* For Bot */
  158. # define BUILDER_MARK    'C'  /* For Constructor/Creator */
  159. #endif TINKER
  160.