summaryrefslogtreecommitdiff
path: root/npc/009-2_Hurnscald/alan.txt
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2008-12-23 17:16:49 +0000
committerJared Adams <jaxad0127@gmail.com>2008-12-23 17:18:37 +0000
commitb1ced66321ffed02cde1a9ccd39fa2c9ba004125 (patch)
tree87b2f8639b8e1b79125ebdd77f71d19305d0084c /npc/009-2_Hurnscald/alan.txt
parent2ac5f8a1dfa5482dc1fee2bbd41b5e0eb0928abd (diff)
downloadserverdata-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/alan.txt')
-rw-r--r--npc/009-2_Hurnscald/alan.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/009-2_Hurnscald/alan.txt b/npc/009-2_Hurnscald/alan.txt
index 0235ad33..6d8a1770 100644
--- a/npc/009-2_Hurnscald/alan.txt
+++ b/npc/009-2_Hurnscald/alan.txt
@@ -174,6 +174,8 @@ L_State_4:
L_State_4_pay:
if (zeny < 10000) goto L_State_4_nocash;
+ getinventorylist;
+ if (@inventorylist_count == 100) goto L_State_4_TooMany;
set zeny, zeny - 10000;
getitem 545, 1;
set @Q_status, 5;
@@ -187,6 +189,11 @@ L_State_4_nocash:
mes "\"Seems like you are out of cash.\"";
close;
+L_State_4_TooMany:
+ mes "[Alan]";
+ mes "\"Seems like you don't have room for this bow. Come back later.\"";
+ close;
+
L_State_5:
mes "[Alan]";
mes "\"I hope you are statisfied with your forest bow. It is one of my best works.\"";