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/021-2/kylian.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'world/map/npc/021-2') diff --git a/world/map/npc/021-2/kylian.txt b/world/map/npc/021-2/kylian.txt index c228acba..5406f6c7 100644 --- a/world/map/npc/021-2/kylian.txt +++ b/world/map/npc/021-2/kylian.txt @@ -233,13 +233,15 @@ L_DesertHat: // @state == 8 mes "[Kylian]"; mes "\"That was an interesting night. Thanks for your suggestion to visit the casino.\""; next; + getinventorylist; mes "\"You helped me a lot, so I bought a souvenir for you while I was shopping.\""; - if ((checkweight("DesertHat", count) == 0) || (@inventorylist_count == 100)) + if ((checkweight("DesertHat", 1) == 0) || (@inventorylist_count == 100)) goto L_Inventory; getitem "DesertHat", 1; set @state, 9; callsub S_Update_Mask; next; + L_Done: mes "[Kylian]"; mes "\"I hope to get a positive response about my shop license soon. I might have more things to do for you then, if you're interested."; -- cgit v1.2.3-60-g2f50