]>
Commit | Line | Data |
---|---|---|
20d5d721 | 1 | # This is an example configuration file for GameServ that contains every |
2 | # configuration directive necessary to properly load GameServ | |
3 | # You should read this file along with the Changes file for any updates | |
4 | # and changes to the config file directives. | |
5 | ||
6 | # You should copy this file to gameserv.conf then edit it. gameserv.conf | |
7 | # is the name of the config file that will be loaded at runtime. | |
8 | ||
9 | ########## IRC STUFF ########## | |
10 | ||
85ce9d3e | 11 | # Comments can only begin at the beginning of a line, and must begin with a pound (#) |
12 | # GameServ Nickname | |
13 | s_GameServ GameServ | |
14 | ||
15 | # GameServ Host | |
a948af1c | 16 | gshost yourdomain.com |
85ce9d3e | 17 | |
18 | # GameServ username (ie. username@host) | |
19 | gsident GameServ | |
20 | ||
21 | # Gameserv Psuedo Server Name | |
a948af1c | 22 | servername gameserv.yourdomain.com |
85ce9d3e | 23 | |
24 | # GameServ Forest channel | |
25 | c_Forest #forest | |
26 | ||
ff7d02f3 | 27 | # True or false - whether or not to listen for commands on c_Forest |
28 | listenonc_forest true | |
29 | ||
85ce9d3e | 30 | # GameServ Forest Channel Topic |
31 | c_ForestTopic The forest is dark and gloomy. | |
32 | ||
33 | # The hostname/ip of the real ircd gameserv will be connected to | |
a948af1c | 34 | remoteserver 127.0.0.1 |
85ce9d3e | 35 | |
36 | # The port on the real ircd gameserv will be connecting to | |
a948af1c | 37 | remoteport 6667 |
85ce9d3e | 38 | |
39 | # The password for linking to the real ircd | |
a948af1c | 40 | remotepass linkpass |
85ce9d3e | 41 | |
285f72cf | 42 | # The hostname of the local machine you wish to bind to when connecting |
43 | localhost 0.0.0.0 | |
44 | ||
5431156e | 45 | # This is a true/false type config directive. |
46 | # True: GameServ will attempt to identify with nickserv | |
47 | # False: It will not (DEFAULT) | |
48 | usenickserv false | |
49 | ||
50 | # Your NickServ's nickname on your network. GameServ will use this to identify | |
51 | # CAUTION: This will intentionally cause GameServ to send a PRIVMSG to your services | |
52 | # *** This could cause an infinite loop if you use the USEPRIVMSG directive *** | |
53 | # Either comment out USEPRIVMSG or add your services server to the ignore list | |
54 | nsname NickServ | |
55 | ||
56 | # The password GameServ will use to identify with your NickServ | |
57 | nspass nickpassword | |
58 | ||
028aa0c6 | 59 | # Seconds to wait on load before displaying "Hello Nick" to new users |
60 | # joining your network | |
61 | welcomedelay 10 | |
62 | ||
63 | # Message that is displayed to new clients that join the IRC Network | |
18b84d11 | 64 | # Welcomemsg is a formatted string. You MUST include one %s and only |
65 | # one %s. Do not put any %d %ld or other %s into this string! You will | |
66 | # break something, because there will be a leftover argument when it is | |
67 | # called in tcpclient.cpp, because that expects one %s and nothing else. | |
71a1182a | 68 | # You can use <S as many times as you want, though, because that is automatically |
69 | # Replaced with the s_GameServ variable. | |
25e56e30 | 70 | # *****Comment this out to disable sending a welcome message***** |
71a1182a | 71 | welcomemsg Hello, %s! This network utilizes a services package called GameServ. For info on how to play the game, type /msg <S help. |
028aa0c6 | 72 | |
448a1531 | 73 | # This is an optional config file entry that allows you to specify |
74 | # up to 32 servers that gameserv should completly ignore. | |
75 | # The list must be on one line, and there must be a space inbetween | |
76 | # each servername. Comment out or delete this line if you don't want | |
77 | # gameserv to ignore any servers. | |
25e56e30 | 78 | # ***** Does not work on P10 servers yet ***** |
448a1531 | 79 | ignoreservers services.yourdomain.com stats.yourdomain.com |
80 | ||
6f727d4c | 81 | # This is an optional config file entry that allows you to make |
82 | # gameserv use privmsg instead of notice (/msg instead of /notice). | |
83 | # Uncomment it to enable using /msg, comment it or delete it to use /notice | |
84 | #USEPRIVMSG | |
85 | ||
86 | # This is an optional config file entry that allows you to specify | |
87 | # whether or not gameserv should be an oper or not. | |
88 | # Uncomment to make gameserv oper, comment it or delete it to leave gameserv | |
89 | # as a regular user | |
90 | #BOPER | |
91 | ||
0799ad9c | 92 | # This is a true/false type config directive. |
93 | # True: GameServ will send a message to the forest channel every time the | |
94 | # player database is updated | |
95 | # False: It will not (DEFAULT) | |
96 | SAVEDNOTICE false | |
97 | ||
20d5d721 | 98 | ########## END IRC STUFF ########## |
99 | ||
85ce9d3e | 100 | # Filename to store player data in. |
2b297f6a | 101 | playerdata data/players.dat |
45a84400 | 102 | |
ec4605a9 | 103 | # Filename to store the items in |
104 | itemdata data/items/masteritems.dat | |
105 | ||
3f107f27 | 106 | # Filename to store the items that are abailable in the store |
107 | storeitemdata data/items/store.dat | |
108 | ||
c7bceafd | 109 | # Filename to store the items that are available in the tavern |
110 | tavernitemdata data/items/tavern.dat | |
111 | ||
3209db25 | 112 | # Filename to store the master stats in |
113 | masterdata data/masters.dat | |
114 | ||
24c4f29e | 115 | # Filename to store current dragon stats in. |
30c535d6 | 116 | dragondata data/currentdragon.dat |
24c4f29e | 117 | |
67b4ac9a | 118 | # Directory to look for scripts in - No trailing / necessary |
119 | scriptdir data/scripts | |
120 | ||
30aa7246 | 121 | # This is the filename for the gameserv process ID |
122 | # This should be different between .conf files so you have different pid | |
123 | # files saved for each process (if you want) | |
124 | # If left the same for all processes, the pid file will hold the process | |
125 | # Id for the last run process | |
126 | pidfile gameserv.pid | |
127 | ||
afe0863e | 128 | # Filename to store news data in |
129 | newsdata news.dat | |
130 | ||
30aa7246 | 131 | |
45a84400 | 132 | # Password to control SHUTDOWN, LOAD, and SAVE |
133 | adminpass apass | |
bf2cabcd | 134 | |
8450c018 | 135 | # How often (in seconds) to save the player database. In case of accidental |
136 | # shutdown or crash, this should be set fairly low. 180 seconds = 3 minutes. | |
137 | updateperiod 180 | |
20d5d721 | 138 | |
25e56e30 | 139 | # How often (in seconds) to refresh all players. |
140 | # 86400 Seconds in a day | |
141 | # 43200 Seconds in 12 hours | |
142 | # 3600 Seconds in an hour | |
143 | refreshperiod 86400 | |
144 | ||
14e24ba1 | 145 | # How many days until unused accounts at level 1 are deleted |
146 | level1expire 14 | |
147 | ||
148 | # How many days until unused accounts at all other levels are deleted | |
149 | defaultexpire 30 | |
150 | ||
1ee4a31b | 151 | # Maximum number of items a player can carry |
152 | maxitems 100 | |
153 | ||
7fdd9c86 | 154 | # How many forest fights per day should everyone get |
155 | # (this is the number of fights that will roll over if you say true below) | |
20d5d721 | 156 | forestfights 100 |
157 | ||
7fdd9c86 | 158 | # True or False - Should GameServ roll over the forestfights |
159 | rolloverforestfights false | |
160 | ||
161 | # How often (in seconds) ro rollover forest fights | |
162 | # 86400 Seconds in a day | |
163 | # 43200 Seconds in 12 hours | |
164 | # 3600 Seconds in an hour | |
165 | rolloverperiod 864 | |
1fe6fccd | 166 | |
167 | # Maximum number of forest fights to roll over total. Forest fights per player will never | |
168 | # Roll over to be above this number | |
7fdd9c86 | 169 | maxforestfights 100 |
170 | ||
171 | # Number of forest fights to roll over every rolloverperiod. | |
172 | numrolloverfights 1 | |
1fe6fccd | 173 | |
8450c018 | 174 | # This is the maximum number of levels above you a player |
175 | # can be to be able to fight them. | |
176 | # ie. If this is set to 2, you can fight players two levels above you | |
177 | # eg. a level 1 player can fight a level 2 or 3 player, but not 4+ | |
02c8dcd3 | 178 | # HINT: Set maxbfightdistance and maxafightdistance to 0 to allow same level |
179 | # player fights only | |
180 | ||
8450c018 | 181 | maxafightdistance 2 |
182 | ||
183 | # This is the maximum number of levels below you a player | |
184 | # can be to be able to fight them. | |
185 | # ie. If this is set to 1, you can fight players 1 level below you | |
186 | # eg. a level 12 player can fight a level 11 player, but not 10 or below | |
02c8dcd3 | 187 | # HINT: Set maxbfightdistance and maxafightdistance to 0 to allow same level |
188 | # player fights only | |
8450c018 | 189 | maxbfightdistance 1 |
190 | ||
2ca6a3de | 191 | # Leave this as is if you want to enable fair fight checking |
192 | # This will not let a player fight another player if they will | |
193 | # Kill the other player with 1 hit... useful for those pesky Level 1 players | |
194 | # That have the best armor and weapons because they play way too much! | |
195 | fairfights true | |
196 | ||
40251952 | 197 | # This is the maximum time (in seconds) that a player may remain idle |
198 | # before something naughty happens to them :) | |
199 | maxidletime 300 | |
200 | ||
201 | # This is the period (in seconds) that gameserv will wait between | |
202 | # checking the entire players list for idlers. | |
203 | # Warning: bigger networks should not set this too low! | |
204 | # Minor Warning: This should be fairly close to the maxidletime, but | |
205 | # it doesn't have to be. The farther the two are apart, the more | |
206 | # random it gets. | |
207 | idlecheckperiod 300 | |
208 | ||
a0851860 | 209 | # This is the maximum length that a nickname can be |
210 | maxnicklen 20 | |
211 | ||
20d5d721 | 212 | # Delete or comment this line so that GameServ will Load |
213 | die You must read the entire config file! |