From 1b0f75738a5bf7beba151a4a1b95759dcfa53fab Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 21 Nov 2014 15:33:05 +0300 Subject: hercules: replace temp npc variables into temp scope npc variables. --- hercules/code/server/npcs.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hercules/code') diff --git a/hercules/code/server/npcs.py b/hercules/code/server/npcs.py index 28df6af..223d7f7 100644 --- a/hercules/code/server/npcs.py +++ b/hercules/code/server/npcs.py @@ -221,6 +221,8 @@ def processStrReplace(tracker): line = line.replace("getclientversion(\"\")", "ClientVersion") line = line.replace("getclientversion()", "ClientVersion") line = line.replace("setlang @", "Lang = @") + line = re.sub("([^@])@([^@])", "\\1.@\\2", line) + line = line.replace(".@menu", "@menu") idx = line.find("getmapmobs(") if idx >= 0: idx2 = line.find("\"", idx + len("getmapmobs(") + 1) -- cgit v1.2.3-70-g09d2