//================= Hercules Script =======================================
//=       _   _                     _
//=      | | | |                   | |
//=      | |_| | ___ _ __ ___ _   _| | ___  ___
//=      |  _  |/ _ \ '__/ __| | | | |/ _ \/ __|
//=      | | | |  __/ | | (__| |_| | |  __/\__ \
//=      \_| |_/\___|_|  \___|\__,_|_|\___||___/
//================= License ===============================================
//= This file is part of Hercules.
//= http://herc.ws - http://github.com/HerculesWS/Hercules
//=
//= Copyright (C) 2012-2015  Hercules Dev Team
//= Copyright (C)  L0ne_W0lf
//= Copyright (C)  Nexon
//= Copyright (C)  Darkchild
//= Copyright (C)  Lupus
//= Copyright (C)  Komurka
//= Copyright (C)  kobra_k88
//=
//= Hercules is free software: you can redistribute it and/or modify
//= it under the terms of the GNU General Public License as published by
//= the Free Software Foundation, either version 3 of the License, or
//= (at your option) any later version.
//=
//= This program is distributed in the hope that it will be useful,
//= but WITHOUT ANY WARRANTY; without even the implied warranty of
//= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//= GNU General Public License for more details.
//=
//= You should have received a copy of the GNU General Public License
//= along with this program.  If not, see <http://www.gnu.org/licenses/>.
//=========================================================================
//= Counteragent and Mixture Quest (Morgenstein)
//================= Description ===========================================
//= Counteragent and Mixtures for making dyes & Alchemist Job Quest
//================= Current Version =======================================
//= 2.2b
//=========================================================================

