summaryrefslogtreecommitdiff
path: root/hercules
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-01 16:37:42 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-01 16:37:42 +0300
commit294c4fba642940e7c4521a2c0c76a411e88d3a0f (patch)
tree5557008019d770aaea26975c00a45706e1b47393 /hercules
parentb4ed526ead34b12c801f33889d21c7207796ce4f (diff)
downloadevol-tools-294c4fba642940e7c4521a2c0c76a411e88d3a0f.tar.gz
evol-tools-294c4fba642940e7c4521a2c0c76a411e88d3a0f.tar.bz2
evol-tools-294c4fba642940e7c4521a2c0c76a411e88d3a0f.tar.xz
evol-tools-294c4fba642940e7c4521a2c0c76a411e88d3a0f.zip
hercules: replace "setskill" to "addtoskill".
Diffstat (limited to 'hercules')
-rw-r--r--hercules/code/server/npcs.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/hercules/code/server/npcs.py b/hercules/code/server/npcs.py
index f3e95c3..52843cd 100644
--- a/hercules/code/server/npcs.py
+++ b/hercules/code/server/npcs.py
@@ -78,6 +78,10 @@ def convertTextLine(tracker):
if idx >= 0:
processMapFlag(tracker)
return False
+ idx = line.find("setskill ")
+ if idx >= 0:
+ processStrReplace(tracker)
+ return False
return True
def processScriptMapLine(line):
@@ -170,3 +174,8 @@ def processMapFlag(tracker):
else:
w.write("\t{0}\n".format(m.group("flag")))
+def processStrReplace(tracker):
+ line = tracker.line
+ w = tracker.w
+ line = line.replace("setskill ", "addtoskill ")
+ w.write(line)