From 8957483e7196d21db0fb6257fedbea01b59cf53b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 29 Jul 2021 20:30:21 -0300 Subject: Fix minor issues --- npc/functions/inn.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'npc/functions/inn.txt') diff --git a/npc/functions/inn.txt b/npc/functions/inn.txt index 50f1afd6..82204f4b 100644 --- a/npc/functions/inn.txt +++ b/npc/functions/inn.txt @@ -1,6 +1,7 @@ function script Inn { - if(@npcname$ == "") set @npcname$, strnpcinfo(1); + if (@Cost < 1) @Cost = getarg(0, 1000); + if (@npcname$ == "") set @npcname$, strnpcinfo(1); mes "[" + @npcname$ + "]"; mes "\"Would you like to rest? It's only " + @Cost + " gp.\""; next; -- cgit v1.2.3-70-g09d2