From b9d322983311fcf59fa6815c3c7ff4ab2eb9cc98 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 15 Jan 2019 13:12:08 -0200 Subject: Fix several bugs with requestitem(), because hercules does overwork --- npc/019-1/well.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'npc/019-1/well.txt') diff --git a/npc/019-1/well.txt b/npc/019-1/well.txt index 28022b1d8..f1d0b40de 100644 --- a/npc/019-1/well.txt +++ b/npc/019-1/well.txt @@ -62,10 +62,12 @@ L_Throw: .@id = requestitem(); // If ID is invalid, there's not enough items, it is bound = Cannot bury - if (.@id < 1 || countitem(.@id) < 1 || checkbound(.@id) || !getiteminfo(.@id, ITEMINFO_MAXCHANCE)) { - if (.@id < 1) - mesc l("You give up."); - else if (checkbound(.@id)) + if (.@id < 1) { + mesc l("You give up."); + close; + } + if (countitem(.@id) < 1 || checkbound(.@id) || !getiteminfo(.@id, ITEMINFO_MAXCHANCE)) { + if (checkbound(.@id)) mesc l("You cannot drop this item!"); else if (!getiteminfo(.@id, ITEMINFO_MAXCHANCE)) mesc l("This item is too precious, you cannot part with it!"); -- cgit v1.2.3-60-g2f50