//================= 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)  rAthena Dev Team
//= Copyright (C)  eAthena Dev Team
//= Copyright (C)  akrus
//= Copyright (C)  Samuray22
//= Copyright (C)  Lupus
//= Copyright (C)  Darkchild
//= Copyright (C)  kobra_k88
//= Copyright (C)  L0ne_W0lf
//=
//= 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/>.
//=========================================================================
//= Quest NPCs related to Juno
//================= Description ===========================================
//= Metto Quest:
//= - Not really sure exaclty what it's for. :P
//= - Variable in use: metto_q (max 9)
//= Alchemist Brothers:
//= - Used in part of the Alchemist job quest.
//= - Variable in use: bros_q (max 1)
//= Doomed Swords Part 2:
//= - Continuation of the Comodo Quest
//= - Part 1: Found in Quests_Comodo.txt
//= - Part 3: Found in Doomed_Swords.txt
//= - Variable in use dmdswrd_Q (Max 45)
//================= Current Version =======================================
//= 2.0a
//=========================================================================

//== Metto Quest :: yuno_ryusei ============================
yuno_in03,26,39,3	script	Metto#juno	4_M_SEAMAN,{
	mes "[Metto]";
	if (metto_q == 0) {
		mes "In the Lab today, in the Lab tomorrow! Everyday is filled with research! Even if it takes my entire life, I will not give up until I have made a new Juno...";
		next;
		mes "[Metto]";
		mes "A new Juno in which all will bask in the light of my genius! If I can just harness the power of flight... I know I can do it!";
		next;
		mes "[Metto]";
		mes "^FF0000Wagan^000000 said that my idea was crazy and impossible. But I am no fool, I won't be swayed by his words of mockery!";
		close;
	}
	else if (metto_q == 1) {
		metto_q = 2;
		mes "I'm going to ask my colleague ^FF0000Stangckle^000000 to help me. I am sure he will be more than willing to help out an old friend.";
		next;
		mes "[Metto]";
		mes "If I had that fellow's help, this would be much easier. Pray! Pray to whatever God you believe that we will succeed!";
		close;
	}
	else if (metto_q == 3) {
		metto_q = 4;
		mes "What? That punk Stangckle said he doesn't want to help me?! This is not good. This will slow my research considerably.";
		next;
		mes "[Metto]";
		mes "...";
		mes "What will";
		mes "I do now?!";
		next;
		mes "[Metto]";
		mes "Luckily, I have a back up plan. I am positive that my friend and colleague ^FF0000Kato^000000 will lend his aid.";
		next;
		mes "[Metto]";
		mes "If I can only study his super robot, Great Z, I can continue my research...";
		next;
		mes "[Metto]";
		mes "I guess if Stangckle doesn't want to help me, he can have it his way. I must continue my research, whether or not he helps me.";
		next;
		mes "[Metto]";
		mes "Expect great things, young friend. Muahahahha.";
		close;
	}
	else if (metto_q == 5) {
		metto_q = 6;
		mes "What? You mean to tell me that the very thing I need to continue my research, the mighty Great Z, has been destroyed?!!";
		next;
		mes "[Metto]";
		mes "Nooooo~!! Why? Why would they do that? Are the Gods cursing me?!";
		next;
		mes "[Metto]";
		mes "Wait, I need...";
		mes "To calm down...";
		next;
		mes "[Metto]";
		mes "If I can just get the help of professor ^FF0000CiCi^000000 with his Riding Engine theory, I might be able to finish my research...";
		next;
		mes "[Metto]";
		mes "I still";
		mes "have hope!";
		mes "Ha! Ha! Ha!";
		close;
	}
	else if (metto_q == 7) {
		metto_q = 8;
		mes "...";
		next;
		mes "[Metto]";
		mes "...";
		mes "......";
		next;
		mes "[Metto]";
		mes "How can this happen 3 times in a row? Its true, the Gods have forsaken me! I'm ruined... RUINED!!!";
		next;
		mes "[Metto]";
		mes "What can I do now...? Has the time really come for me to forfeit all my years of research?";
		next;
		mes "[Metto]";
		mes "I know I've disappointed you, but please, forget all about me.";
		next;
		mes "[Metto]";
		mes "Who would do this to me? What kind of malicious person would shatter a man's dreams??";
		next;
		mes "[Metto]";
		mes "I'm tired of this. I think that the time has come for me to give up. It's all over. Please don't be too disappointed...";
		close;
	}
	else if (metto_q == 8) {
		mes "Maybe I should look into a job change. I hear it is a popular decision these days.";
		next;
		mes "[Metto]";
		mes "I wonder what I should look into? All I know for sure is that I don't want to be scientist anymore. I'm done with research...";
		close;
	}
	else {
		mes "I better get going to check this new thing out. What are you still doing here? I'll be leaving in a bit.";
		next;
		mes "[Metto]";
		mes "I need to get ready! You go ahead and take off, I'll be going out soon.";
		close;
	}
}

