From e085598c816de7d0ee8656b0763507e64aac279f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 9 Jun 2019 18:14:37 -0300 Subject: Treasure Map: You cannot read it because coordinates are TODO, but it works --- db/re/item_db.conf | 7 ++++++- npc/items/shovel.txt | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) 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 → 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++) -- cgit v1.2.3-70-g09d2