summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlang/updatelang.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/updatelang.py b/lang/updatelang.py
index 7c5fb71..2c0a803 100755
--- a/lang/updatelang.py
+++ b/lang/updatelang.py
@@ -346,9 +346,22 @@ def dumpTranslations():
print "\n"
+def loadMobNames(dir):
+ with open(dir + "/mob_db.txt", "r") as r:
+ cnt = -1
+ for line in r:
+ cnt = cnt + 1
+ if len(line) < 1 or line[0:2] == "//":
+ continue
+ parts = itemsplit.split(line)
+ if len(parts) < 3:
+ continue
+ addStr(parts[2].strip(), line, "mob_db.txt", cnt, True)
+
rootPath = "../../server-data/"
loadItemDb(rootPath + "db/re")
+loadMobNames(rootPath + "db/re")
collectScriptStrings(rootPath + "/npc", "npc")
collectMessages(rootPath + "/conf/messages.conf")
loadFiles(rootPath + "/langs")