yuno_in01,17,30,5	script	Wagan#juno	4_M_03,{
	mes "[Wagan]";
	if (metto_q == 0) {
		mes "I'm sure that you know our city has been living off our research for many years.";
		next;
		mes "[Wagan]";
		mes "We owe this quality of life to those who have dedicated their lives to research and study.";
		next;
		mes "[Wagan]";
		mes "So we help each other and study together. It is nice to have such solid support around when we are conducting research.";
		next;
		mes "[Wagan]";
		mes "But there are those few bad apples that just drive me crazy...";
		next;
		mes "[Wagan]";
		mes "It's good to try hard, but there are those selfish and crazy mad scientists that make things harder for the rest of us.";
		next;
		mes "[Wagan]";
		mes "Out of all those, ^FF0000Metto^000000 must be the worst by far. He's into crazy things...";
		next;
		mes "[Wagan]";
		mes "For science, he's destroyed public facilities, has been the cause of noise and air pollution and generally disturbing the peace...";
		next;
		mes "[Wagan]";
		mes "And he's justifying his behavior under the excuse of research! He's a crazy fellow who's taken it too far!";
		next;
		mes "[Wagan]";
		mes "I wish there was a way that we could stop him from wrecking it for the rest of us. Some brave, daring soul should be able to do something...";
		next;
		if (select("Leave it to me.", "I wish your village luck in doing so.") == 1) {
			if (Class == Job_Novice) {
				mes "[Wagan]";
				mes "Hmm...";
				mes "Thanks for the offer, but I don't think this is something that you could do...";
				next;
				mes "[Wagan]";
				mes "I think we need someone a bit harsher to help us out. I think it would be a little too much for a Novice.";
				next;
				mes "[Wagan]";
				mes "Please don't be";
				mes "offended by this.";
				close;
			}
			metto_q = 1;
			mes "[Wagan]";
			mes "Oh, are you going to take care of this for us? We would be very grateful.";
			next;
			mes "[Wagan]";
			mes "But how do you plan to go about doing this? I'm guessing it's harder than it sounds...";
			next;
			if (select("Of course I have a plan.", "I guess I need a plan.") == 1) {
				mes "[Wagan]";
				mes "I have faith in you. You should know that he believes in fate. Use that to your advantage.";
				next;
				mes "[Wagan]";
				mes "I feel much better knowing you will take care of this little problem...";
				close;
			}
			mes "[Wagan]";
			mes "Hmmm... I admire your zeal, but how do you expect to accomplish anything without a plan?";
			next;
			mes "[Wagan]";
			mes "You need a ruse to trick him into quitting. Something subtle, like... Hmm...";
			next;
			mes "[Wagan]";
			mes "...Sabotaging his experiments and making it look like it was his destiny to fail!";
			next;
			mes "[Wagan]";
			mes "He's talkative, so if you approach him, he'll tell you all you need to know.";
			next;
			mes "[Wagan]";
			mes "Yeah...";
			mes "I've been thinking of this plan for a while...";
			close;
		}
		mes "[Wagan]";
		mes "We will have to pray for fate to help us. Now to think of it, Metto is a strong believer in fate.";
		next;
		mes "[Wagan]";
		mes "If only we could use that to our advantage...";
		close;
	}
	else if (metto_q == 8) {
		mes "Thank you for your help. Because of your work in ridding us of Metto, we have one less worry.";
		next;
		mes "[Wagan]";
		mes "I'm sure the people of Juno are very thankful. Here is a little token of our appreciation...";
		next;
		mes "[Wagan]";
		if (Class == Job_Sage) {
			if (MaxWeight - Weight < 300) {
				mes "Oh no, it seems that you are carrying too much stuff! Would you make some room?";
				close;
			}
			metto_q = 9;
			mes "I wish you luck in your future endeavors...";
			getitem Yellow_Gemstone,10;
			close;
		}
		if (MaxWeight - Weight < 150) {
			mes "Oh no, it seems that you are carrying too much! Would you make some room?";
			close;
		}
		metto_q = 9;
		mes "I wish you luck in your future endeavors...";
		getitem Blue_Gemstone,5;
		close;
	}
	else if (metto_q == 9) {
		mes "Things around here seem much more peaceful without that Metto around. Thanks for your help.";
		close;
	}
	else {
		mes "How goes your work with Metto? Hopefully the plan is going well. I'm sorry to bother you with such a task.";
		close;
	}
}

