From 2acdca6fd672e00a60e9a03033e0821039d673d2 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 17 Aug 2019 16:52:22 -0300 Subject: Pickaxe quest! =D --- npc/007-1/dracoula.txt | 1 + npc/007-1/tycoon.txt | 53 ++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 52 insertions(+), 2 deletions(-) (limited to 'npc') 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; -- cgit v1.2.3-60-g2f50