summaryrefslogtreecommitdiff
path: root/world/map/npc/xmas/2011/doll.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/xmas/2011/doll.txt')
-rw-r--r--world/map/npc/xmas/2011/doll.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/world/map/npc/xmas/2011/doll.txt b/world/map/npc/xmas/2011/doll.txt
index a737d963..2fd4145a 100644
--- a/world/map/npc/xmas/2011/doll.txt
+++ b/world/map/npc/xmas/2011/doll.txt
@@ -101,6 +101,9 @@ L_Doll:
"I don't have it yet.",L_Close;
if ((countitem("CottonCloth") < @cotton_amount) || (countitem("LightBlueDye") < @dye_amount) || (countitem("HardSpike") < @spike_amount))
goto L_NoItems;
+ getinventorylist;
+ if (@inventorylist_count == 100)
+ goto L_Full_Inv;
delitem "CottonCloth", @cotton_amount;
delitem "LightBlueDye", @dye_amount;
delitem "HardSpike", @spike_amount;
@@ -151,10 +154,16 @@ L_NoItems:
mes "\"You don't have it!\"";
goto L_Close;
+L_Full_Inv:
+ mes "[Raimo]";
+ mes "\"You have a full backpack! Come back when you're carrying less things.\"";
+ goto L_Close;
+
L_Close:
set @cotton_amount, 0;
set @fur_amount, 0;
set @doll, 0;
+ set @inventorylist_count, 0;
close;
S_Update_Var: