diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-01-15 13:12:08 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-01-15 13:12:08 -0200 |
commit | b9d322983311fcf59fa6815c3c7ff4ab2eb9cc98 (patch) | |
tree | f5af237df591ec29b384d913f55c6427b0a588bb /npc/014-2 | |
parent | 29b7120b0c0dfbf2396f6c63e64a620a36b4e5e8 (diff) | |
download | serverdata-b9d322983311fcf59fa6815c3c7ff4ab2eb9cc98.tar.gz serverdata-b9d322983311fcf59fa6815c3c7ff4ab2eb9cc98.tar.bz2 serverdata-b9d322983311fcf59fa6815c3c7ff4ab2eb9cc98.tar.xz serverdata-b9d322983311fcf59fa6815c3c7ff4ab2eb9cc98.zip |
Fix several bugs with requestitem(), because hercules does overwork
Diffstat (limited to 'npc/014-2')
-rw-r--r-- | npc/014-2/mouboo.txt | 2 |
1 files changed, 2 insertions, 0 deletions
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?!"); |