diff options
Diffstat (limited to 'hercules/code/server/npcs.py')
-rw-r--r-- | hercules/code/server/npcs.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hercules/code/server/npcs.py b/hercules/code/server/npcs.py index 647ba63..b2cac36 100644 --- a/hercules/code/server/npcs.py +++ b/hercules/code/server/npcs.py @@ -177,4 +177,12 @@ def processStrReplace(tracker): line = line.replace("setskill ", "addtoskill ") line = line.replace("zeny", "Zeny") line = line.replace("countitem(", "countitemcolor(") + idx = line.find("getmapmobs(") + if idx >= 0: + idx2 = line.find("\"", idx + len("getmapmobs(") + 1) + idx3 = line.find(")", idx + len("getmapmobs(") + 1) + if idx2 + 1 == idx3: + line = line[:idx2 + 1] + ",\"all\"" + line[idx2 + 1:] + + line = line.replace("getmapmobs(", "mobcount(") w.write(line) |