summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-15 13:14:56 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-15 13:14:56 -0200
commitc523a19a659f486e8b32f2bed0d8213e974f3465 (patch)
tree8c0233fa49122461b536f70ba5643147d24ff830 /npc/items
parentb9d322983311fcf59fa6815c3c7ff4ab2eb9cc98 (diff)
downloadserverdata-c523a19a659f486e8b32f2bed0d8213e974f3465.tar.gz
serverdata-c523a19a659f486e8b32f2bed0d8213e974f3465.tar.bz2
serverdata-c523a19a659f486e8b32f2bed0d8213e974f3465.tar.xz
serverdata-c523a19a659f486e8b32f2bed0d8213e974f3465.zip
You can't bury items with trade restrictions, your rares aren't protected anymore.
Diffstat (limited to 'npc/items')
-rw-r--r--npc/items/shovel.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt
index e56488cdd..d6c95a09e 100644
--- a/npc/items/shovel.txt
+++ b/npc/items/shovel.txt
@@ -166,10 +166,10 @@ function script shovel_scatter {
.@id = requestitem();
// 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)
+ // GMs bypass notrade check. (ITR_NONE is 0)
if (.@id < 1) close;
if (.@id < 1 || countitem(.@id) < 1 || .@id == IronShovel || checkbound(.@id) ||
- (!is_gm() && !getiteminfo(.@id, ITEMINFO_MAXCHANCE))
+ (!is_gm() && !getiteminfo(.@id, ITEMINFO_TRADE))
) {
@ShovelLastUsed = 0;
if (.@id == IronShovel || checkbound(.@id))