From b774293f7d62cd8677f1c92939421f3b47f5c2e1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 20 Nov 2014 21:39:35 +0300 Subject: hercules: fix not allowed npc id. --- hercules/code/server/npcs.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hercules') 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): -- cgit v1.2.3-70-g09d2