summaryrefslogtreecommitdiff
path: root/world/map/npc/xmas
diff options
context:
space:
mode:
authortux9th <mr.x@aon.at>2013-09-30 21:38:14 +0200
committertux9th <mr.x@aon.at>2013-09-30 21:38:14 +0200
commit43e8ac00eb23c62a5f97b7a45c94831426b5ba06 (patch)
tree0b9140fff76952e83510d50232d53934c2b2eb2c /world/map/npc/xmas
parent0fb50c8cd60f764f5d4e89bb789056e56d666af0 (diff)
downloadserverdata-43e8ac00eb23c62a5f97b7a45c94831426b5ba06.tar.gz
serverdata-43e8ac00eb23c62a5f97b7a45c94831426b5ba06.tar.bz2
serverdata-43e8ac00eb23c62a5f97b7a45c94831426b5ba06.tar.xz
serverdata-43e8ac00eb23c62a5f97b7a45c94831426b5ba06.zip
Fixing issues in NPC Scripts:
* Kylian now counts weight and amount of items correctly * Xmas2012 NPCs now count amount of items correctly.
Diffstat (limited to 'world/map/npc/xmas')
-rw-r--r--world/map/npc/xmas/2012/helpersSaddleRug.txt3
-rw-r--r--world/map/npc/xmas/2012/helpersTalisman.txt1
-rw-r--r--world/map/npc/xmas/2012/santa.txt1
3 files changed, 5 insertions, 0 deletions
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;
diff --git a/world/map/npc/xmas/2012/helpersTalisman.txt b/world/map/npc/xmas/2012/helpersTalisman.txt
index 8c69dda3..09d81d4c 100644
--- a/world/map/npc/xmas/2012/helpersTalisman.txt
+++ b/world/map/npc/xmas/2012/helpersTalisman.txt
@@ -120,6 +120,7 @@ L_Close:
"Ok, I'll get that.", L_Close;
if (countitem("RawLog") < $@xmas2012_raw_log_amount)
goto L_NoItem;
+ getinventorylist;
if ((checkweight("RawTalisman", 1) == 0) || (@inventorylist_count == 100))
goto L_Inventory;
delitem "RawLog", $@xmas2012_raw_log_amount;
diff --git a/world/map/npc/xmas/2012/santa.txt b/world/map/npc/xmas/2012/santa.txt
index 203e00d5..d79dff86 100644
--- a/world/map/npc/xmas/2012/santa.txt
+++ b/world/map/npc/xmas/2012/santa.txt
@@ -46,6 +46,7 @@ L_Talisman:
"I'll go and get them.", L_Close;
if ((countitem("BatWing") < $@xmas2012_bat_wing_amount) || (countitem("RawTalisman") < 1))
goto L_NoItem;
+ getinventorylist;
if ((checkweight("FlightTalisman", 1) == 0) || (@inventorylist_count == 100))
goto L_Inventory;
misceffect sfx_magic_transmute;