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/014-2/mouboo.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'npc/014-2/mouboo.txt') diff --git a/npc/014-2/mouboo.txt b/npc/014-2/mouboo.txt index 69343a46c..746a1bf94 100644 --- a/npc/014-2/mouboo.txt +++ b/npc/014-2/mouboo.txt @@ -54,6 +54,7 @@ L_Begin: .@id = requestitem(); // If ID is invalid, there's not enough items, it is bound = Cannot bury + if (.@id < 1) close; if (.@id < 1 || countitem(.@id) < 1 || checkbound(.@id) || getiteminfo(.@id, ITEMINFO_TYPE) != IT_HEALING) { if (checkbound(.@id)) mesc l("You cannot part with this item!"); @@ -107,6 +108,7 @@ L_Begin: .@id = requestitem(); // If ID is invalid, there's not enough items, it is bound = Cannot bury + if (.@id < 1) close; if (.@id < 1 || countitem(.@id) < 1 || getiteminfo(.@id, ITEMINFO_TYPE) != IT_WEAPON) { if (getiteminfo(.@id, ITEMINFO_TYPE) != IT_WEAPON) mesc l("This is not a weapon. Wait, you don't want to explode it, right?!"); -- cgit v1.2.3-60-g2f50