diff options
-rw-r--r-- | db/re/item_db.conf | 7 | ||||
-rw-r--r-- | npc/items/shovel.txt | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf index 439923005..e6a0d6238 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -3192,7 +3192,12 @@ item_db: ( KeepAfterUse: true Refine: false Script: <" - dispbottom ("Error, contact pirate about this! or just blame Jesusalva"); + // ShovelQuests_Assigned<MAP$,X,Y> → Coordinates for Treasure Map + if (!ShovelQuests_AssignedX) { + dispbottom ("You cannot read this map..."); + } else { + dispbottom ("A treasure is burried in @@, (@@, @@)", ShovelQuests_AssignedMAP$, ShovelQuests_AssignedX, ShovelQuests_AssignedY); + } "> }, diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt index f8a110f94..b0b3553c6 100644 --- a/npc/items/shovel.txt +++ b/npc/items/shovel.txt @@ -165,6 +165,7 @@ function script shovel_scatter { return 0; } + // Scope: ShovelQuests_ → x, y, map, func{tion} function ShovelQuests { getmapxy(.@map$, .@x, .@y, 0); for (.@i = 0; .@i < getarraysize(ShovelQuests_func$); .@i++) |