//==================================
// [] The PlutoEA Project []
// http://opensvn.csie.org/PlutoEA
// ---------------------------------
// - q ȧޯ } - 
//===================================
// : 1.5 ( yg )
//===================================

prt_church,111,112,1	script	ܥR פk	79,{
	switch (PRIEST_SK) {
	case 0:
		set redemp,1014;
		if (getskilllv("PR_REDEMPTIO")) {
			mes "[ܥR פk]";
			mes "I'll always be praying";
			mes "for your safety. Be careful,";
			mes "and I hope that you can bring";
			mes "love and compassion to all";
			mes "whom you meet in your travels.";
			set PRIEST_SK,100;
			close;
		}
		mes "[ܥR פk]";
		mes "᪺u@̡AHAOӤ޾ɨkhaABڡAAgL^mXLOdMRڭ̪";
		next;
		mes "[ܥR פk]";
		mes "ЧA⯸bAeFoAo̱oo̷QnûwAΧAûꪺ~AģۥĻa";
		if (BaseJob != Job_Priest) close;
		next;
		select("аݳoOאְּëi?");
		mes "[ܥR פk]";
		mes "..............";
		next;
		mes "[ܥR פk]";
		mes "He@~פk";
		next;
		mes "[ܥR פk]";
		mes "o`Oөʶ}ԩGA";
		mes "@IvөʡA";
		mes "]F@ǤjjppרƪiRk";
		next;
		mes "[ܥR פk]";
		mes "_Ia̬GNܦMIaϡAȦӲֿnצ檺A";
		mes "]Ӧb˪̬OܦhMIʪA";
		mes "ҥHt¾̬OίʪAڷQoAӪDa";
		next;
		mes "[ܥR פk]";
		mes "YѦ@s_Ia̡A";
		mes "FnM@_ѻPȦ檺t¾̡A";
		mes "XLo̤F";
		next;
		mes "[ܥR פk]";
		mes "^3131DDj^000000";
		next;
		mes "[ܥR פk]";
		mes "....Do]ORB˶?";
		mes "ɦbjа̡AרO@ѡA";
		mes "iHtXѻPȦ檺A";
		mes "bɶƤ\t¾̤@ӳSA";
		mes "FpĤ~";
		next;
		mes "[ܥR פk]";
		mes "CƱܦn_pġA";
		mes "ϺɤFҦkA";
		mes "̫ש[J쨺̥hF";
		next;
		mes "[ܥR פk]";
		mes "L̫e̦WMIa";
		mes "^0000FFJpS~ij^000000A";
		mes "b̤]gF۷hMIA";
		mes "pĤ]b̩txİF@f";
		next;
		mes "[ܥR פk]";
		mes "ML..bFȦ檺̫ᶥqɡAIFjMI";
		next;
		mes "[ܥR פk]";
		mes "רObJpS~ij̡A";
		mes "̦MI@A";
		mes "b^0000FFbH^000000̳̦haAFp";
		mes "~Ҧ٦̳~ˤUFA";
		mes "AL[N|OxШS檬p";
		next;
		select("ҥHL̨̫F?");
		mes "[ܥR פk]";
		mes "NbL٦̳వ@ԪP..";
		mes "pĴN}l_FAjNGF";
		next;
		select("GO?");
		mes "[ܥR פk]";
		mes "^FF0000˨q !!!^000000";
		next;
		mes "[ܥR פk]";
		mes "bt¾̤դOuqA";
		mes "Ūt¾̤A";
		mes "~ϥΪ޳N!!";
		next;
		mes "[ܥR פk]";
		mes "޳NOϬۤvP񪺥A";
		mes "۹諸ۤv|ܦ԰AA";
		mes "O^0000FFt¾̳̰묹ޯ^000000";
		next;
		mes "[ܥR פk]";
		mes "@ӳsѳŪnA";
		mes "Ʀܮɱ`ް_·ЪpġA";
		mes "bM@A";
		mes "Q_F˨qylA";
		mes "Fϰ_̪F֥\ҩO";
		next;
		mes "[ܥR פk]";
		mes "ڷQLbӮɭԡAӬOZhWä㪺aA";
		mes "ӬOۤvPLରOɡAɭԤ~O̬hWa";
		next;
		mes "[ܥR פk]";
		mes "OɤߤOpġA";
		mes "BıoܥiADOLU_ݶ?";
		mes "˨qO\F";
		next;
		mes "[ܥR פk]";
		mes "_ݦUӪ";
		mes "P򪺪pznA";
		mes "ΤѦa𸭤l⨺pĵ߰_ӤFA";
		mes "F̫᪺ȵ{A";
		mes "w^촶wԤF";
		next;
		mes "["+ strcharinfo(0) +"]";
		mes "MoAHeƱA";
		mes "٥HO@dsOA٬On";
		next;
		mes "[ܥR פk]";
		mes "Well, a few months ago,";
		mes "she went on a mission to";
		mes "^3131FFLighthalzen^000000, a city in the";
		mes "Schwaltzvalt Republic. I was";
		mes "just worried since I haven't";
		mes "heard from her in a while.";
		next;
		mes "[ܥR פk]";
		mes "I come here to pray for";
		mes "her everyday, and hope that";
		mes "she'll come back safely and";
		mes "share stories of her adventures";
		mes "with me. Ooh, we'll talk all night long! It'll be so much fun!";
		next;
		mes "[ܥR פk]";
		mes "Goodness, I've been";
		mes "running my mouth! I'm";
		mes "sorry to keep you, did you";
		mes "have somewhere to go? Well,";
		mes "I'll be praying for your safety~ ^FFFFFF ^000000";
		next;
		mes "["+ strcharinfo(0) +"]";
		mes "Before I go, would you";
		mes "please tell me the name";
		mes "of that High Priest you were";
		mes "talking about? If I see her,";
		mes "I'll ask her to contact you.";
		next;
		mes "[ܥR פk]";
		mes "Oh, thank you! Her name";
		mes "is High Priest Sorin. Um,";
		mes "^3131FFpS ¸F^000000. If you";
		mes "happen to find her, please";
		mes "let her know that I am";
		mes "praying for her safety.";
		set PRIEST_SK,1;
		close;
	case 1:
		mes "[ܥR פk]";
		mes "Oh, hello~";
		mes "How are you";
		mes "doing today?";
		next;
		if (select("ڭnǲ^3131FF'˨q'^000000:") == 1) {
			mes "[ܥR פk]";
			mes "Ooh, ˨q would be";
			mes "a good skill for you to learn~";
			mes "It's difficult to cast, but when you succeed, you can revive all";
			mes "of your defeated Party Members.";
			next;
			mes "[ܥR פk]";
			mes "Of course, the drawback";
			mes "is that you must ^3131FFsacrifice";
			mes "your own life^000000 in order to";
			mes "use the skill. Now, to learn";
			mes "˨q, you must first";
			mes "learn ^3131FFLevel 1 Resurrection^000000.";
			next;
			mes "[ܥR פk]";
			mes "Ah, you must";
			mes "also bring me";
			mes "^3131FF30 Holy Waters and";
			mes "20 Blue Gemstones^000000";
			mes "so you can attempt";
			mes "to learn the skill.";
			set PRIEST_SK,2;
			next;
			mes "[ܥR פk]";
			mes "Um, but if you fail to";
			mes "learn ˨q, you'll";
			mes "lose 1 Holy Water and";
			mes "1 Blue Gemstone and";
			mes "you'll have to try it again...";
			close;
		}
		mes "[ܥR פk]";
		mes "ëܷPı߸̵ΪA@IA";
		mes "PıI켢ݪPı?";
		mes "]\NO]oˡAڤ~|飼oaA";
		close;
	case 2:
		if (getskilllv("ALL_RESURRECTION") > 0) {
			if (countitem(523) > 29 && countitem(717) > 19) {
				mes "[ܥR פk]";
				mes "Ooh, it seems like you've";
				mes "brought everything that you";
				mes "need to learn ˨q.";
				mes "Are you ready to try it? If you";
				mes "fail, you'll lose 1 Holy Water";
				mes "and 1 Blue Gemstone, okay?";
				next;
				mes "[ܥR פk]";
				mes "Now, please";
				mes "concentrate and";
				mes "repeat this special";
				mes "prayer after me.";
				next;
				mes "[ܥR פk]";
				mes "^3131FFOh holy and venerable one,";
				mes "we pray to you. Please show";
				mes "us your mercy and guide us";
				mes "with your light. Give us the";
				mes "strength to walk the path of";
				mes "love and sacrifice. ˨q!^000000";
				next;
				set .@redem_s,JobLevel+getskilllv("ALL_RESURRECTION");
				set .@red_suc,rand(1,100);
				if( .@redem_s < 31 ) {
					if( .@red_suc > 20 && .@red_suc < 41 )
						set .@success,1;
				} else if( .@redem_s < 41 ) {
					if( .@red_suc > 10 && .@red_suc < 41 )
						set .@success,1;
				} else {
					if( .@red_suc > 10 && .@red_suc < 51 )
						set .@success,1;
				}
				if (.@success) {
					specialeffect2 EF_HEALSP;
					mes "[ܥR פk]";
					mes "Congratulations!";
					mes "You successfully";
					mes "learned ˨q!";
					mes "Please remember to only";
					mes "use this skill in the most";
					mes "critical situations.";
					delitem 717,20; //Ŧ]Oq
					delitem 523,30; //t
					set PRIEST_SK,100;
					skill "PR_REDEMPTIO",1,0;
				}
				else {
					specialeffect2 EF_POISONHIT;
					mes "[ܥR פk]";
					mes "Oh no! I'm sorry,";
					mes "but you failed to";
					mes "learn ˨q. Well,";
					mes "I'll be waiting right here,";
					mes "so we can try again when";
					mes "you're ready, okay?";
					delitem 717,1; //Ŧ]Oq
					delitem 523,1; //t
				}
			}
			else {
				mes "[ܥR פk]";
				mes "If you want to try to learn";
				mes "˨q, please bring";
				mes "^3131FF20 Blue Gemstones^000000 and";
				mes "^3131FF30 Holy Waters^000000. Ah, and";
				mes "you need to learn ^3131FFLevel 1";
				mes "Resurrection^000000 beforehand.";
			}
		}
		else {
			mes "[ܥR פk]";
			mes "If you want to try to learn";
			mes "˨q, please bring";
			mes "^3131FF20 Blue Gemstones^000000 and";
			mes "^3131FF30 Holy Waters^000000. Ah, and";
			mes "you need to learn ^3131FFLevel 1";
			mes "Resurrection^000000 beforehand.";
		}
		close;
	case 100:
		if (getskilllv("PR_REDEMPTIO") == 0) {
			mes "[ܥR פk]";
			mes "Hm? We've met before,";
			mes "haven't we? Then again,";
			mes "all Priests begin to look";
			mes "the same after a while. Ah,";
			mes "were you one of the ones";
			mes "to whom I taught ˨q?";
			next;
			mes "[ܥR פk]";
			mes "Ah, you've forgotten, have";
			mes "you? Well, it's no problem for";
			mes "me to teach you again. This skill enables you to revive your fallen";
			mes "Party Members by sacrificing";
			mes "your own life for them.";
			next;
			mes "[ܥR פk]";
			mes "^3131FFOh holy and venerable one,";
			mes "we pray to you. Please show";
			mes "us your mercy and guide us";
			mes "with your light. Give us the";
			mes "strength to walk the path of";
			mes "love and sacrifice. ˨q!^000000";
			skill "PR_REDEMPTIO",1,0;
			next;
			mes "[ܥR פk]";
			mes "There...";
			mes "You should be able";
			mes "to perform ˨q";
			mes "now. I hope you use it";
			mes "well on your adventures~";
		}
		else {
			mes "[ܥR פk]";
			mes "I'll always be praying";
			mes "for your safety. Be careful,";
			mes "and I hope that you can bring";
			mes "love and compassion to all";
			mes "whom you meet in your travels.";
		}
		close;
	}
}
