summaryrefslogtreecommitdiff
path: root/npc/functions/inn.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-07-29 20:30:21 -0300
committerJesusaves <cpntb1@ymail.com>2021-07-29 20:30:21 -0300
commit8957483e7196d21db0fb6257fedbea01b59cf53b (patch)
tree0b7443a54ec60a42f1b0373f2374d8e3b453bbcb /npc/functions/inn.txt
parentabfaf3520d1c4143fa3e9ed9de53a9f3314455ec (diff)
downloadserverdata-8957483e7196d21db0fb6257fedbea01b59cf53b.tar.gz
serverdata-8957483e7196d21db0fb6257fedbea01b59cf53b.tar.bz2
serverdata-8957483e7196d21db0fb6257fedbea01b59cf53b.tar.xz
serverdata-8957483e7196d21db0fb6257fedbea01b59cf53b.zip
Fix minor issuesstable
Diffstat (limited to 'npc/functions/inn.txt')
-rw-r--r--npc/functions/inn.txt3
1 files changed, 2 insertions, 1 deletions
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;