summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/items/shovel.txt18
1 files changed, 17 insertions, 1 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt
index 1eb7cf9e1..22b406059 100644
--- a/npc/items/shovel.txt
+++ b/npc/items/shovel.txt
@@ -382,6 +382,22 @@ function script shovel_adddigrect {
return 1;
}
+function script shovel_getcity {
+ .@a$=getarg(0);
+
+ // else is not required (return prevails)
+ if (.@a$ == "007-1")
+ return l("Tulimshar Mines");
+ if (.@a$ == "011-1")
+ return l("Halinarzo Mines");
+ if (.@a$ == "015-1")
+ return l("Hurnscald Mines");
+ if (.@a$ == "018-1")
+ return l("Sincerity Island");
+
+ return .@a$;
+}
+
function script shovel_genrandtreasure {
.@m$=any_of("007-1", "011-1", "015-1", "018-1");
// Dangerous
@@ -393,7 +409,7 @@ function script shovel_genrandtreasure {
// Success
if (checkcell(.@m$, .@x, .@y, cell_chkpass)) {
shovel_addquest(.@m$, .@x, .@y, "shovel_randomtreasure");
- ShovelQuests_AssignedMAP$=.@m$;
+ ShovelQuests_AssignedMAP$=shovel_getcity(.@m$);
ShovelQuests_AssignedX=.@x;
ShovelQuests_AssignedY=.@y;
}