yuno_in01,17,95,5	script	Stangckle#juno	4W_M_03,{
	mes "[Stangckle]";
	if (metto_q == 2) {
		mes "What can I do for you? My colleague Metto is coming here soon, so I don't have much time. So what did you say you needed?";
		next;
		if (select("I'm here to stop your research.", "I don't need anything.") == 1) {
			metto_q = 3;
			mes "[Stangckle]";
			mes "...";
			next;
			mes "[Stangckle]";
			mes "...";
			mes "......";
			next;
			mes "[Stangckle]";
			mes "...";
			mes "......";
			mes ".........";
			next;
			mes "[Stangckle]";
			mes "Is that true?? Metto doesn't think of me as a colleague, but still wants me to help him?!";
			next;
			mes "[Stangckle]";
			mes "He only sees me as an assistant and is going to steal all the credit for our discoveries?!";
			next;
			mes "[Stangckle]";
			mes "This guy can't be trusted! The rumors were true: he really is mad!";
			next;
			mes "[Stangckle]";
			mes "And to think, I really respected that traitor! I can't even stand to see that guy's face anymore.";
			next;
			mes "[Stangckle]";
			mes "I'm glad that an honest, trustworthy person such as yourself had the guts to tell me. Thank you.";
			next;
			mes "[Stangckle]";
			mes "Now if you'll excuse me, I have work to do.";
			close;
		}
		mes "[Stangckle]";
		mes "What are you doing then? Stop wasting my time.";
		close;
	}
	else if (metto_q == 0) {
		mes "I am one of the scientists in this city. My name is Stangckle.";
		next;
		mes "[Stangckle]";
		mes "You should remember my name, it may be useful to you in the future.";
		close;
	}
	else if (metto_q == 1) {
		mes "I am one of the scientists in this city. My name is Stangckle.";
		next;
		mes "[Stangckle]";
		mes "You should remember my name, it may be useful to you in the future.";
		close;
	}
	else {
		mes "So Metto has become one of those mad scientists. I guess that is the choice he has ultimately made for his life.";
		close;
	}
}

yuno_in01,19,183,5	script	Kato#juno	1_M_JOBTESTER,{
	mes "[Kato]";
	if (metto_q == 4) {
		mes "I am a scientist researching all sorts of things.";
		next;
		mes "[Kato]";
		mes "Of course, my research is private and confidential. But is there anything I can do for you?";
		next;
		if (select("I want to stop you from making a mistake.", "Just saying hello.") == 1) {
			metto_q = 5;
			mes "[Kato]";
			mes "What? Metto said, my Great Z is inferior to Stangckles research?!";
			next;
			mes "[Kato]";
			mes "H-he said I should rename my invention to 'Lame Z?' *Sniff* I... I don't believe it... *Sob*";
			next;
			mes "[Kato]";
			mes "I-If my invention is no good, then I guess I should destroy my Great Z... *sigh*";
			next;
			mes "[Kato]";
			mes "Thank you for letting me know. I know it wasn't easy to tell me.";
			close;
		}
		mes "[Kato]";
		mes ".........................";
		mes "Okay...";
		mes "Um... Hey.";
		close;
	}
	else if (metto_q == 6 || metto_q == 7 || metto_q == 8 || metto_q == 9) {
		mes "I am interested in researching artificial intelligence. You know, like robots.";
		next;
		mes "[Kato]";
		mes "I know it a very difficult feat to accomplish, but where there's a will, there's a way.";
		next;
		mes "[Kato]";
		mes "If you ever see something really amazing like this, you'll know its my handiwork.";
		close;
	}
	else {
		mes "I am a scientist of Artificial Intelligence and Robotics.";
		next;
		mes "[Kato]";
		mes "I don't have a specific project right now, but my latest creation, the 'Great Z,' is truly a product of sheer and utter genius.";
		close;
	}
}

