diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-01 17:39:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-01 17:39:33 +0300 |
commit | 4edd7afd908c34908ddade40db4c240f1828e1b6 (patch) | |
tree | c3aa07655c535c2df9601f93ab10fa86b1eb78eb /hercules/code/server/npcs.py | |
parent | fa59da14739b5548e31d4ee7be475fbf66f6539a (diff) | |
download | evol-tools-4edd7afd908c34908ddade40db4c240f1828e1b6.tar.gz evol-tools-4edd7afd908c34908ddade40db4c240f1828e1b6.tar.bz2 evol-tools-4edd7afd908c34908ddade40db4c240f1828e1b6.tar.xz evol-tools-4edd7afd908c34908ddade40db4c240f1828e1b6.zip |
hercules: add parsing getmapmobs.
Diffstat (limited to 'hercules/code/server/npcs.py')
-rw-r--r-- | hercules/code/server/npcs.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hercules/code/server/npcs.py b/hercules/code/server/npcs.py index 647ba63..b2cac36 100644 --- a/hercules/code/server/npcs.py +++ b/hercules/code/server/npcs.py @@ -177,4 +177,12 @@ def processStrReplace(tracker): line = line.replace("setskill ", "addtoskill ") line = line.replace("zeny", "Zeny") line = line.replace("countitem(", "countitemcolor(") + idx = line.find("getmapmobs(") + if idx >= 0: + idx2 = line.find("\"", idx + len("getmapmobs(") + 1) + idx3 = line.find(")", idx + len("getmapmobs(") + 1) + if idx2 + 1 == idx3: + line = line[:idx2 + 1] + ",\"all\"" + line[idx2 + 1:] + + line = line.replace("getmapmobs(", "mobcount(") w.write(line) |