summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-01 11:56:18 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-01 11:56:18 +0300
commita7e9bb01b752f8dd9c88e5e1162a3513227f3459 (patch)
tree165449ef6894471b7da7c89a7c68372dc02d82d7
parent538a95cb0d9022c5c253a53b618557160569a495 (diff)
downloadevol-tools-a7e9bb01b752f8dd9c88e5e1162a3513227f3459.tar.gz
evol-tools-a7e9bb01b752f8dd9c88e5e1162a3513227f3459.tar.bz2
evol-tools-a7e9bb01b752f8dd9c88e5e1162a3513227f3459.tar.xz
evol-tools-a7e9bb01b752f8dd9c88e5e1162a3513227f3459.zip
hercules: tmw: replace some wrong cases and functions in npc scripts.
-rw-r--r--hercules/code/server/tmw/npcs.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/hercules/code/server/tmw/npcs.py b/hercules/code/server/tmw/npcs.py
index 938f8ac..69f95c1 100644
--- a/hercules/code/server/tmw/npcs.py
+++ b/hercules/code/server/tmw/npcs.py
@@ -296,6 +296,18 @@ def processStrReplace(tracker):
line = line.replace("sc_slowpoison", "SC_SLOWPOISON")
line = line.replace("countitem(", "countitemcolor(")
line = line.replace("Bugleg", "BugLeg")
+ line = line.replace("getmap()", "getmapname()")
+ line = line.replace("L_end", "L_End")
+ line = line.replace("gmcommand", "atcommand")
+ line = line.replace("MF_NOSAVE", "mf_nosave")
+ line = line.replace("S_update_var", "S_Update_Var")
+ line = line.replace("L_teach", "L_Teach")
+ line = line.replace("L_focus", "L_Focus")
+ line = line.replace("L_unfocus", "L_Unfocus")
+ line = line.replace("L_main", "L_Main")
+ line = line.replace("L_next", "L_Next")
+ line = line.replace("L_close", "L_Close")
+
line = re.sub("([^@^$])@([^@])", "\\1.@\\2", line)
line = line.replace(".@menu", "@menu")