From d9a5a9c58d612e4134c43642c7575785716faea6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 1 Jul 2018 00:33:17 -0300 Subject: Minimum safety when burying stuff: No bound or non-drop items! --- npc/items/shovel.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'npc/items') diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt index 6fed767e6..5fac70940 100644 --- a/npc/items/shovel.txt +++ b/npc/items/shovel.txt @@ -119,10 +119,12 @@ .@id = requestitem(); - if (.@id < 1 || countitem(.@id) < 1 || .@id == IronShovel) { + if (.@id < 1 || countitem(.@id) < 1 || .@id == IronShovel || checkbound(.@id) || !getiteminfo(.@id, ITEMINFO_MAXCHANCE)) { @ShovelLastUsed = 0; - if (.@id == IronShovel) - mesc l("Uh... You can't bury your own shovel!"); + if (.@id == IronShovel || checkbound(.@id)) + mesc l("You cannot bury this item!"); + else if (!getiteminfo(.@id, ITEMINFO_MAXCHANCE)) + mesc l("This item is too precious, you cannot part with it!"); else mesc l("You give up."); return; -- cgit v1.2.3-70-g09d2