summaryrefslogtreecommitdiff
path: root/hercules/code/server/itemdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'hercules/code/server/itemdb.py')
-rw-r--r--hercules/code/server/itemdb.py24
1 files changed, 1 insertions, 23 deletions
diff --git a/hercules/code/server/itemdb.py b/hercules/code/server/itemdb.py
index e91682d..b0a2bff 100644
--- a/hercules/code/server/itemdb.py
+++ b/hercules/code/server/itemdb.py
@@ -5,32 +5,10 @@
import re
+from code.configutils import *
from code.fileutils import *
from code.stringutils import *
-def writeIntField(w, name, value):
- if value == "":
- value = "0"
- w.write(" {0}: {1}\n".format(name, value))
-
-def writeStrField(w, name, value):
- w.write(" {0}: \"{1}\"\n".format(name, value))
-
-def writeSubField(w, name, value):
- w.write(" {0}: {1}\n".format(name, value));
-
-def writeStartBlock(w, text):
- w.write(" {0}: {{\n".format(text));
-
-def writeEndBlock(w):
- w.write(" }\n");
-
-def writeStartScript(w, name):
- w.write(" {0}: <\"\n".format(name))
-
-def writeEndScript(w):
- w.write(" \">\n")
-
def convertItemDb():
srcFile = "oldserverdata/db/item_db.txt"
dstFile = "newserverdata/db/re/item_db.conf"