summaryrefslogtreecommitdiff
path: root/hercules/code/server/tmw/itemdb.py
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-25 17:29:48 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-25 18:09:12 +0300
commitd305488c2eb06f703d2948b4a4b0ecb2d9d9efa7 (patch)
tree0e48389b0ffdb07a23743e2b193353f748d154d9 /hercules/code/server/tmw/itemdb.py
parent7369a2d3e7ba139097947382b284625d3f7c60c4 (diff)
downloadtools-d305488c2eb06f703d2948b4a4b0ecb2d9d9efa7.tar.gz
tools-d305488c2eb06f703d2948b4a4b0ecb2d9d9efa7.tar.bz2
tools-d305488c2eb06f703d2948b4a4b0ecb2d9d9efa7.tar.xz
tools-d305488c2eb06f703d2948b4a4b0ecb2d9d9efa7.zip
hercules: into converter add support for new mob_db format.
Untested on real server.
Diffstat (limited to 'hercules/code/server/tmw/itemdb.py')
-rw-r--r--hercules/code/server/tmw/itemdb.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/hercules/code/server/tmw/itemdb.py b/hercules/code/server/tmw/itemdb.py
index ecd69ca..6e3145c 100644
--- a/hercules/code/server/tmw/itemdb.py
+++ b/hercules/code/server/tmw/itemdb.py
@@ -170,8 +170,9 @@ def convertItemDb(isNew):
for f in xrange(0, sz):
rows[f] = rows[f].strip()
- items[rows[1]] = {'id':rows[0],'buy':rows[4]}
- items[rows[0]] = {'id':rows[0],'buy':rows[4]}
+ items[rows[1]] = {'id':rows[0],'buy':rows[4],'name':rows[1]}
+ items[rows[0]] = {'id':rows[0],'buy':rows[4],'name':rows[1]}
+ items[int(rows[0])] = {'id':rows[0],'buy':rows[4],'name':rows[1]}
# set all values then write
w.write("{\n")
c.write("{0}\t{1}\n".format(rows[1], rows[0]))