summaryrefslogtreecommitdiff
path: root/world/map/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/functions')
-rw-r--r--world/map/npc/functions/miriam.txt23
-rw-r--r--world/map/npc/functions/travelers.txt8
2 files changed, 12 insertions, 19 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;
}
diff --git a/world/map/npc/functions/travelers.txt b/world/map/npc/functions/travelers.txt
index c1b7f3fd..30116ecb 100644
--- a/world/map/npc/functions/travelers.txt
+++ b/world/map/npc/functions/travelers.txt
@@ -180,13 +180,7 @@ L_TravelPachua:
set @NextLocationMap$, "006-1";
set @NextLocationX, 28;
set @NextLocationY, 97;
- if(QUEST_MIRIAM_start != 0) goto L_Cheat;
- goto L_TravelChecks;
-
-L_Cheat:
- set QUEST_MIRIAM_cheat, 1;
- set QUEST_MIRIAM_run, gettimetick(2) - QUEST_MIRIAM_start;
- set QUEST_MIRIAM_start, 0;
+ callfunc "MiriamCheat";
goto L_TravelChecks;
L_TravelBarbarians: