summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-01 16:48:55 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-01 16:48:55 +0300
commit3e72c0b3e55d02fd592a39de4feb7ba5f6532c19 (patch)
treeda2d7998da44b35506c0110d5f541c50f0f8fd7d
parent81b5efc64252d46ece8c46cf8e95603a9710e20a (diff)
downloadevol-tools-3e72c0b3e55d02fd592a39de4feb7ba5f6532c19.tar.gz
evol-tools-3e72c0b3e55d02fd592a39de4feb7ba5f6532c19.tar.bz2
evol-tools-3e72c0b3e55d02fd592a39de4feb7ba5f6532c19.tar.xz
evol-tools-3e72c0b3e55d02fd592a39de4feb7ba5f6532c19.zip
hercules: tmw: add some more constants replacments in npc scripts.
-rw-r--r--hercules/code/server/tmw/npcs.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/hercules/code/server/tmw/npcs.py b/hercules/code/server/tmw/npcs.py
index eeba693..747a507 100644
--- a/hercules/code/server/tmw/npcs.py
+++ b/hercules/code/server/tmw/npcs.py
@@ -295,7 +295,13 @@ def processStrReplace(tracker):
line = line.replace("sc_poison", "SC_POISON")
line = line.replace("sc_slowpoison", "SC_SLOWPOISON")
line = line.replace("countitem(", "countitemcolor(")
+
+ line = line.replace(".gat", "")
line = line.replace("Bugleg", "BugLeg")
+ line = line.replace("set BugLeg, 0;", "//set BugLeg, 0;")
+ line = line.replace("set CaveSnakeLamp, 0;", "//set CaveSnakeLamp, 0;")
+ line = line.replace("set Class, @BaseClass;", "//set Class, @BaseClass;")
+
line = line.replace("getmap()", "getmapname()")
line = line.replace("L_end", "L_End")
line = line.replace("gmcommand", "atcommand")
@@ -308,10 +314,6 @@ def processStrReplace(tracker):
line = line.replace("L_next", "L_Next")
line = line.replace("L_close", "L_Close")
- line = line.replace(".gat", "")
- line = re.sub("([^@^$])@([^@])", "\\1.@\\2", line)
- line = line.replace(".@menu", "@menu")
-
# fix at same time usage with same name function and variable
line = line.replace("\"DailyQuestPoints\"", "\"DailyQuestPointsFunc\"")