summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2015-03-17 12:24:24 -0500
committerwushin <pasekei@gmail.com>2015-03-17 12:24:24 -0500
commitbadb3c6dc95182c663e15d80d7d95d709cd29480 (patch)
tree1d4b52a23bfd4a852e57fd773bce4c18681a283f
parent5dad557f539306a90bead8855674e6109ef21143 (diff)
downloadevol-tools-badb3c6dc95182c663e15d80d7d95d709cd29480.tar.gz
evol-tools-badb3c6dc95182c663e15d80d7d95d709cd29480.tar.bz2
evol-tools-badb3c6dc95182c663e15d80d7d95d709cd29480.tar.xz
evol-tools-badb3c6dc95182c663e15d80d7d95d709cd29480.zip
Hercules: converter tmw: Replace notintown with myhpltmaxrate,20
-rw-r--r--hercules/code/server/tmw/mobskilldb.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/hercules/code/server/tmw/mobskilldb.py b/hercules/code/server/tmw/mobskilldb.py
index bbef65f..cba7d70 100644
--- a/hercules/code/server/tmw/mobskilldb.py
+++ b/hercules/code/server/tmw/mobskilldb.py
@@ -12,11 +12,17 @@ def convertMobSkillDb():
srcFile = "oldserverdata/world/map/db/mob_skill_db.txt"
dstFile = "newserverdata/db/re/mob_skill_db.txt"
fieldsSplit = re.compile(",")
+ notintown = re.compile("notintown")
+ notintownSub = re.compile("notintown,0")
with open(srcFile, "r") as r:
with open(dstFile, "w") as w:
tpl = readFile("templates/mob_skill_db.tpl")
w.write(tpl)
for line in r:
+ if notintown.search(line):
+ if line[0:2] == "//":
+ line = ''
+ line = notintownSub.sub("myhpltmaxrate,20",line)
if len(line) < 2 or line[0:2] == "//":
w.write(line)
continue