summaryrefslogtreecommitdiff
path: root/npc/009-2_Hurnscald/waitress.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/009-2_Hurnscald/waitress.txt')
-rw-r--r--npc/009-2_Hurnscald/waitress.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/npc/009-2_Hurnscald/waitress.txt b/npc/009-2_Hurnscald/waitress.txt
index cf2778fd..bcf2f434 100644
--- a/npc/009-2_Hurnscald/waitress.txt
+++ b/npc/009-2_Hurnscald/waitress.txt
@@ -2,6 +2,10 @@
009-2.gat,60,52,0 script Melinda 140,{
if (zeny < 180) goto L_NoMoney;
+ getinventorylist;
+ set @beerCount, countitem(539);
+ if (@inventorylist_count == 100 && beerCount < 0) goto L_TooMany;
+
mes "[Melinda]";
mes "\"Hi sweety! Want a fresh beer for 170gp?\"";
next;
@@ -46,6 +50,12 @@ L_No:
close;
L_NoMoney:
+ mes "[Melinda]";
mes "\"You look broke. Don't think that you can dine and dash here!\"";
close;
+
+L_TooMany:
+ mes "[Melinda]";
+ mes "\"You don't have room for a beer!\"";
+ close;
}