summaryrefslogtreecommitdiff
path: root/npc/013-3_Cave
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2008-12-24 21:24:57 -0700
committerFate <fate-tmw@googlemail.com>2008-12-24 21:24:57 -0700
commit562a0fdbaa002a49f4763bd07442e2ed32726ab9 (patch)
tree0e997cd03f8a03e8bf839890318efd15a0242dc2 /npc/013-3_Cave
parent63006fa540fe6fbddd132be33b39fd28f02a2e0f (diff)
parente896b785935c661319ade424f473f4442e1878eb (diff)
downloadserverdata-562a0fdbaa002a49f4763bd07442e2ed32726ab9.tar.gz
serverdata-562a0fdbaa002a49f4763bd07442e2ed32726ab9.tar.bz2
serverdata-562a0fdbaa002a49f4763bd07442e2ed32726ab9.tar.xz
serverdata-562a0fdbaa002a49f4763bd07442e2ed32726ab9.zip
Merge branch 'master' into magicv2008.12.25
Diffstat (limited to 'npc/013-3_Cave')
-rw-r--r--npc/013-3_Cave/mask_chest.txt24
-rw-r--r--npc/013-3_Cave/sword_chest.txt7
2 files changed, 31 insertions, 0 deletions
diff --git a/npc/013-3_Cave/mask_chest.txt b/npc/013-3_Cave/mask_chest.txt
index dd0bc949..0da8bab9 100644
--- a/npc/013-3_Cave/mask_chest.txt
+++ b/npc/013-3_Cave/mask_chest.txt
@@ -30,30 +30,49 @@
if (countitem(541) == 0) goto L_No_water;
+ getinventorylist;
+ if (@inventorylist_count == 100 && countitem(505) > 1 && countitem(518) > 1 && countitem(718) > 1
+ && countitem(566) > 1 && countitem(565) > 1 && countitem(700) > 1
+ && countitem(613) > 1 && countitem(569) > 1 && countitem(614) > 1
+ && countitem(631) > 1 && countitem(640) > 1 && countitem(507) > 1
+ && countitem(517) > 1 && countitem(709) > 1 && countitem(710) > 1
+ && countitem(711) > 1 && countitem(712) > 1 && countitem(713) > 1
+ && countitem(680) > 1 && countitem(681) > 1 && countitem(682) > 1
+ && countitem(683) > 1 && countitem(537) > 1 && countitem(612) > 1
+ && countitem(701) > 1 && countitem(541) > 1) goto L_TooMany;
+
delitem 505, 1;
delitem 518, 1;
delitem 718, 1;
+
delitem 566, 1;
delitem 565, 1;
delitem 700, 1;
+
delitem 613, 1;
delitem 569, 1;
delitem 614, 1;
+
delitem 631, 1;
delitem 640, 1;
delitem 507, 1;
+
delitem 517, 1;
delitem 709, 1;
delitem 710, 1;
+
delitem 711, 1;
delitem 712, 1;
delitem 713, 1;
+
delitem 680, 1;
delitem 681, 1;
delitem 682, 1;
+
delitem 683, 1;
delitem 537, 1;
delitem 612, 1;
+
delitem 701, 1;
delitem 541, 1;
@@ -148,4 +167,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;
}
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;
}