//===== eAthena Script ======================================= 
//= Priest Skills Quests
//===== By: ================================================== 
//= Lupus, Reddozen
//===== Current Version: ===================================== 
//= 1.3a
//===== Compatible With: ===================================== 
//= eAthena Revision 3800+
//===== Description: ========================================= 
//= Temp quests for new skills for 2nd classes
//===== Additional Comments: ================================= 
//= 1.0 for fully working skills only [Lupus]
//= 1.1 Added more new skill quests for more classes [Lupus]
//= Somehow eA engine doesn't let you keep learn't skill V_V'
//= 1.2 Added to correct locations, correct NPC's, fixed
//= some of the items required and made them into real
//= quests. [Reddozen] 
//= 1.3 Fixed bugs and minor typos. Optimized [Lupus]
//= 1.3a fixed an item ID typo, thx 2Spiritual Kid
//= 1.3b Splitted into different files [DracoRPG]
//============================================================


//============================================================
// ʦ - ȡ
//============================================================
prt_church.gat,111,112,3	script	˹Ů	79,{
	mes "[˹Ů]";
	if(BaseJob!=Job_Priest) goto L_nopriest;
	if(getskilllv(1014)) goto L_alreadyhave;
	if(getskilllv(54)<1) goto L_norez;

	mes "㶫ҽ¼";
	mes "1 ɫħʯ";
	mes "1 ʥˮ";
	next;
	
	mes "[˹Ů]";
	mes "ĶŶ~";
	next;
	
	if(countitem(717)<1 || countitem(523)<1) goto L_noitems;//Items: Blue_Gemstone, Holy_Water,
	delitem 717, 1;//Items: Blue_Gemstone,
	delitem 523, 1;//Items: Holy_Water,
	
	mes "[˹Ů]";
	mes "Ѷ~,";
	mes "ڿϵۿϲҽ";
	next;
	if(rand(100)<JobLevel+25) goto L_bless;
	mes "[˹Ů]";
	mes "˼~ϵûŶ~";
	mes "һΣ";
	mes "֤Ǹǿʦ";
	close;
	
L_bless:
	mes "[˹Ů]";
	mes "ϵͬ⿩~~";
	skill 1014,1,0;
	close;
	
L_noitems:
	mes "[˹Ů]";
	mes "㻹û.";
	mes "ռҰ";
	close;
		
L_nopriest:
	mes "ԲӦϵ۲Ŷ.";
	emotion e_gasp;
	close;

L_alreadyhave:
	mes "Ѿ̹~";
	close;

L_norez:
	mes "ΪһΪϵ۴Եʦ";
	mes "~";
	close;
}
