diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-01 23:02:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-01 23:02:22 +0300 |
commit | ad3363575f426385189c7083ca32ecdac7d2e584 (patch) | |
tree | 4ba93935dc2f89093f642b6ae8a253113e16ddd5 /hercules | |
parent | 3e72c0b3e55d02fd592a39de4feb7ba5f6532c19 (diff) | |
download | evol-tools-ad3363575f426385189c7083ca32ecdac7d2e584.tar.gz evol-tools-ad3363575f426385189c7083ca32ecdac7d2e584.tar.bz2 evol-tools-ad3363575f426385189c7083ca32ecdac7d2e584.tar.xz evol-tools-ad3363575f426385189c7083ca32ecdac7d2e584.zip |
hercules: tmw: fix some cases and errors in scripts.
Diffstat (limited to 'hercules')
-rw-r--r-- | hercules/code/server/tmw/npcs.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/hercules/code/server/tmw/npcs.py b/hercules/code/server/tmw/npcs.py index 747a507..14e3e5c 100644 --- a/hercules/code/server/tmw/npcs.py +++ b/hercules/code/server/tmw/npcs.py @@ -301,6 +301,8 @@ def processStrReplace(tracker): 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("goto_Exit;", "goto L_Exit;") + line = line.replace("if @spants_state < 7 goto", "if(@spants_state < 7) goto") line = line.replace("getmap()", "getmapname()") line = line.replace("L_end", "L_End") @@ -313,6 +315,23 @@ def processStrReplace(tracker): line = line.replace("L_main", "L_Main") line = line.replace("L_next", "L_Next") line = line.replace("L_close", "L_Close") + line = line.replace("@NpcName$", "@npcname$") + line = line.replace("@cost", "@Cost") + line = line.replace("@TEMP", "@temp") + line = line.replace("L_Menuitems", "L_MenuItems") + line = line.replace("L_no_item", "L_No_Item") + line = line.replace("L_no_water", "L_No_Water") + line = line.replace("L_NOT_ENOUGH", "L_No_Water") + line = line.replace("L_bye", "L_Bye") + line = line.replace("L_NOHELP", "L_NoHelp") + line = line.replace("L_Eyepatch", "L_EyePatch") + line = line.replace("@PC_STAMINA", "@pc_stamina") + line = line.replace("L_magic", "L_Magic") + line = line.replace("L_cont", "L_Cont") + line = line.replace("L_accept", "L_Accept") + line = line.replace("L_no_event", "L_No_Event") + line = line.replace("L_event_done", "L_Event_Done") + line = line.replace("L_nobeer", "L_NoBeer") # fix at same time usage with same name function and variable line = line.replace("\"DailyQuestPoints\"", "\"DailyQuestPointsFunc\"") |