summaryrefslogtreecommitdiff
path: root/hercules/code/server/npcs.py
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-20 21:39:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-20 21:39:35 +0300
commitb774293f7d62cd8677f1c92939421f3b47f5c2e1 (patch)
treedea7671fbd8a51d81cb2a4c1403015f2f2ba3a0d /hercules/code/server/npcs.py
parent3e960b66d2b89cd915c79a2e6df5b3d73f588646 (diff)
downloadtools-b774293f7d62cd8677f1c92939421f3b47f5c2e1.tar.gz
tools-b774293f7d62cd8677f1c92939421f3b47f5c2e1.tar.bz2
tools-b774293f7d62cd8677f1c92939421f3b47f5c2e1.tar.xz
tools-b774293f7d62cd8677f1c92939421f3b47f5c2e1.zip
hercules: fix not allowed npc id.
Diffstat (limited to 'hercules/code/server/npcs.py')
-rw-r--r--hercules/code/server/npcs.py4
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):