yuno_in03,178,43,0	script	CiCi#juno	2_M_MOLGENSTEIN,{
	if (metto_q == 6) {
		mes "[CiCi]";
		mes "My name is CiCi. I am one of the three great scientists in this city.";
		next;
		mes "[CiCi]";
		mes "There are many great scientists in this city, but being in the top three is a true honor. Don't you agree?";
		next;
		mes "[CiCi]";
		mes "Well, I think I've bragged a little too much now, what can I do for you?";
		next;
		switch(select("I want to warn you.", "Nothing, just saying Hi.")) {
		case 1:
			metto_q = 7;
			mes "[CiCi]";
			mes "Hm? Metto said that he doesn't need my Riding Engine theory?! Hmpf, what an ingrate!";
			next;
			mes "[CiCi]";
			mes "I have half a mind to teach him a little something about true science and intelligent research.";
			next;
			mes "[CiCi]";
			mes "He thinks that I owe him an apology?! For what? Why should I apologize...?!";
			next;
			mes "[CiCi]";
			mes "Whatever, I really didn't have the necessary parts to help him anyway. I guess, either way, he would not have had a chance.";
			next;
			mes "[CiCi]";
			mes "Let him know I really don't want to be a part of what he is doing. He isn't even doing the type of research that we would be able to publicize.";
			close;
			break;
		case 2:
			mes "[CiCi]";
			mes "What? That's it? I was bored before you came, but you've managed to bore me even more.";
			break;
		}
	}
	else if (metto_q < 6) {
		mes "[CiCi]";
		mes "My name is CiCi. I am one of the three great scientists in this city.";
		next;
		mes "[CiCi]";
		mes "There are many great scientists here, but being in the top three is a true honor, wouldn't you agree?";
		close;
	}
	else {
		mes "[CiCi]";
		mes "Hmmm...";
		mes "I want to improve the Riding Engine in a new way, but I lack the parts I need...";
		next;
		mes "[CiCi]";
		mes "What a headache~ And Metto has never offered me any help at all. This will not be easy.";
		close;
	}
}