alberta_in,133,55,3	script	Louitz#cm	4_M_02,{
	if (molgenstain == 2) {
		mes "[Merchant Louitz]";
		mes "Oh, it's you again.";
		mes "So did you try finding";
		mes "that nutcase scientist";
		mes "who lives over in Geffen?";
		next;
		if (select("Talk About Molgenstein", "Cancel") == 1) {
			mes "[Merchant Louitz]";
			mes "You know where he lives";
			mes "but didn't check it out? Hey,";
			mes "he may be off his rocker, but";
			mes "I guess most geniuses are";
			mes "like that. Still, I think it'd be^FFFFFFss^000000 a good idea if you see him.";
			next;
			mes "[Merchant Louitz]";
			mes "I mean...";
			mes "It's only a matter";
			mes "of time until a smart guy";
			mes "like that creates something";
			mes "truly miraculous, right?";
			close;
		}
		mes "[Merchant Louitz]";
		mes "...Hello?";
		mes "Hellooo? Hey.";
		mes "Hey! I'm talkin'";
		mes "to you! Man, I hate";
		mes "it when you adventurers";
		mes "just shut up and space out...";
		close;
	}
	mes "[Merchant Louitz]";
	mes "Heya.";
	mes "What's up?";
	next;
	if (countitem(Detrimindexta) > 0 && countitem(Karvodailnirol) > 0) {
		switch(select("Talk", "Talk about the solutions.", "Cancel")) {
		case 1:
			mes "[Merchant Louitz]";
			mes "When I was in Geffen";
			mes "looking for magic items,";
			mes "I heard rumors of this really";
			mes "crazy scientist guy. So I got";
			mes "curious, asked around, and";
			mes "eventually found this guy.";
			next;
			mes "[Merchant Louitz]";
			mes "Boy, oh boy, this guy was";
			mes "screwy. He didn't even know";
			mes "I was there the whole time and";
			mes "just kept mumbling this mumbo";
			mes "jumbo while working on his";
			mes "experiments. Words like, um...";
			next;
			mes "[Merchant Louitz]";
			mes "Yeah, he kept mumbling";
			mes "words like ''Karvodailnirol''";
			mes "and ''Detrimindexta.'' The";
			mes "first time I heard it, I thought";
			mes "it was just crazy talk, you know?";
			next;
			mes "[Merchant Louitz]";
			mes "But it turns out,";
			mes "this Karvodailnirol";
			mes "and Detrimindexta actually";
			mes "exist. I think they're special";
			mes "liquids that don't work quite";
			mes "like any liquids we're used to.";
			close;
		case 2:
			molgenstain = 1;
			mes "[Merchant Louitz]";
			mes "Hey, this is one of";
			mes "those solutions that";
			mes "scientist kept mentioning.";
			mes "You were able to get one";
			mes "of these? Huh. Now, I have";
			mes "no idea what to do with them... ";
			next;
			mes "[Merchant Louitz]";
			mes "Ah, but that crazy";
			mes "scientist would know.";
			mes "I don't remember exactly";
			mes "where he lives, but I know";
			mes "he's in Geffen and that his";
			mes "name is ^0000FFMolgenstein^000000.";
			next;
			mes "[Merchant Louitz]";
			mes "Hmm... You better";
			mes "go around Geffen and";
			mes "ask around first. I know for";
			mes "sure that somebody knows";
			mes "where you can find Molgenstein.";
			close;
		case 3:
			mes "[Merchant Louitz]";
			mes "Um...";
			mes "Good talking";
			mes "to you pal. Uh,";
			mes "see ya 'round. Take";
			mes "care of yourself, 'kay?";
			close;
		}
	}
	if (countitem(Karvodailnirol) > 0) {
		switch(select("Talk", "Talk about Karvodailnirol", "Cancel")) {
		case 1:
			mes "[Merchant Louitz]";
			mes "When I was in Geffen";
			mes "looking for magic items,";
			mes "I heard rumors of this really";
			mes "crazy scientist guy. So I got";
			mes "curious, asked around, and";
			mes "eventually found this guy.";
			next;
			mes "[Merchant Louitz]";
			mes "Boy, oh boy, this guy was";
			mes "screwy. He didn't even know";
			mes "I was there the whole time and";
			mes "just kept mumbling this mumbo";
			mes "jumbo while working on his";
			mes "experiments. Words like, um...";
			next;
			mes "[Merchant Louitz]";
			mes "Yeah, he kept mumbling";
			mes "words like ''Karvodailnirol''";
			mes "and ''Detrimindexta.'' The";
			mes "first time I heard it, I thought";
			mes "it was just crazy talk, you know?";
			next;
			mes "[Merchant Louitz]";
			mes "But it turns out,";
			mes "this Karvodailnirol";
			mes "and Detrimindexta actually";
			mes "exist. I think they're special";
			mes "liquids that don't work quite";
			mes "like any liquids we're used to.";
			close;
		case 2:
			molgenstain = 1;
			mes "[Merchant Louitz]";
			mes "Oh hey, this is that";
			mes "Karvodailnirol that the";
			mes "old scientist was talking";
			mes "about, huh? Of course, only";
			mes "someone like that guy would";
			mes "know what to do with it...";
			next;
			mes "[Merchant Louitz]";
			mes "Hey, why don't you go";
			mes "and ask him about it?";
			mes "I don't remember exactly";
			mes "where he lives, but I know";
			mes "he's in Geffen and that his";
			mes "name is ^0000FFMolgenstein^000000.";
			next;
			mes "[Merchant Louitz]";
			mes "Hmm... You better";
			mes "go around Geffen and";
			mes "ask around first. I know for";
			mes "sure that somebody knows";
			mes "where you can find Molgenstein.";
			close;
		case 3:
			mes "[Merchant Louitz]";
			mes "Um...";
			mes "Good talking";
			mes "to you pal. Uh,";
			mes "see ya 'round. Take";
			mes "care of yourself, 'kay?";
			close;
		}
	}
	if (countitem(Detrimindexta) > 0) {
		switch(select("Talk", "Talk about Detrimindexta", "Cancel")) {
		case 1:
			mes "[Merchant Louitz]";
			mes "When I was in Geffen";
			mes "looking for magic items,";
			mes "I heard rumors of this really";
			mes "crazy scientist guy. So I got";
			mes "curious, asked around, and";
			mes "eventually found this guy.";
			next;
			mes "[Merchant Louitz]";
			mes "Boy, oh boy, this guy was";
			mes "screwy. He didn't even know";
			mes "I was there the whole time and";
			mes "just kept mumbling this mumbo";
			mes "jumbo while working on his";
			mes "experiments. Words like, um...";
			next;
			mes "[Merchant Louitz]";
			mes "Yeah, he kept mumbling";
			mes "words like ''Karvodailnirol''";
			mes "and ''Detrimindexta.'' The";
			mes "first time I heard it, I thought";
			mes "it was just crazy talk, you know?";
			next;
			mes "[Merchant Louitz]";
			mes "But it turns out,";
			mes "this Karvodailnirol";
			mes "and Detrimindexta actually";
			mes "exist. I think they're special";
			mes "liquids that don't work quite";
			mes "like any liquids we're used to.";
			close;
		case 2:
			molgenstain = 1;
			mes "[Merchant Louitz]";
			mes "Oh hey, this is that";
			mes "Detrimindexta that the";
			mes "old scientist was talking";
			mes "about, huh? Of course, only";
			mes "someone like that guy would";
			mes "know what to do with it...";
			next;
			mes "[Merchant Louitz]";
			mes "Hey, why don't you go";
			mes "and ask him about it?";
			mes "I don't remember exactly";
			mes "where he lives, but I know";
			mes "he's in Geffen and that his";
			mes "name is ^0000FFMolgenstein^000000.";
			next;
			mes "[Merchant Louitz]";
			mes "Hmm... You better";
			mes "go around Geffen and";
			mes "ask around first. I know for";
			mes "sure that somebody knows";
			mes "where you can find Molgenstein.";
			close;
		case 3:
			mes "[Merchant Louitz]";
			mes "Um...";
			mes "Good talking";
			mes "to you pal. Uh,";
			mes "see ya 'round. Take";
			mes "care of yourself, 'kay?";
			close;
		}
	}
	if (select("Talk", "Cancel") == 1) {
		mes "[Merchant Louitz]";
		mes "When I was in Geffen";
		mes "looking for magic items,";
		mes "I heard rumors of this really";
		mes "crazy scientist guy. So I got";
		mes "curious, asked around, and";
		mes "eventually found this guy.";
		next;
		mes "[Merchant Louitz]";
		mes "Boy, oh boy, this guy was";
		mes "screwy. He didn't even know";
		mes "I was there the whole time and";
		mes "just kept mumbling this mumbo";
		mes "jumbo while working on his";
		mes "experiments. Words like, um...";
		next;
		mes "[Merchant Louitz]";
		mes "Yeah, he kept mumbling";
		mes "words like ''Karvodailnirol''";
		mes "and ''Detrimindexta.'' The";
		mes "first time I heard it, I thought";
		mes "it was just crazy talk, you know?";
		next;
		mes "[Merchant Louitz]";
		mes "But it turns out,";
		mes "this Karvodailnirol";
		mes "and Detrimindexta actually";
		mes "exist. I think they're special";
		mes "liquids that don't work quite";
		mes "like any liquids we're used to.";
		close;
	}
	mes "[Merchant Louitz]";
	mes "Um...";
	mes "Good talking";
	mes "to you pal. Uh,";
	mes "see ya 'round. Take";
	mes "care of yourself, 'kay?";
	close;
}

