From ec9be0a2967b38955d26e337b05bc3a042ac4544 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 2 Nov 2008 22:45:17 +0000 Subject: Branch data for eAthena --- npc/functions/inn.txt | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 npc/functions/inn.txt (limited to 'npc/functions/inn.txt') diff --git a/npc/functions/inn.txt b/npc/functions/inn.txt new file mode 100644 index 00000000..770f17be --- /dev/null +++ b/npc/functions/inn.txt @@ -0,0 +1,30 @@ +// INN + +function script Inn { + mes "[" + @npcName$ + "]"; + mes "\"Would you like to rest? It's only " + @cost + " gp.\""; + next; + + menu + "Yes", -, + "No", L_No; + + if (zeny < @cost) goto L_NoMoney; + set zeny, zeny - @cost; + heal 10000, 10000; + + mes "[" + @npcName$ + "]"; + mes "\"Sleep well!\""; + next; + close; + +L_No: + mes "[" + @npcName$ + "]"; + mes "\"See you.\""; + close; + +L_NoMoney: + mes "[" + @npcName$ + "]"; + mes "\"You don't have enough money to stay here.\""; + close; +} -- cgit v1.2.3-60-g2f50