diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-02 22:14:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-02 22:14:05 +0300 |
commit | 8fb599129e7e8390b43e3e5aa06ab522c45e2b72 (patch) | |
tree | 0ce90c3b9f4fde49b49f058629d4c467311a3045 /hercules/code | |
parent | 9e00fbb1d3d1d8d07a1e7aafdaeae3a94725e1d7 (diff) | |
download | evol-tools-8fb599129e7e8390b43e3e5aa06ab522c45e2b72.tar.gz evol-tools-8fb599129e7e8390b43e3e5aa06ab522c45e2b72.tar.bz2 evol-tools-8fb599129e7e8390b43e3e5aa06ab522c45e2b72.tar.xz evol-tools-8fb599129e7e8390b43e3e5aa06ab522c45e2b72.zip |
hercules: fix invisible npc conversion.
Diffstat (limited to 'hercules/code')
-rw-r--r-- | hercules/code/server/npcs.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/hercules/code/server/npcs.py b/hercules/code/server/npcs.py index e86cf70..63a14d4 100644 --- a/hercules/code/server/npcs.py +++ b/hercules/code/server/npcs.py @@ -97,11 +97,14 @@ def writeScript(w, m): if m.group("gender") != None: w.write("// Gender = {0}\n".format(m.group("gender"))); - if m.group("x") == 0 and m.group("y") == 0 and m.group("class") == 0: # float npc + if m.group("x") == 0 and m.group("y") == 0: # float npc w.write("-") else: w.write("{0},{1},{2},{3}".format(m.group("map"), m.group("x"), m.group("y"), m.group("dir"))) - w.write("\t{0}\t{1}\t{2}".format(m.group("tag"), m.group("name"), m.group("class"))); + class_ = m.group("class") + if class_ == "0": # hidden npc + class_ = "32767" + w.write("\t{0}\t{1}\t{2}".format(m.group("tag"), m.group("name"), class_)); def processScript(tracker): line = tracker.line |