geffen,181,114,3	script	Aure Dupon#cm	4_KID01,{
	if (molgenstain == 2) {
		mes "[Aure Dupon]";
		mes "It seems that our";
		mes "paths yet cross again.";
		mes "Coincidence? It's more";
		mes "than that. This is ^0000FFfate^000000.";
		next;
		if (select("Talk About Molgenstein", "Cancel") == 1) {
			mes "[Aure Dupon]";
			mes "Have you not met";
			mes "Molgenstein yet? He";
			mes "lives on the second floor";
			mes "of the Forge. Although we've";
			mes "just met, I must warn you not";
			mes "to get too close to him...";
			close;
		}
		mes "[Aure Dupon]";
		mes "Go then, and";
		mes "may the tides of";
		mes "destiny carry you";
		mes "to where you must go.";
		close;
	}
	mes "[Aure Dupon]";
	mes "Time flows gently";
	mes "and subtly, but no";
	mes "force in this world";
	mes "can possibly stop it.";
	mes "Mankind is not even a";
	mes "mote in the grand scheme.";
	next;
	if (molgenstain > 0) {
		switch(select("Talk", "Ask About Molgenstein", "Cancel")) {
		case 1:
			mes "[Aure Dupon]";
			mes "To have goals and focus";
			mes "is good, but to be obsessive";
			mes "about one single thing can be";
			mes "quite destructive. Relax, empty";
			mes "your mind, and let yourself be";
			mes "carried by the tides of destiny.";
			close;
		case 2:
			molgenstain = 2;
			mes "[Aure Dupon]";
			mes "Molgenstein...?";
			mes "The man is obsessed";
			mes "with conquering the forces";
			mes "that control our world. But";
			mes "you seem to be curious about";
			mes "him for some reason. Hmmm...";
			next;
			mes "[Aure Dupon]";
			mes "It would be best if you";
			mes "were to see Molgenstein";
			mes "and judge his character for";
			mes "yourself. You may find him in";
			mes "the second floor of the Geffen";
			mes "Forge. Go: It is your destiny.";
			close;
		case 3:
			mes "[Aure Dupon]";
			mes "Go then, and";
			mes "may the tides of";
			mes "destiny carry you";
			mes "to where you must go.";
			close;
		}
	}
	if (select("Talk", "Cancel") == 1) {
		mes "[Aure Dupon]";
		mes "To have goals and focus";
		mes "is good, but to be obsessive";
		mes "about one single thing can be";
		mes "quite destructive. Relax, empty";
		mes "your mind, and let yourself be";
		mes "carried by the tides of destiny.";
		close;
	}
	mes "[Aure Dupon]";
	mes "Go then, and";
	mes "may the tides of";
	mes "destiny carry you";
	mes "to where you must go.";
	close;
}

