diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-20 21:39:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-20 21:39:35 +0300 |
commit | b774293f7d62cd8677f1c92939421f3b47f5c2e1 (patch) | |
tree | dea7671fbd8a51d81cb2a4c1403015f2f2ba3a0d /hercules | |
parent | 3e960b66d2b89cd915c79a2e6df5b3d73f588646 (diff) | |
download | evol-tools-b774293f7d62cd8677f1c92939421f3b47f5c2e1.tar.gz evol-tools-b774293f7d62cd8677f1c92939421f3b47f5c2e1.tar.bz2 evol-tools-b774293f7d62cd8677f1c92939421f3b47f5c2e1.tar.xz evol-tools-b774293f7d62cd8677f1c92939421f3b47f5c2e1.zip |
hercules: fix not allowed npc id.
Diffstat (limited to 'hercules')
-rw-r--r-- | hercules/code/server/npcs.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hercules/code/server/npcs.py b/hercules/code/server/npcs.py index e56b3f8..43254d2 100644 --- a/hercules/code/server/npcs.py +++ b/hercules/code/server/npcs.py @@ -112,6 +112,10 @@ def writeScript(w, m): class_ = m.group("class") if class_ == "0": # hidden npc class_ = "32767" + else: + class_ = int(class_) + if class_ > 125 and class_ <= 400: + class_ = class_ + 100 w.write("\t{0}\t{1}\t{2}".format(m.group("tag"), m.group("name"), class_)); def processScript(tracker): |