diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-30 23:50:48 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-30 23:50:48 -0300 |
commit | e6cc9ac2980d8e2cbe3d2e9ec27f32614ca3f494 (patch) | |
tree | e991a11fd8bb275af8d28cc2bcfbf7294c823b56 /npc | |
parent | e01b16bfa45a3bdf2ecd9b46cfc623f246c8c554 (diff) | |
download | serverdata-e6cc9ac2980d8e2cbe3d2e9ec27f32614ca3f494.tar.gz serverdata-e6cc9ac2980d8e2cbe3d2e9ec27f32614ca3f494.tar.bz2 serverdata-e6cc9ac2980d8e2cbe3d2e9ec27f32614ca3f494.tar.xz serverdata-e6cc9ac2980d8e2cbe3d2e9ec27f32614ca3f494.zip |
You can dig & bury on all mines
Diffstat (limited to 'npc')
-rw-r--r-- | npc/items/shovel.txt | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt index f510d2f1b..ec027fb7d 100644 --- a/npc/items/shovel.txt +++ b/npc/items/shovel.txt @@ -96,15 +96,16 @@ mesc l("Uh... You can't bury your own shovel!"); else mesc l("You give up."); - return -6; + return; } .@amount = 1; - if (countitem(.@id) > 1) - { + if (countitem(.@id) > 1) { narrator S_FIRST_BLANK_LINE | S_LAST_BLANK_LINE, l("Amount?"); - input .@amount, 1, countitem(.@id); + input .@amount, 0, countitem(.@id); } + if (.@amount == 0 || .@amount > countitem(.@id)) + return; getmapxy(.@map$, .@x, .@y, 0); delitem .@id, .@amount; @@ -179,7 +180,10 @@ OnHour00: OnInit: .PlayerTiredTime = 20; - AddDigRect("001-1", 172, 26, 200, 48); + // You can bury & dig on all mines + AddDigRect("007-1", 20, 20, 180, 180); + AddDigRect("011-1", 20, 20, 180, 180); + AddDigRect("015-1", 20, 20, 180, 180); end; } |