From a5c8973c405d8eca5ca7c6e998df262ab3fecf0a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 13 Apr 2021 18:40:58 -0300 Subject: Soul Menhir - Improve towel code --- npc/functions/soul_menhir.txt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'npc') 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: -- cgit v1.2.3-70-g09d2