summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-01 00:33:17 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-01 00:33:17 -0300
commitd9a5a9c58d612e4134c43642c7575785716faea6 (patch)
treefdff034f0189c3fff35a13b17847496c839befac /npc/items
parentb9124d07d659a6ca2d364922ed0537ad980d9ca3 (diff)
downloadserverdata-d9a5a9c58d612e4134c43642c7575785716faea6.tar.gz
serverdata-d9a5a9c58d612e4134c43642c7575785716faea6.tar.bz2
serverdata-d9a5a9c58d612e4134c43642c7575785716faea6.tar.xz
serverdata-d9a5a9c58d612e4134c43642c7575785716faea6.zip
Minimum safety when burying stuff: No bound or non-drop items!
Diffstat (limited to 'npc/items')
-rw-r--r--npc/items/shovel.txt8
1 files changed, 5 insertions, 3 deletions
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;