diff options
author | Jared Adams <jaxad0127@gmail.com> | 2008-12-23 17:16:49 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2008-12-23 17:18:37 +0000 |
commit | b1ced66321ffed02cde1a9ccd39fa2c9ba004125 (patch) | |
tree | 87b2f8639b8e1b79125ebdd77f71d19305d0084c /npc/009-2_Hurnscald/waitress.txt | |
parent | 2ac5f8a1dfa5482dc1fee2bbd41b5e0eb0928abd (diff) | |
download | serverdata-b1ced66321ffed02cde1a9ccd39fa2c9ba004125.tar.gz serverdata-b1ced66321ffed02cde1a9ccd39fa2c9ba004125.tar.bz2 serverdata-b1ced66321ffed02cde1a9ccd39fa2c9ba004125.tar.xz serverdata-b1ced66321ffed02cde1a9ccd39fa2c9ba004125.zip |
Fixeds to check for invy room before giving items
Diffstat (limited to 'npc/009-2_Hurnscald/waitress.txt')
-rw-r--r-- | npc/009-2_Hurnscald/waitress.txt | 10 |
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; } |