summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/003-2/lua.txt6
-rw-r--r--npc/functions/clientversion.txt3
2 files changed, 8 insertions, 1 deletions
diff --git a/npc/003-2/lua.txt b/npc/003-2/lua.txt
index dabe7e25c..5cd30f0c4 100644
--- a/npc/003-2/lua.txt
+++ b/npc/003-2/lua.txt
@@ -237,10 +237,11 @@ L_Task:
close;
L_Finish:
- inventoryplace MercBoxAA, 1;
+ inventoryplace MercBoxAA, 1, TreasureKey, 1;
getexp BaseLevel*60, JobLevel*10; // Reference Levels: (20, 6)
setq General_Narrator, 3, 0;
getitem MercBoxAA, 1;
+ getitem TreasureKey, 1;
mesn;
mesq l("Great job! You can keep these items, they will be crucial to your journey.");
next;
@@ -253,6 +254,9 @@ L_Finish:
mesn;
mesq l("Still, they can be useful when you're trying to solo a boss and need help. The number of stars on the card is the strength and rarity. Use them wisely.");
next;
+ mesn;
+ mesq l("Ah, you might have seen a treasure chest on the mines. There are several of these chests to loot, and loot again! Here is a @@. Try it!", getitemlink(TreasureKey));
+ next;
L_Complete:
mesn;
mesq l("You see the docks on the other side of the town? There should be a ship docked there.");
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index f7f2e2158..3950f70f2 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -543,6 +543,9 @@ function script clientupdater {
// Magic Skill Points for this skill went from 3 to 2
if (getskilllv(ASC_METEORASSAULT))
MAGIC_PTS-=1;
+ // Treasure Key from Lua
+ if (getq(General_Narrator) >= 3)
+ getitem TreasureKey, 1;
// Post-poned Referral Rewards
if (#REFERRAL_PROG && BaseLevel >= 25 && #REFERRAL_CTRL < 1) {