//================= 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)  Euphy
//= Copyright (C)  Masao
//= Copyright (C)  L0ne_W0lf
//= Copyright (C)  IVBela
//= Copyright (C)  Silentdragon
//= Copyright (C)  Lupus
//= 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/>.
//=========================================================================
//= Mage Skill Quest
//================= Description ===========================================
//= Quest for skills: Energy Coat
//================= Current Version =======================================
//= 1.8
//=========================================================================

geffen_in,151,119,4	script	Great Wizard	1_M_WIZARD,{
	mes "[BLIZZARDRISS]";
	mes "Hey ! My friend !";
	mes "I see that you are a mage.";
	mes "Look into yourself to discover";
	mes "your hidden abilities !";
	next;
	switch (select("About mage's hidden ability ", "About skill ^3355FF' Energy Coat '^000000 ", "End conversation")) {
	case 1:
		mes "[BLIZZARDRISS]";
		mes "For many years";
		mes "I have studied the ancient";
		mes "magic's of Geffen.";
		mes "Recently, I discovered";
		mes "a very good forgotten skill! ! !";
		mes "Isn't that fortunate?";
		next;
		mes "[BLIZZARDRISS]";
		mes "The skill uses your mental";
		mes "energy to block attacks against you.";
		mes "It is like a magical shield, or armor.";
		mes "Only the most special of persons can";
		mes "use this amazing skills.";
		next;
		mes "[BLIZZARDRISS]";
		mes "But the most amazing part is that I";
		mes "can use the skill! ! !";
		mes "I can use this to protect myself !";
		mes "Pu hah hah hah !!";
		next;
		mes "[BLIZZARDRISS]";
		mes "Ok Ok, don't get too excited.";
		mes "Listen carefully to what I can tell you.";
		mes "Those who use this spell must tap";
		mes "the hidden energies and abilities";
		mes "locked within themselves !";
		next;
		mes "[BLIZZARDRISS]";
		mes "If you wish to learn this skill, you";
		mes "must first have a few items to";
		mes "be used during the process.";
		next;
		mes "[BLIZZARDRISS]";
		mes "three ^3355FFGlass Bead^000000 ";
		mes "one ^3355FF1 carat Diamond^000000 ";
		mes "five ^3355FFShell^000000 ";
		mes "one ^3355FFSolid Shell^000000 ";
		mes "Bring me these items.";
		next;
		mes "[BLIZZARDRISS]";
		mes "Also, one more thing. . .";
		mes "You must be sufficiently experienced";
		mes "in the magical arts. This means you must";
		mes "either be a wizard or mage job level 35+.";
		next;
		mes "[BLIZZARDRISS]";
		mes "Wizards already have already";
		mes "experienced the role of a mage";
		mes "and so do not require a job level.";
		mes "In any case, one who wishes to";
		mes "be trained in this art must be in a";
		mes "healthy and strong mental state.";
		next;
		mes "[BLIZZARDRISS]";
		mes "Okay . .";
		mes "There is nothing more to say, are you interested?";
		close;
	case 2:
		if (getskilllv("MG_ENERGYCOAT") == 1) {
			mes "[BLIZZARDRISS]";
			mes "It seems that you have ";
			mes "already mastered this skill.";
			mes "Your skill in 'Energy Coat' ";
			mes "is evident.";
			mes "I am sorry, ";
			mes "I have nothing more to teach you ...";
			close;
		}
		if ((countitem(Glass_Bead) > 2) && (countitem(Crystal_Jewel) > 0) && (countitem(Shell) > 4) && (countitem(Solid_Shell) > 0) && (JobLevel > 34 || (BaseJob == Job_Wizard || BaseJob == Job_Sage)) && (BaseClass == Job_Mage)) {
			mes "[BLIZZARDRISS]";
			mes "Okay, I have received your request.";
			mes "I will now awaken your hidden energies . .";
			mes ". . . . . .";
			mes ". . . . . . . . . . . . .";
			mes ". . . . . . . . . . . . . . . . . . . . . . . . . .";
			next;
			mes "[BLIZZARDRISS]";
			mes "Ancient powers of";
			mes "Geffen! I seek the enlightenment";
			mes "and honor of your presence. ";
			mes "I am humbled in your presence!";
			mes " ...";
			next;
			mes "[BLIZZARDRISS]";
			mes "Grant me your power!";
			mes "Release your spirit";
			mes "Mana Shield! Metal Armor!";
			mes ". . . . . . . . . . . .";
			mes "ENERGY COAT! ! !";
			next;
			delitem Glass_Bead,3;
			delitem Crystal_Jewel,1;
			delitem Shell,5;
			delitem Solid_Shell,1;
			skill "MG_ENERGYCOAT",1,0;
			mes "[BLIZZARDRISS]";
			mes ". . . . .";
			mes "It is done. . .";
			mes "You know have the ";
			mes "elite skill of ^3355FF' Energy Coat '^000000 .";
			mes "Use it well.";
			next;
			mes "[BLIZZARDRISS]";
			mes "Do not shame our";
			mes "class with disgraceful";
			mes "use of this or any skill.";
			mes "Your new power calls for new responsibility.";
			close;
		}
		mes "[BLIZZARDRISS]";
		mes "Look!!";
		mes "Didn't you listen to my explanation ? !";
		mes "You have not prepared fully";
		mes "for me to assist you.";
		mes "Check that you have all the requirements.";
		next;
		mes "[BLIZZARDRISS]";
		mes "If you need me to explain";
		mes "all this again, then ask me.";
		mes "I would be happy to explain again";
		mes "if only you would listen. . .";
		close;
	case 3:
		mes "[BLIZZARDRISS]";
		mes "The wise man must have patience !";
		mes "Prepare yourself again,";
		mes "and return when you are ready.";
		close;
	}
}
