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/items | |
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/items')
-rw-r--r-- | npc/items/shovel.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt index b12d7e897..e56488cdd 100644 --- a/npc/items/shovel.txt +++ b/npc/items/shovel.txt @@ -167,6 +167,7 @@ function script shovel_scatter { // If ID is invalid, there's not enough items, it is an Iron Shovel, it is bound = Cannot bury // GMs bypass rarity check. (A trade restriction check would be better) + if (.@id < 1) close; if (.@id < 1 || countitem(.@id) < 1 || .@id == IronShovel || checkbound(.@id) || (!is_gm() && !getiteminfo(.@id, ITEMINFO_MAXCHANCE)) ) { |