summaryrefslogtreecommitdiff
path: root/world/map/npc/functions/miriam.txt
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/miriam.txt
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/miriam.txt')
-rw-r--r--world/map/npc/functions/miriam.txt23
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;
}