diff options
Diffstat (limited to 'npc/019-1/well.txt')
-rw-r--r-- | npc/019-1/well.txt | 10 |
1 files changed, 6 insertions, 4 deletions
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!"); |