summaryrefslogtreecommitdiff
path: root/npc/items/shovel.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/items/shovel.txt')
-rw-r--r--npc/items/shovel.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt
index 63d4f677c..fc30b9168 100644
--- a/npc/items/shovel.txt
+++ b/npc/items/shovel.txt
@@ -14,6 +14,11 @@ function script shovel_scriptItem {
.@id=getarg(3);
.@amount=getarg(4,1);
+ // Players can't walk on this cell, why bother?
+ if (!checkcell(.map$, .@x, .@y, cell_chkpass))
+ return;
+
+ // Bury the item, they're renewed daily at 00:00
.@wtc = getarraysize($@WBT_Random_id);
$@WBT_Random_id[.@wtc] = .@id;
$@WBT_Random_amount[.@wtc] = .@amount;