summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-13 18:40:58 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-13 18:40:58 -0300
commita5c8973c405d8eca5ca7c6e998df262ab3fecf0a (patch)
tree59fbdbecb4357a102236fdba5f95a12111dec634
parentef1c3e81e2e0372e882fc7e0d76daf24cc4cc589 (diff)
downloadserverdata-a5c8973c405d8eca5ca7c6e998df262ab3fecf0a.tar.gz
serverdata-a5c8973c405d8eca5ca7c6e998df262ab3fecf0a.tar.bz2
serverdata-a5c8973c405d8eca5ca7c6e998df262ab3fecf0a.tar.xz
serverdata-a5c8973c405d8eca5ca7c6e998df262ab3fecf0a.zip
Soul Menhir - Improve towel code
-rw-r--r--npc/functions/soul_menhir.txt14
1 files changed, 9 insertions, 5 deletions
diff --git a/npc/functions/soul_menhir.txt b/npc/functions/soul_menhir.txt
index 01079a4b..866b7b38 100644
--- a/npc/functions/soul_menhir.txt
+++ b/npc/functions/soul_menhir.txt
@@ -2,10 +2,14 @@ function script SoulMenhir {
mes "[Soul Menhir]";
mes "(A mystical aura surrounds this stone. You feel mysteriously attracted to it. Something tells you to touch it. What do you do?)";
- menu
- "Touch it.", L_Bind,
- "Leave it alone.", L_Return,
- "I lost my towel...", L_Towel;
+ select
+ "Touch it.",
+ "Leave it alone.",
+ rif(!countitem(HitchhikersTowel), "I lost my towel...");
+ mes "";
+ if (@menu == 1) goto L_Bind;
+ if (@menu == 3) goto L_Towel;
+ return;
L_Towel:
if (TowelLastUsed > (gettimetick(2) - 1800))
@@ -13,7 +17,7 @@ L_Towel:
TowelLastUsed = gettimetick(2);
mes "[Soul Menhir]";
mes "(You touch the mysterious stone. Somehow it feels hard and soft at the same time.)";
- getitem "HitchhikersTowel", 1;
+ getitembound HitchhikersTowel, 1, 4;
goto L_Return;
L_Bind: