From 1f941bef28ddfc9aa862caaafc19cc7523d4218f Mon Sep 17 00:00:00 2001 From: Vincent Petithory Date: Thu, 8 Nov 2012 12:28:22 +0100 Subject: Fix usages of getinventorylist(): * replace incorrect usage of @inventory_count with the correct variable created by getinventorylist(): @inventorylist_count --- world/map/npc/021-2/kylian.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'world/map/npc/021-2/kylian.txt') diff --git a/world/map/npc/021-2/kylian.txt b/world/map/npc/021-2/kylian.txt index b18d6d6e..bce07f25 100644 --- a/world/map/npc/021-2/kylian.txt +++ b/world/map/npc/021-2/kylian.txt @@ -228,7 +228,7 @@ L_DesertHat: // @state == 8 mes "\"That was an interesting night. Thanks for your suggestion to visit the casino.\""; next; mes "\"You helped me a lot, so I bought a souvenir for you while I was shopping.\""; - if ((checkweight("DesertHat", count) == 0) || (@inventory_count == 100)) + if ((checkweight("DesertHat", count) == 0) || (@inventorylist_count == 100)) goto L_Inventory; getitem "DesertHat", 1; set @state, 9; @@ -264,7 +264,7 @@ L_Close: set @clothes_exp, 0; set @fun_money, 0; set @fun_exp, 0; - set @inventory_count, 0; + set @inventorylist_count, 0; // NOT set to zero: @KylianNTLicense, @KylianNTSightSeeing and @KylianNTCasino // those are used to check if the player logged out in the meanwhile close; -- cgit v1.2.3-70-g09d2