summaryrefslogtreecommitdiff
path: root/world/map/npc/functions/soul_menhir.txt
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2014-05-03 23:10:02 -0500
committerwushin <pasekei@gmail.com>2014-05-03 23:10:02 -0500
commit89947348d793bb62611f5869c978ed5fe43600f0 (patch)
tree4a55f47253a3b66254d3f39df5cf5958c1b084f0 /world/map/npc/functions/soul_menhir.txt
parent04c3baddc72fc49c6bd5b4278a0e00d4993a3d95 (diff)
parent3f1f2c82708abe1393ab01f8124370d6c42d26be (diff)
downloadserverdata-89947348d793bb62611f5869c978ed5fe43600f0.tar.gz
serverdata-89947348d793bb62611f5869c978ed5fe43600f0.tar.bz2
serverdata-89947348d793bb62611f5869c978ed5fe43600f0.tar.xz
serverdata-89947348d793bb62611f5869c978ed5fe43600f0.zip
Merge pull request #97 from wushin/warp-towel-fix
Warp Towel Fixes
Diffstat (limited to 'world/map/npc/functions/soul_menhir.txt')
-rw-r--r--world/map/npc/functions/soul_menhir.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/world/map/npc/functions/soul_menhir.txt b/world/map/npc/functions/soul_menhir.txt
index e5ec9f4a..0af50a74 100644
--- a/world/map/npc/functions/soul_menhir.txt
+++ b/world/map/npc/functions/soul_menhir.txt
@@ -10,7 +10,13 @@ function|script|SoulMenhir|,
"I lost my towel...", L_Towel;
L_Towel:
+ if (TowelLastUsed > (gettimetick(2) - 1800))
+ goto L_DontPanic;
callfunc "MultiWarpTowel";
+ set TowelLastUsed, gettimetick(2);
+ mes "[Soul Menhir]";
+ mes "(You touch the mysterious stone. Somehow it feels hard and soft at the same time.)";
+ next;
getitem "HitchhikersTowel", 1;
goto L_Return;
@@ -44,6 +50,10 @@ L_Save:
goto L_FindPoint;
goto L_Do_Save;
+L_DontPanic:
+ message strcharinfo(0), "(A strange barrier keeps you from touching the stone at this time.)";
+ goto L_Return;
+
L_Do_Save:
savepoint @map$, @x, @y;
goto L_Return;