summaryrefslogtreecommitdiff
path: root/npc/013-3_Cave/sword_chest.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/013-3_Cave/sword_chest.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/013-3_Cave/sword_chest.txt')
-rw-r--r--npc/013-3_Cave/sword_chest.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/013-3_Cave/sword_chest.txt b/npc/013-3_Cave/sword_chest.txt
index 1cac4879..c570bfcd 100644
--- a/npc/013-3_Cave/sword_chest.txt
+++ b/npc/013-3_Cave/sword_chest.txt
@@ -13,6 +13,8 @@
L_Yes:
if(countitem(537) < 10) goto L_Not_Enough;
+ getinventorylist;
+ if (@inventorylist_count == 100 && countitem(537) > 10) goto L_TooMany;
delitem 537, 10;
getitem 536, 1;
mes "[Chest]";
@@ -28,4 +30,9 @@ L_Finished:
mes "[Chest]";
mes "You already opened this chest.";
close;
+
+L_TooMany:
+ mes "[Chest]";
+ mes "You don't have room for what ever is inside. Maybe you should try again later.";
+ close;
}