//== Alchemist Brothers Quest :: yuno_ryusei ===============
yuno_in01,103,157,3	script	Bain#juno	4W_M_02,{
	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 (countitem(Mixture) > 0 && countitem(Portable_Furnace) > 4 && countitem(Coal) > 4 && countitem(Burn_Tree) > 4 && countitem(Fine_Sand) > 4 && countitem(Elunium_Stone) > 2 && countitem(Oridecon_Stone) > 2 && Zeny > 2000) {
		if (ALCH_Q == 23) ALCH_Q = 24;
		.@kyulkwa = rand(1,10);
		mes "[Bain]";
		mes "Oh ho ho... These are the parts that I needed. Thank you so much.";
		next;
		mes "[Bain]";
		mes "Okay, let's try this out! Hold on for just a second!";
		next;
		mes "^3355FF*Vrrrmmmmm*^000000";
		next;
		mes "^3355FF*Pakakkakakakkakaakapakakkakak*^000000";
		next;
		mes "^3355FF*Shakakakakkakakakakkakakakakka!*^000000";
		next;
		if (.@kyulkwa < 4 || .@kyulkwa > 8)
			callsub S_DelItems,1002,5,1;
		if (.@kyulkwa == 5 || .@kyulkwa == 6 || .@kyulkwa == 8)
			callsub S_DelItems,723,5,1;
		else if (.@kyulkwa == 7)
			callsub S_DelItems,969,2,0;
	}
	if (bros_q == 1) {
		mes "[Bain]";
		mes "In case you";
		mes "forgot, these are the";
		mes "required materials.";
		mes "Write it down if you need to.";
		next;
		mes "[Bain]";
		mes "^FF00001 Mixture^000000, ^FF00005 Mini-Furnace^000000,";
		mes "^FF00005 Burnt Tree^000000 , ^FF00005 Coal^000000,";
		mes "^FF00005 Fine Sand^000000, ^FF00003 Rough Elunium^000000,";
		mes "^FF00003 Rough Oridecon^000000^000000.";
		next;
		mes "[Bain]";
		mes "In addition to this, you ";
		mes "will need 2,000 zeny.";
		mes "Good Luck...";
		close;
	}
	if (bros_q == 0) {
		mes "[Bain]";
		mes "We are going to invent a doll that can can talk and communicate! Well, at least, I'm trying to.";
		next;
		mes "[Bain]";
		mes "I got the idea from a historical legend. I figure that if it's been done before, this project is definitely possible.";
		next;
		mes "[Bain]";
		mes "But right now, I lack the supplies";
		mes "and parts that I need to attempt";
		mes "this feat. I don't know how";
		mes "they gathered all the necessary materials....";
		next;
		mes "[Bain]";
		mes "Money can only buy some of what I";
		mes "need. There are also those items";
		mes "that need to be taken from";
		mes "monsters that are much too";
		mes "powerful. How will I continue my research?";
		next;
		if (select("I'll get them for you.", "Good luck.") == 1) {
			bros_q = 1;
			mes "[Bain]";
			mes "Really? Such benevolence is rare";
			mes "in this day and age. We would be";
			mes "grateful for your assistance.";
			mes "Here are the items that we will be";
			mes "needing.";
			next;
			mes "[Bain]";
			mes "^FF00001 Mixture^000000, ^FF00005 Mini-Furnace^000000,";
			mes "^FF00005 Burnt Tree^000000 , ^FF00005 Coal^000000,";
			mes "^FF00005 Fine Sand^000000, ^FF00003 Rough Elunium^000000,";
			mes "^FF00003 Rough Oridecon^000000^000000.";
			next;
			mes "[Bain]";
			mes "We will also need 2,000 Zeny.";
			mes "The money will help pay for the";
			mes "minor expenses involved in undertaking this endeavor.";
			mes "Godspeed.";
			close;
		}
		mes "[Bain]";
		mes "I wish I could be";
		mes "a strong adventurer";
		mes "like you.";
		close;
	}

S_DelItems:
	delitem Mixture,1;
	delitem Portable_Furnace,5;
	delitem Coal,5;
	delitem Burn_Tree,5;
	delitem Fine_Sand,5;
	delitem Elunium_Stone,3;
	delitem Oridecon_Stone,3;
	Zeny -= 2000;
	getitem getarg(0),getarg(1); //Gold
	mes "[Bain]";
	mes "AHHH, it is a success!";
	mes "I don't know if we can do anything else,";
	if (getarg(2) == 1)
		mes "but this time we have created "+getarg(1);
	else
		mes "but this time we have created";
	mes "^FF0000"+getitemname(getarg(0))+"^000000 !";
	next;
	mes "[Bain]";
	mes "Now that we know that it works";
	mes "I don't have any need for this.";
	mes "Why don't you take it? Oh,";
	mes "and if you find any more parts,";
	mes "bring them to me again. Heheheh.";
	next;
	mes "[Bain]";
	mes "Thank you for helping me out.";
	mes "You have my eternal gratitude.";
	mes "I wish you luck in your journeys!";
	close;
}

