summaryrefslogtreecommitdiff
path: root/npc/009-1_Hurnscald
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-1_Hurnscald
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-1_Hurnscald')
-rw-r--r--npc/009-1_Hurnscald/jack.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/npc/009-1_Hurnscald/jack.txt b/npc/009-1_Hurnscald/jack.txt
index b61dca2f..84dc15d9 100644
--- a/npc/009-1_Hurnscald/jack.txt
+++ b/npc/009-1_Hurnscald/jack.txt
@@ -110,7 +110,7 @@ L_Bow_state_2:
if (@Q_Forestbow > 3) goto L_Bow_state_4;
mes "\"Good luck hunting those tree monsters - you will need it.\"";
- if (Inspector == 1) goto L_NohMask_Ask;
+ if (Inspector == 1) callsub S_NohMask_Ask;
close;
L_Bow_state_4:
@@ -183,6 +183,8 @@ L_Shield_state_2:
if (countitem(@RAWLOG) < @RAWLOGS_AMOUNT) goto L_Not_enough_logs;
if (zeny < @SHIELD_COST) goto L_Not_enough_money;
+ getinventorylist;
+ if (@inventorylist_count == 100) goto L_TooMany;
delitem @RAWLOG, @RAWLOGS_AMOUNT;
set zeny, zeny - @SHIELD_COST;
@@ -223,6 +225,11 @@ L_Not_enough_money:
mes "\"You don't have enough gold, I'm afraid. I need " + @SHIELD_COST + " GP to finish your shield.\"";
close;
+L_TooMany:
+ mes "[Jack Lumber]";
+ mes "\"You don't have enough room for the shield. Come back when you do.\"";
+ close;
+
L_Shield_state_3:
mes "[Jack Lumber]";
mes "\"I hope that my shield will serve you well!\"";
@@ -234,7 +241,7 @@ L_Shield_state_3:
"Have you seen anything that might be connected to the recent robberies in town?", L_NohMask_Answer;
close;
-L_NohMask_Ask:
+S_NohMask_Ask:
next;
menu
"I'll keep that in mind.", -,