char *remoteport; // Port to connect to on remoteserver
char *remotepass; // Password for the server link
+char *tavernitemdata; // File to store the items available in the tavern
char *itemdata; // File to store the items in
char *playerdata; // File to store player data in
char *dragondata; // File to store current dragon data in
delete [] remotepass;
if (playerdata)
delete [] playerdata;
+ if (tavernitemdata)
+ delete [] tavernitemdata;
if (itemdata)
delete [] itemdata;
if (dragondata)
{
char *buf, *directive, *value;
- #define numdirectives 31
+ #define numdirectives 32
unload_config_file();
"dragon's stats in";
directives[29].desc = "MASTERDATA - File to store the level master stats in";
directives[30].desc = "ITEMDATA - File to store the items in";
+ directives[31].desc = "TAVERNITEMDATA - File in which to store the items that are available in the tavern";
configflags = 0;
strcpy(itemdata, value);
directives[30].done = true;
}
+ else if (stricmp(directive, "TAVERNITEMDATA") == 0)
+ {
+ value = strtok(NULL, "");
+ itemdata = new char[strlen(value) + 1];
+ strcpy(itemdata, value);
+ directives[31].done = true;
+ }
else if (stricmp(directive, "WELCOMEMSG") == 0)
{
// This directive is optional
# Filename to store the items in
itemdata data/items/masteritems.dat
+# Filename to store the items that are available in the tavern
+tavernitemdata data/items/tavern.dat
+
# Filename to store the master stats in
masterdata data/masters.dat