diff options
Diffstat (limited to 'world/map/npc/functions/miriam.txt')
-rw-r--r-- | world/map/npc/functions/miriam.txt | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/world/map/npc/functions/miriam.txt b/world/map/npc/functions/miriam.txt index f458784d..b76efcc5 100644 --- a/world/map/npc/functions/miriam.txt +++ b/world/map/npc/functions/miriam.txt @@ -1,21 +1,20 @@ -function|script|MiriamExpire +function|script|MiriamGoal { - if (QUEST_MIRIAM_start == 0) goto L_Return; - set QUEST_MIRIAM_run, gettimetick(2) - QUEST_MIRIAM_start; - set QUEST_MIRIAM_start, 0; - goto L_Return; + if (QUEST_MIRIAM_run > 0) + set QUEST_MIRIAM_run, 0 - (gettimetick(2) - QUEST_MIRIAM_run); + return; +} -L_Return: +function|script|MiriamExpire +{ + if (QUEST_MIRIAM_run > 0) + set QUEST_MIRIAM_run, 0 - 2; // force failute (expired) return; } function|script|MiriamCheat { - if (QUEST_MIRIAM_start == 0) goto L_Return; - set QUEST_MIRIAM_cheat, 1; - callfunc "MiriamExpire"; - goto L_Return; - -L_Return: + if (QUEST_MIRIAM_run > 0) + set QUEST_MIRIAM_run, 0 - 1; // force failure (cheating) return; } |