summaryrefslogtreecommitdiff
path: root/npc/002-4_Desert_mines
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/002-4_Desert_mines
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/002-4_Desert_mines')
-rw-r--r--npc/002-4_Desert_mines/chest.txt12
1 files changed, 10 insertions, 2 deletions
diff --git a/npc/002-4_Desert_mines/chest.txt b/npc/002-4_Desert_mines/chest.txt
index c3e2c188..e76332fd 100644
--- a/npc/002-4_Desert_mines/chest.txt
+++ b/npc/002-4_Desert_mines/chest.txt
@@ -13,14 +13,17 @@
L_Yes:
if(countitem(537) < 3) goto L_Not_Enough;
- delitem 537, 3;
- getitem 536, 1;
+ getinventorylist;
+ if (@inventorylist_count == 100 && countitem(537) > 3) goto L_TooMany;
mes "[Chest]";
mes "You opened it and found a short sword!";
+ delitem 537, 3;
+ getitem 536, 1;
set ChestQuest, ChestQuest | 1;
close;
L_Not_Enough:
+ mes "[Chest]";
mes "It seems that this is not the right key...";
close;
@@ -28,4 +31,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;
}