From 2e450c8b476ed9950b52b2c5889f8717bbb71507 Mon Sep 17 00:00:00 2001 From: gumi Date: Tue, 4 Jun 2019 11:54:03 -0400 Subject: force the speed skill timer to expire on death or logout --- world/map/npc/functions/miriam.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 world/map/npc/functions/miriam.txt (limited to 'world/map/npc/functions/miriam.txt') 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; +} -- cgit v1.2.3-70-g09d2