geffen_in,141,140,3	script	Molgenstein#cm	2_M_MOLGENSTEIN,{
	if (checkweight(Knife,1) == 0) {
		mes "- Wait a minute !! -";
		mes "- Currently you're carrying -";
		mes "- too many items with you. -";
		mes "- Please try again -";
		mes "- after you loose some weight. -";
		close;
	}
	if (MISC_QUEST & 4) {
		mes "[Chemist Molgenstein]";
		mes ".....";
		mes "Welcome.";
		mes "Hehehehe....";
		mes "Heeheeheeheehee....";
		next;
		switch(select("Ask about his research", "Ask him to make a new solution.", "Cancel")) {
		case 1:
			mes "[Chemist Molgenstein]";
			mes "Heeheeheeheee...";
			mes "You must have heard the rumors about my research. Yes! But since you probably know already, I'll tell you without hiding, I mean, there's nothing to hide.";
			next;
			mes "[Chemist Molgenstein]";
			mes "Actually, you can say my research is complete! Nothing's impossible for my genius! Bwahaha, it's just a matter of time!";
			next;
			mes "[Chemist Molgenstein]";
			mes "Are you still here? Right, you wanted to know about my research. It's actually very simple. I was just trying to invent a super liquid that can melt everything!";
			next;
			mes "[Chemist Molgenstein]";
			mes "Isn't it interesting? No matter how strong you are, you can't break apart stone or steel, but with my new liquid, you can melt those things, making them soft like puddy!";
			next;
			mes "[Chemist Molgenstein]";
			mes "It can't melt everything yet, but I did find that you could combine things that you could never mix before with my invention. Heeheeheehee~!";
			next;
			mes "[Chemist Molgenstein]";
			mes "You can make a whole lot of things that you'd never would have imagined possible! I can make you a lot of new things you never would have imagined using this method... as long as you want it!!";
			next;
			mes "[Chemist Molgenstein]";
			mes "The endorphins are rushing to my face at least 2.1 times faster than the usual rate! Ah! I'm so excited! I... I just can't hide it!";
			close;
		case 2:
			mes "[Chemist Molgenstein]";
			mes "So...";
			mes "You want me to make something totally new, huh? Hehhehheh! I love your sense of scientific adventure!";
			next;
			switch(select("Counteragent", "Mixture")) {
			case 1:
				mes "[Chemist Molgenstein]";
				mes "Ooh...!";
				mes "You want to make a Counteragent? Hohohohoho, let's see what we'll need...";
				next;
				mes "[Chemist Molgenstein]";
				mes "Oh, I remember, yes, Alcohol, and um, er, Detrimindexta and an Empty Bottle to put it it all in. Just these three items and 3000 zeny.";
				next;
				mes "[Chemist Molgenstein]";
				mes "Bwahahahah!";
				mes "Oh, I just can't wait to make this! Are you ready to begin?";
				next;
				if (select("Make", "Cancel") == 1) {
					if (countitem(Alchol) == 0 || countitem(Detrimindexta) == 0 || countitem(Empty_Bottle) == 0 || Zeny < 3000) {
						mes "[Chemist Molgenstein]";
						mes "Heuheuheuheuh.... not enough... not enough.. Haah...Haah... Go..... get the rest of the materials!";
						mes "We'll postpone the fun until then... Heuheuheuheuheuh.";
						close;
					}
					mes "[Chemist Molgenstein]";
					mes "Ooooooooh...... heeheeheeheehee...... yes... like that...... yes... more... more........ heeheeheehee.";
					mes ".... Aaah.... ahah... ha....ahahooooooooohoh!";
					next;
					if (countitem(Alchol) < 1 || countitem(Detrimindexta) < 1 || countitem(Empty_Bottle) < 1) {
						mes "[Chemist Molgenstein]";
						mes "Hohohoho.... not enough... not enough... haah...haah... go..... go get the rest of the materials!!";
						close;
					}
					delitem Alchol,1;
					delitem Detrimindexta,1;
					delitem Empty_Bottle,1;
					Zeny -= 3000;
					getitem Counteragent,1;
					mes "[Chemist Molgenstein]";
					mes "Hee hee hee...";
					mes "Haaaaah......";
					mes "Oh? We're done already?!";
					close;
				}
				mes "[Chemist Molgenstein]";
				mes "Hee hee hee...!";
				mes "Come back when";
				mes "you're ready~";
				close;
			case 2:
				mes "[Chemist Molgenstein]";
				mes "Ooh...!";
				mes "You want to make a Mixture? Hohohohoho, let's see what we'll need...";
				next;
				mes "[Chemist Molgenstein]";
				mes "Ooh, I remember now, yes, Alcohol, and um, er, Karvodailnirol and an empty bottle to put all of it in. Just these three items and 4000 zeny.";
				next;
				mes "[Chemist Molgenstein]";
				mes "Bwahahahah!";
				mes "Oh, I just can't wait to make this! Are you ready to begin?";
				next;
				if (select("Make", "Cancel") == 1) {
					if (countitem(Alchol) == 0 || countitem(Karvodailnirol) == 0 || countitem(Empty_Bottle) == 0 || Zeny < 4000) {
						mes "[Chemist Molgenstein]";
						mes "Hohohoho.... not enough... not enough... haah...haah... go..... go get the rest of the materials!!";
						mes "We'll have to postpone the fun for later... Hehehehe";
						close;
					}
					mes "[Chemist Molgenstein]";
					mes "Ooooooooh... heehee...... yes... like that...... yes... more... more........ heeheeheehee";
					mes ".... Aaah.... ahah... ha....ahah...oooooooooooooooooh!!!...!!!!!!";
					next;
					if (countitem(Alchol) < 1 || countitem(Karvodailnirol) < 1 || countitem(Empty_Bottle) < 1) {
						mes "[Chemist Molgenstein]";
						mes "Hohohoho.... not enough... not enough... haah...haah... go..... go get the rest of the materials!!";
						close;
					}
					delitem Alchol,1;
					delitem Karvodailnirol,1;
					delitem Empty_Bottle,1;
					Zeny -= 4000;
					getitem Mixture,1;
					mes "[Chemist Molgenstein]";
					mes "Hee hee hee...";
					mes "Haaaaah......";
					mes "Oh? We're done already?!";
					close;
				}
				mes "[Chemist Molgenstein]";
				mes "[Chemist Molgenstein]";
				mes "Hee hee hee...!";
				mes "Come back when";
				mes "you're ready~";
				mes "Heh... heuheuheuheh....";
				close;
			}
		case 3:
			mes "[Chemist Molgenstein]";
			mes "Heehee....heheheheh....";
			close;
		}
	}
	if (molgenstain == 2) {
		MISC_QUEST |= 4;
		molgenstain = 0;
		mes "[Chemist Molgenstein]";
		mes "Heeheeheehee.... welcome. Hehehehe.... heeheeheeheehee....";
		next;
		mes "[Chemist Molgenstein]";
		mes "Ah...?!";
		mes "So sorry if I weirded you out. It's just... I haven't seen a living person in soooo long. So, er, what can I do for you??";
		next;
		if (select("Ask about his research.", "Cancel.") == 1) {
			mes "[Chemist Molgenstein]";
			mes "Heeheeheeheee...";
			mes "You must have heard the rumors about my research. Yes! But since you probably know already, I'll tell you without hiding, I mean, there's nothing to hide.";
			next;
			mes "[Chemist Molgenstein]";
			mes "Actually, you can say my research is complete! Nothing's impossible for my genius! Bwahaha, it's just a matter of time!";
			next;
			mes "[Chemist Molgenstein]";
			mes "Are you still here? Right, you wanted to know about my research. It's actually very simple. I was just trying to invent a super liquid that can melt everything!";
			next;
			mes "[Chemist Molgenstein]";
			mes "Isn't it interesting? No matter how strong you are, you can't break apart stone or steel, but with my new liquid, you can melt those things, making them soft like puddy!";
			next;
			mes "[Chemist Molgenstein]";
			mes "It can't melt everything yet, but I did find that you could combine things that you could never mix before with my invention.";
			next;
			mes "[Chemist Molgenstein]";
			mes "I can make you a lot of new things you never would have imagined using this method... as long as you want it!!";
			next;
			mes "[Chemist Molgenstein]";
			mes "The endorphins are rushing to my face at least 2.1 times faster than the usual rate! Ah! I'm so excited! I... I just can't hide it!";
			close;
		}
		close;
	}
	mes "[Chemist Molgenstein]";
	mes "Heeheeheehee...";
	mes "You're not here to be a test subject, are you? Probably not though. Not since my little 'accident.' Heeheeheeee~!";
	close;
}
