From 43e8ac00eb23c62a5f97b7a45c94831426b5ba06 Mon Sep 17 00:00:00 2001 From: tux9th Date: Mon, 30 Sep 2013 21:38:14 +0200 Subject: Fixing issues in NPC Scripts: * Kylian now counts weight and amount of items correctly * Xmas2012 NPCs now count amount of items correctly. --- world/map/npc/xmas/2012/helpersSaddleRug.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'world/map/npc/xmas/2012/helpersSaddleRug.txt') diff --git a/world/map/npc/xmas/2012/helpersSaddleRug.txt b/world/map/npc/xmas/2012/helpersSaddleRug.txt index 1673e136..fb3db9d4 100644 --- a/world/map/npc/xmas/2012/helpersSaddleRug.txt +++ b/world/map/npc/xmas/2012/helpersSaddleRug.txt @@ -34,6 +34,7 @@ if (countitem("CottonCloth") < $@xmas2012_cotton_cloth_amount) goto L_NoItem; + getinventorylist; if ((checkweight("WhiteBlanket", 1) == 0) || (@inventorylist_count == 100)) goto L_Inventory; delitem "CottonCloth", $@xmas2012_cotton_cloth_amount; @@ -122,6 +123,7 @@ L_Close: if ((countitem("WhiteBlanket") < 1) || (countitem("WhiteFur") < $@xmas2012_fluffy_fur_amount)) goto L_NoItem; + getinventorylist; if ((checkweight("WhiteSaddleRug", 1) == 0) || (@inventorylist_count == 100)) goto L_Inventory; delitem "WhiteFur", $@xmas2012_fluffy_fur_amount; @@ -221,6 +223,7 @@ L_Close: if ((countitem("RedDye") < $@xmas2012_red_dye_amount) || (countitem("WhiteSaddleRug") < 1)) goto L_NoItem; + getinventorylist; if ((checkweight("RedSaddleRug", 1) == 0) || (@inventorylist_count == 100)) goto L_Inventory; delitem "RedDye", $@xmas2012_red_dye_amount; -- cgit v1.2.3-70-g09d2