summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/quest_db.conf4
-rw-r--r--npc/020-3/mede.txt66
2 files changed, 70 insertions, 0 deletions
diff --git a/db/quest_db.conf b/db/quest_db.conf
index d18be98a4..8fcf1323b 100644
--- a/db/quest_db.conf
+++ b/db/quest_db.conf
@@ -371,6 +371,10 @@ quest_db: (
Id: 119
Name: "NivalisQuest_BlueSagePagefinder"
},
+{
+ Id: 120
+ Name: "NivalisQuest_Mede"
+},
// ID 131 to 150: Frostia Quests
{
diff --git a/npc/020-3/mede.txt b/npc/020-3/mede.txt
index 52a3c5e79..bf92ba7d8 100644
--- a/npc/020-3/mede.txt
+++ b/npc/020-3/mede.txt
@@ -3,6 +3,7 @@
// Saulc
// Vasily_Makarov (original from Evol)
// Jesusalva
+// Dye Quest added by Povo
// Description:
// Status Reset
@@ -21,6 +22,7 @@ L_Menu:
select
l("Can you reset my stats please?"),
rif(MONSTERPOT >= 1, l("Can you make me a Monster Potion?")),
+ l("Do you make anything else?"),
lg("You are weird, I have to go sorry.");
switch (@menu)
@@ -30,6 +32,8 @@ L_Menu:
case 2:
goto L_MonsterPot;
case 3:
+ goto L_Dye;
+ case 4:
goto L_Quit;
}
@@ -50,6 +54,68 @@ L_MonsterPot:
next;
goto L_Quit;
+L_Dye:
+ mesn;
+ mesq l("I used to make dyes for Agostine but he hasn't bought any in a while. I could make you a %s if you bring me the right items.",
+ getitemlink(TealDye));
+ next;
+ if (BaseLevel < 35) {
+ mesn;
+ mesq l("But the monsters around here must be pretty scary for someone like you.");
+ next;
+ mesq l("Come back when you are a higher level.");
+ next;
+ goto L_Menu;
+ }
+ mesq l("Bring me %d %s, %d %s, %d %s, and %d %s, and I will make it for you. I also charge %d GP as commission.",
+ 1, getitemlink(IcedBottle),
+ 25, getitemlink(BlueCoral),
+ 60, getitemlink(CobaltHerb),
+ 5, getitemlink(IceCube),
+ 1500);
+ compareandsetq NivalisQuest_Mede, 0, 1;
+ next;
+ select
+ l("Yeah, I need one."),
+ l("Thanks for the help, but no."),
+ l("Actually, nevermind. Good bye!");
+ mes "";
+ if (@menu == 2)
+ goto L_Menu;
+
+ if (@menu == 3)
+ goto L_Quit;
+
+L_DyeLoop:
+ if (countitem(IcedBottle) >= 1 &&
+ countitem(BlueCoral) >= 25 &&
+ countitem(CobaltHerb) >= 60 &&
+ countitem(IceCube) >= 5 &&
+ Zeny >= 1500) {
+ inventoryplace TealDye, 1, EmptyBottle, 1;
+ delitem IcedBottle, 1;
+ delitem BlueCoral, 25;
+ delitem CobaltHerb, 60;
+ delitem IceCube, 5;
+ Zeny-=1500;
+ getitem TealDye, 1;
+ getitem EmptyBottle, 1;
+ if (getq(NivalisQuest_Mede) == 1) {
+ setq NivalisQuest_Mede, 2;
+ getexp 1500, 0;
+ }
+ mesn;
+ mesq l("Thanks! Here you go. Perhaps you want another one?");
+ next;
+ if (askyesno() == ASK_YES)
+ goto L_DyeLoop;
+ } else {
+ mesn;
+ mesq l("Sorry, you don't seem to have everything I need.");
+ }
+ close;
+
+
L_Quit:
closedialog;
goodbye;