summaryrefslogtreecommitdiff
path: root/world/map/npc/functions
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2019-07-28 22:37:03 -0400
committergumi <git@gumi.ca>2019-07-28 23:23:57 -0400
commit2ef1fd30751136d66b336e888027e7365d3bc724 (patch)
tree6314b055edc6cc0f9bf010b3acad61649603ad9b /world/map/npc/functions
parent17744086c452e23bf1077acc3bdf806eb19751f4 (diff)
downloadserverdata-2ef1fd30751136d66b336e888027e7365d3bc724.tar.gz
serverdata-2ef1fd30751136d66b336e888027e7365d3bc724.tar.bz2
serverdata-2ef1fd30751136d66b336e888027e7365d3bc724.tar.xz
serverdata-2ef1fd30751136d66b336e888027e7365d3bc724.zip
fix miriam expiration
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: