summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-26 23:00:39 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-26 23:00:39 -0300
commit5800dee9ef21b9a20aded8b630952cb64187dbc8 (patch)
treea1b607dedcbed6e8df0b16760186ffafdd0de698 /npc/items
parent7a3d24118810a2a6227aad4ae80f0759393a4ab7 (diff)
downloadserverdata-5800dee9ef21b9a20aded8b630952cb64187dbc8.tar.gz
serverdata-5800dee9ef21b9a20aded8b630952cb64187dbc8.tar.bz2
serverdata-5800dee9ef21b9a20aded8b630952cb64187dbc8.tar.xz
serverdata-5800dee9ef21b9a20aded8b630952cb64187dbc8.zip
Steel Shovel for IAP. Add Iron Shovel for 5kGP
Diffstat (limited to 'npc/items')
-rw-r--r--npc/items/shovel.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt
index 4dc725249..fe96ea7a8 100644
--- a/npc/items/shovel.txt
+++ b/npc/items/shovel.txt
@@ -94,6 +94,12 @@ function script shovel_scatter {
.@tick = gettimetick(1);
.@playertick = .PlayerTiredTime - (readparam(bStr)/5) - (readparam(bVit)/10);
+
+ // Dig and Bury more with Steel Shovel
+ if (countitem(SteelShovel)) {
+ .@playertick-=(.PlayerTiredTime*2)/3;
+ }
+
if (@ShovelLastUsed + max(5, .@playertick) > .@tick) {
mes "";
mesc lg("You are exhausted, you should rest a bit.");
@@ -168,11 +174,11 @@ function script shovel_scatter {
// If ID is invalid, there's not enough items, it is an Iron Shovel, it is bound = Cannot bury
// NOBODY bypass notrade check. (ITR_NONE is 0)
if (.@id < 1) close;
- if (.@id < 1 || countitem(.@id) < 1 || .@id == IronShovel || checkbound(.@id) ||
+ if (.@id < 1 || countitem(.@id) < 1 || .@id == IronShovel || .@id == SteelShovel || checkbound(.@id) ||
(!getiteminfo(.@id, ITEMINFO_TRADE))
) {
@ShovelLastUsed = 0;
- if (.@id == IronShovel || checkbound(.@id))
+ if (.@id == IronShovel || .@id == SteelShovel || checkbound(.@id))
mesc l("You cannot bury this item!");
else if (!getiteminfo(.@id, ITEMINFO_TRADE))
mesc l("This item is too precious, you cannot part with it!");