diff options
Diffstat (limited to 'npc/006-1/miriam.txt')
-rw-r--r-- | npc/006-1/miriam.txt | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/npc/006-1/miriam.txt b/npc/006-1/miriam.txt index 58242451..fdbbdf1c 100644 --- a/npc/006-1/miriam.txt +++ b/npc/006-1/miriam.txt @@ -11,8 +11,8 @@ if (QUEST_MIRIAM == 2) goto L_Ask2; if (QUEST_MIRIAM == 3) goto L_Teach; if (QUEST_MIRIAM == 4) goto L_testoffer; - if (QUEST_MIRIAM_run != 0) goto L_checktime; - if (QUEST_MIRIAM_start != 0) goto L_wasting; + if (QUEST_MIRIAM_run < 0) goto L_checktime; + if (QUEST_MIRIAM_run > 0) goto L_wasting; if (QUEST_MIRIAM == 5) goto L_testoffer; goto L_Intro; @@ -221,8 +221,7 @@ L_LetsDoThis: warp "032-1",55,21; npctalk strnpcinfo(0), "Run " +strcharinfo(0)+ ", run!"; QUEST_MIRIAM = 5; - QUEST_MIRIAM_start = gettimetick(2); - QUEST_MIRIAM_cheat = 0; + QUEST_MIRIAM_run = gettimetick(2); end; L_Naked: @@ -260,8 +259,8 @@ L_close: L_warning: mes "[Miriam]"; mes "\"I know very well what you tried to do. I will not teach you the speed skill if you keep trying this kind of trick!\""; - next; - goto L_testoffer; + QUEST_MIRIAM_run = 0; + close; L_stretch: mes "[Miriam]"; @@ -274,22 +273,31 @@ L_wasting: mes "\"Don't waste your time talking to me! RUN and talk to Pachua!\""; close; +L_expired: + mes "[Miriam]"; + mes "\"You could not reach Pachua in time. Try again some other time.\""; + QUEST_MIRIAM_run = 0; + close; + L_checktime: - if (QUEST_MIRIAM_cheat != 0) + @miriam_run_secs = 0 - (QUEST_MIRIAM_run); + if (@miriam_run_secs == 1) goto L_warning; - if (QUEST_MIRIAM_run <= 210) + if (@miriam_run_secs <= 10) + goto L_expired; + if (@miriam_run_secs <= 210) goto L_Goodjob; goto L_tryagain; L_tryagain: mes "[Miriam]"; - mes "\"You needed " + QUEST_MIRIAM_run + " seconds to reach Pachua. It is not enough.\""; + mes "\"You needed " + @miriam_run_secs + " seconds to reach Pachua. It is not enough.\""; QUEST_MIRIAM_run = 0; close; L_Goodjob: mes "[Miriam]"; - mes "\"Great job! You needed " + QUEST_MIRIAM_run + " seconds to reach Pachua. Very impressive for a person like you.\""; + mes "\"Great job! You needed " + @miriam_run_secs + " seconds to reach Pachua. Very impressive for a person like you.\""; next; mes "\"Now I need you to relax. Do NOT move. This teaching process can be painful sometimes.\""; next; @@ -299,20 +307,17 @@ L_Goodjob: close2; warp "032-1",55,22; // free all used player variables. This can be done, since there is a conditional on the speedskill at the beginning. - QUEST_MIRIAM_start = 0; QUEST_MIRIAM_run = 0; QUEST_MIRIAM = 0; message strcharinfo(0), "[You gain 2500 experience points]"; message strcharinfo(0), "[You learned Speed Skill]"; updateskill SKILL_SPEED, 1; getexp 2500, 0; - set QUEST_MIRIAM_cheat, 0; // reset just in case it is still set. close; L_fast: mes "[Miriam]"; mes "\"I hope you make a good use of your new skill... Take care!\""; - set QUEST_MIRIAM_cheat, 0; // reset just in case it is still set. close; } |