summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/quest_db.conf6
-rw-r--r--npc/007-1/dracoula.txt1
-rw-r--r--npc/007-1/tycoon.txt53
3 files changed, 57 insertions, 3 deletions
diff --git a/db/quest_db.conf b/db/quest_db.conf
index 5614640b7..12086a0ae 100644
--- a/db/quest_db.conf
+++ b/db/quest_db.conf
@@ -373,7 +373,11 @@ quest_db: (
Id: 193
Name: "MineQuest_Caelum"
},
-// 194~199: Overflow Quests (Unused)
+{
+ Id: 194
+ Name: "MineQuest_Pickaxe"
+},
+// 195~199: Overflow Quests (Unused)
{
Id: 200
Name: "General_MobHunting1"
diff --git a/npc/007-1/dracoula.txt b/npc/007-1/dracoula.txt
index 4e7a5216f..fb63a4c14 100644
--- a/npc/007-1/dracoula.txt
+++ b/npc/007-1/dracoula.txt
@@ -128,6 +128,7 @@ L_Miner:
next;
mesn;
mesq l("He is the Miners leader.");
+ compareandsetq MineQuest_Pickaxe, 0, 1;
next;
goto L_Menu;
diff --git a/npc/007-1/tycoon.txt b/npc/007-1/tycoon.txt
index 38874d9aa..8ed6721a1 100644
--- a/npc/007-1/tycoon.txt
+++ b/npc/007-1/tycoon.txt
@@ -3,7 +3,7 @@
// Saulc
// Jesusalva
// Description:
-// Miner leader asks you to purge mine from monsters. Currently disabled.
+// Miner leader asks you to purge mine from monsters.
// Variable:
// MineQuest_Tycoon
// Reference:
@@ -60,6 +60,7 @@ L_Menu:
mesn strcharinfo(0);
menu
rif(getq(MineQuest_Tycoon) < 15, l("I am a brave adventurer! How can I help you?")), L_Purge,
+ rif(getq(MineQuest_Pickaxe) == 1, l("Can I become a miner?")), L_Miner,
l("What does miners do in cave?"), L_CaveMiner,
l("Can you give me a tip?"), L_Tip,
l("Are you a terranite?"), L_Terranite,
@@ -163,10 +164,58 @@ L_NoLevel:
+L_Miner:
+ .@price=800;
+ if (getq(MineQuest_Tycoon) == 15)
+ .@price=200;
+ if (getq(MineQuest_Caelum) >= 2)
+ .@price-=150;
+
+ mes "";
+ mesn;
+ mesq l("Well, I'm the miner leader, indeed. A miner need to have the full set.");
+ next;
+ mesn;
+ mesq l("The uniform would be: @@, @@ and @@", getitemlink(LeatherShirt), getitemlink(MinerHat), getitemlink(Pickaxe));
+ next;
+ mesn;
+ mesq l("I can sell you the Pickaxe for @@ GP if you have and equip the remaining equipment.", .@price);
+ if (Zeny < .@price)
+ close;
+
+ // Allow you to change
+ enable_items();
+ next;
+ disable_items();
+ // If you're in proper uniform, DO NOT ASK FOR CONFIRMATION
+ if (
+ getequipid(EQI_HEAD_TOP) == MinerHat &&
+ getequipid(EQI_HEAD_MID) == LeatherShirt &&
+ Zeny >= .@price) {
+
+ inventoryplace Pickaxe, 1;
+ Zeny-=.@price;
+ getitem Pickaxe, 1;
+ setq MineQuest_Pickaxe, 2;
+ mesn;
+ mesq l("Good. You look like a real miner! Take this @@ and go mine bifs!");
+ if (TUTORIAL) {
+ next;
+ mesc l("@@ is a two-handed weapon with very low damage and attack speed.", getitemlink(Pickaxe));
+ mesc l("While it may not be suitable for fighting, by using it against Bifs and other mineral formations, you'll be able to get more ore.");
+ next;
+ mesc l("You may even obtain ores which you wouldn't otherwise obtain normally, and the drop rate is fixed.");
+ mesc l("A Miner is a must-have for a craftsman/craftswoman, as they are in constant need of ores and coal.");
+ }
+ next;
+ }
+ goto L_Menu;
+
+
L_CaveMiner:
mes "";
mesn;
- mesq l("Tulimshar miners mainly try to optain gems.");
+ mesq l("Tulimshar miners mainly try to obtain gems.");
next;
mesq l("In this cave we can easily find Coal, Iron ore, and sometimes @@.", getitemlink(Ruby)); // maybe add link for coal and iron ?
next;