diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-09 21:51:39 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-09 21:51:39 -0300 |
commit | 9e0fce96bb3fabd96c55da410ec40ec575b553bc (patch) | |
tree | 1fae1eabcd59fd7ba2703a1c708824bc0902cbcb | |
parent | e58b2f50313887c59ada29df17b314537499c0e4 (diff) | |
download | serverdata-9e0fce96bb3fabd96c55da410ec40ec575b553bc.tar.gz serverdata-9e0fce96bb3fabd96c55da410ec40ec575b553bc.tar.bz2 serverdata-9e0fce96bb3fabd96c55da410ec40ec575b553bc.tar.xz serverdata-9e0fce96bb3fabd96c55da410ec40ec575b553bc.zip |
Report the mine name instead of the Map ID
-rw-r--r-- | npc/items/shovel.txt | 18 |
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; } |