yuno_in01,100,153,7	script	Bajin	1_M_01,0,0,{
	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 (countitem(Mixture) > 0 && countitem(Portable_Furnace) > 4 && countitem(Coal) > 4 && countitem(Burn_Tree) > 4 && countitem(Fine_Sand) > 4 && countitem(Elunium_Stone) > 2 && countitem(Oridecon_Stone) > 2 && Zeny > 2000) {
		if (ALCH_Q == 23) ALCH_Q = 24;
		.@kyulkwa = rand(1,10);
		mes "[Bajin]";
		mes "Oh ho ho... These are the parts";
		mes "that I needed. Thank you so much.";
		mes "Okay, let's try this out!";
		mes "Hold on for just a second!";
		next;
		mes "^3355FF*Vrrrmrmrmrmrmrmrmrmrmrmmmmm*^000000";
		next;
		mes "^3355FF*Pakakkakakakkakaakapakakkakak*^000000";
		next;
		mes "^3355FF*Shakakakakkakakakakkakakakakka!*^000000";
		next;

		if (.@kyulkwa < 4 || .@kyulkwa > 8)
			callsub S_DelItems,1002,5,1;
		if (.@kyulkwa == 5 || .@kyulkwa == 6 || .@kyulkwa == 8)
			callsub S_DelItems,723,5,1;
		else if (.@kyulkwa == 7)
			callsub S_DelItems,984,3,1;
	}
	if (bros_q == 1) {
		mes "[Bajin]";
		mes "In case you";
		mes "forgot, these are the";
		mes "required materials.";
		mes "Write it down if you need to.";
		next;
		mes "[Bajin]";
		mes "^FF00001 Mixture^000000, ^FF00005 Mini-Furnace^000000,";
		mes "^FF00005 Burnt Tree^000000 , ^FF00005 Coal^000000,";
		mes "^FF00005 Fine Sand^000000, ^FF00003 Rough Elunium^000000,";
		mes "^FF00003 Rough Oridecon^000000^000000.";
		next;
		mes "[Bajin]";
		mes "In addition to this, you ";
		mes "will need 2,000 zeny.";
		mes "Good Luck...";
		close;
	}
	if (bros_q == 0) {
		mes "[Bajin]";
		mes "We are going to invent a doll that can can talk and communicate! Well, at least, I'm trying to.";
		next;
		mes "[Bajin]";
		mes "I got the idea from a historical legend. I figure that if it's been done before, this project is definitely possible.";
		next;
		mes "[Bajin]";
		mes "But right now, I lack the supplies";
		mes "and parts that I need to attempt";
		mes "this feat. I don't know how";
		mes "they gathered all the necessary materials....";
		next;
		mes "[Bajin]";
		mes "Money can only buy some of what I";
		mes "need. There are also those items";
		mes "that need to be taken from";
		mes "monsters that are much too";
		mes "powerful. How will I continue my research?";
		next;
		if (select("I'll get them for you.", "Good luck.") == 1) {
			bros_q = 1;
			mes "[Bajin]";
			mes "Oh, you are too kind.";
			mes "We would be grateful for your assistance.";
			mes "Here are the items that we will be";
			mes "needing.";
			next;
			mes "[Bajin]";
			mes "^FF00001 Mixture^000000, ^FF00005 Mini-Furnace^000000,";
			mes "^FF00005 Burnt Tree^000000 , ^FF00005 Coal^000000,";
			mes "^FF00005 Fine Sand^000000, ^FF00003 Rough Elunium^000000,";
			mes "^FF00003 Rough Oridecon^000000^000000.";
			next;
			mes "[Bajin]";
			mes "We will also need 2,000 Zeny.";
			mes "The money will help pay for the";
			mes "minor expenses in undertaking this endeavor.";
			mes "Godspeed.";
			close;
		}
		close;
	}

S_DelItems:
	delitem Mixture,1;
	delitem Portable_Furnace,5;
	delitem Coal,5;
	delitem Burn_Tree,5;
	delitem Fine_Sand,5;
	delitem Elunium_Stone,3;
	delitem Oridecon_Stone,3;
	Zeny -= 2000;
	getitem getarg(0),getarg(1); //Gold
	mes "[Bajin]";
	mes "AHHH, it is a success!";
	mes "I don't know if we can do anything else,";
	if (getarg(2) == 1)
		mes "but this time we have created "+getarg(1);
	else
		mes "but this time we have created";
	mes "^FF0000"+getitemname(getarg(0))+"^000000 !";
	next;
	mes "[Bajin]";
	mes "Now that we know that it works";
	mes "I don't have any need for this.";
	mes "Why don't you take it? Oh,";
	mes "and if you find any more parts,";
	mes "bring them to me again. Heheheh.";
	next;
	mes "[Bajin]";
	mes "Thank you for helping me out.";
	mes "You have my eternal gratitude.";
	mes "I wish you luck in your journeys!";
	close;
}
