diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-09 18:14:37 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-09 18:14:37 -0300 |
commit | e085598c816de7d0ee8656b0763507e64aac279f (patch) | |
tree | c85e08cfaebc5c452351ce755821d1382fb132e5 | |
parent | 109df4b0e610df5f93ee7e3c971b81acee9b5818 (diff) | |
download | serverdata-e085598c816de7d0ee8656b0763507e64aac279f.tar.gz serverdata-e085598c816de7d0ee8656b0763507e64aac279f.tar.bz2 serverdata-e085598c816de7d0ee8656b0763507e64aac279f.tar.xz serverdata-e085598c816de7d0ee8656b0763507e64aac279f.zip |
Treasure Map: You cannot read it because coordinates are TODO, but it works
-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++) |