summaryrefslogtreecommitdiff
path: root/hercules/code/server
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-21 15:33:05 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-21 16:04:08 +0300
commit1b0f75738a5bf7beba151a4a1b95759dcfa53fab (patch)
tree70d23b5c9b39d3e5c1adc6764029962e5f89d226 /hercules/code/server
parent14988c5b05b65d3351c10cdd0e2c5ab41b83c9e1 (diff)
downloadevol-tools-1b0f75738a5bf7beba151a4a1b95759dcfa53fab.tar.gz
evol-tools-1b0f75738a5bf7beba151a4a1b95759dcfa53fab.tar.bz2
evol-tools-1b0f75738a5bf7beba151a4a1b95759dcfa53fab.tar.xz
evol-tools-1b0f75738a5bf7beba151a4a1b95759dcfa53fab.zip
hercules: replace temp npc variables into temp scope npc variables.
Diffstat (limited to 'hercules/code/server')
-rw-r--r--hercules/code/server/npcs.py2
1 files changed, 2 insertions, 0 deletions
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)