summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-23 00:43:45 +0000
committerJesusaves <cpntb1@ymail.com>2021-05-23 00:43:45 +0000
commit2e8334ff28a9b329cc9c7f11d3da082074581259 (patch)
tree9c96ec1bfa9350667916759d915de6af57748920
parent496ba5b71e48d9cc62fa34f415390c077bf27716 (diff)
parente6531dfa11aac75eb426ee638e442cf6b756b27a (diff)
downloadserverdata-2e8334ff28a9b329cc9c7f11d3da082074581259.tar.gz
serverdata-2e8334ff28a9b329cc9c7f11d3da082074581259.tar.bz2
serverdata-2e8334ff28a9b329cc9c7f11d3da082074581259.tar.xz
serverdata-2e8334ff28a9b329cc9c7f11d3da082074581259.zip
Merge branch 'trithodex-master-patch-tealdye' into 'master'
Trithodex master patch tealdye See merge request TMW2/serverdata!51
-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;