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/022-1/adrian.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'world/map/npc/022-1') diff --git a/world/map/npc/022-1/adrian.txt b/world/map/npc/022-1/adrian.txt index 50b123c8..fbae8706 100644 --- a/world/map/npc/022-1/adrian.txt +++ b/world/map/npc/022-1/adrian.txt @@ -29,7 +29,7 @@ L_Get: mes "He checks the paper Kylian gave you and then takes a critical look at you."; next; getinventorylist; - if ((checkweight("LeatherSuitcase", 1) == 0) || (@inventory_count == 100)) + if ((checkweight("LeatherSuitcase", 1) == 0) || (@inventorylist_count == 100)) goto L_Inventory; mes "[Adrian]"; mes "\"Alright, here it is.\""; @@ -47,6 +47,6 @@ L_Inventory: L_Close: set @state, 0; - set @inventory_count, 0; + set @inventorylist_count, 0; close; } -- cgit v1.2.3-60-g2f50