summaryrefslogtreecommitdiff
path: root/world/map/npc/functions/miriam.txt
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2019-06-04 11:54:03 -0400
committergumi <git@gumi.ca>2019-06-04 11:54:30 -0400
commit2e450c8b476ed9950b52b2c5889f8717bbb71507 (patch)
treebb7195e03b5c0e750316266b0e5ba78ce66bfd7b /world/map/npc/functions/miriam.txt
parent6d1b1919f6c2a4ca734b46931817655f0764e40d (diff)
downloadserverdata-2e450c8b476ed9950b52b2c5889f8717bbb71507.tar.gz
serverdata-2e450c8b476ed9950b52b2c5889f8717bbb71507.tar.bz2
serverdata-2e450c8b476ed9950b52b2c5889f8717bbb71507.tar.xz
serverdata-2e450c8b476ed9950b52b2c5889f8717bbb71507.zip
force the speed skill timer to expire on death or logout
Diffstat (limited to 'world/map/npc/functions/miriam.txt')
-rw-r--r--world/map/npc/functions/miriam.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/world/map/npc/functions/miriam.txt b/world/map/npc/functions/miriam.txt
new file mode 100644
index 00000000..f458784d
--- /dev/null
+++ b/world/map/npc/functions/miriam.txt
@@ -0,0 +1,21 @@
+function|script|MiriamExpire
+{
+ 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;
+
+L_Return:
+ return;
+}
+
+function|script|MiriamCheat
+{
+ if (QUEST_MIRIAM_start == 0) goto L_Return;
+ set QUEST_MIRIAM_cheat, 1;
+ callfunc "MiriamExpire";
+ goto L_Return;
+
+L_Return:
+ return;
+}