summaryrefslogtreecommitdiff
path: root/npc/functions/soul_menhir.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-28 15:27:43 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-28 15:27:43 -0300
commit5029964fd66789e6c25a99012038f1b1f1b7961b (patch)
treeebff327f296eae9d5efe700c3c6eadb711ae5cd3 /npc/functions/soul_menhir.txt
parenta1b3ef4c267c5698aa9f63b60adea45ff96b45f6 (diff)
downloadserverdata-5029964fd66789e6c25a99012038f1b1f1b7961b.tar.gz
serverdata-5029964fd66789e6c25a99012038f1b1f1b7961b.tar.bz2
serverdata-5029964fd66789e6c25a99012038f1b1f1b7961b.tar.xz
serverdata-5029964fd66789e6c25a99012038f1b1f1b7961b.zip
Minor tidying up at SoulMenhir function
Diffstat (limited to 'npc/functions/soul_menhir.txt')
-rw-r--r--npc/functions/soul_menhir.txt27
1 files changed, 6 insertions, 21 deletions
diff --git a/npc/functions/soul_menhir.txt b/npc/functions/soul_menhir.txt
index 91c670961..0e256f890 100644
--- a/npc/functions/soul_menhir.txt
+++ b/npc/functions/soul_menhir.txt
@@ -13,16 +13,9 @@ function script SoulMenhir {
rif($EVENT$ == "Easter", l("[Easter] Send soul to the Mana Forest!")), L_Easter,
rif($EVENT$ == "Worker", l("[Worker Day] Send soul to the Contributor Cave!")), L_Worker,
rif($EVENT$ == "Christmas", l("[Christmas] Send soul to the Christmas Workshop!")), L_Xmas, // TODO: In future there'll be an event map
- l("Leave it alone."), L_Return;
+ l("Leave it alone."), -;
-//L_Towel:
-// if (TowelLastUsed > (gettimetick(2) - 1800))
-// goto L_DontPanic;
-// TowelLastUsed = gettimetick(2);
-// mes l("[Soul Menhir]");
-// mes "(You touch the mysterious stone. Somehow it feels hard and soft at the same time.)";
-// getitem "HitchhikersTowel", 1;
-// goto L_Return;
+ return;
L_Bind:
if (@map$ == "003-1" && !(TELEPORTERS & TP_TULIM))
@@ -48,8 +41,9 @@ L_Shortversion:
goto L_Save;
L_Save:
- if (@x == 0 && @y == 0)
- goto L_FindPoint;
+ @n = rand2(getarraysize(@Xs));
+ @x = @Xs[@n];
+ @y = @Ys[@n];
goto L_Do_Save;
L_Aeros:
@@ -97,7 +91,7 @@ L_Xmas:
L_DontPanic:
message strcharinfo(0), l("(A strange barrier keeps you from touching the stone at this time.)");
- goto L_Return;
+ return;
L_Do_Save:
if (GSET_SOULMENHIR_MANUAL) {
@@ -110,14 +104,5 @@ L_Do_Save:
// As we have a dialog box open, this function produces an undesirable player talk.
//savepointparticle @map$, @x, @y, NO_INN;
- goto L_Return;
-
-L_FindPoint:
- @n = rand2(getarraysize(@Xs));
- @x = @Xs[@n];
- @y = @Ys[@n];
- goto L_Do_Save;
-
-L_Return:
return;
}