// Excalibur Quest NPC
// By: Syrus22
// Version 1.0
// Any comments or questions PM me on the Yare forums
// Description: This is a simple item quest NPC. The player must find an
// Angel Band, a Heaven Ring, and an Emperium. If they do they will receive
// the Excalibur.
// Modify By  Robert 2004-1-20 mailto:robert_st@21cn.com

prt_castle.gat,81,171,5	script	صʹ	108,{
	mes "[صʹ]";
	mes "ãðռңҵĸ㣬Ѽ˵ɪ񽣣ʯн";
	mes "ȻиƷҲԸ㽻";
	next;
	menu "ѯƷ",ExItems,"ʯн",ExCreate,"",ExEnd;
	ExItems:
	        mes "[صʹ]";
	        mes "ҪǣʹȦ͹⻷ÿһ";
	        close;
	ExCreate:
        	mes "[صʹ]";
		mes "ãҿĶ";
		next;
		if(countitem(2254)<1) goto NoAngel;
		if(countitem(2282)<1) goto NoHeaven;
		if(countitem(714)<1) goto NoEmp;
		delitem 2254,1;
		delitem 2282,1;
		delitem 714,1;
		getitem 1137,1;
		mes "[صʹ]";
		mes "ϲƷѾȫˣھ͸㴫˵е'ʯн'";
		mes "лĲ룬ףˣ";
		close;
	    	NoAngel:
			mes "[صʹ]";
			mes "Բ㲢ûаʹȦ¼Ʒ";
			close;
		NoHeaven:
			mes "[صʹ]";
			mes "Բ㲢ûаѹ⻷¼Ʒ";
			close;
		NoEmp:
			mes "[صʹ]";
			mes "Բ㲢ûаѻ¼Ʒ";
			close;
	ExEnd:
		mes "[صʹ]";
		mes "ټ";
        	close;
}
