//===== eAthena Script ======================================= 
//= Fox Mask Quest
//===== By: ================================================== 
//= KitsuneStarWind (1.0)
//= Mass Zero (1.1)
//===== Current Version: ===================================== 
//= 1.2a
//===== Compatible With: ===================================== 
//= Any eAthena version.
//===== Description: ========================================= 
// Seperate quest for the Fox Mask.
//===== Additional Comments: ================================= 
// 1.2a optimized [Lupus]
//============================================================

pay_dun04.gat,204,152,2	script	Nine Tail	1180,{
	mes "[Nine Tail]";
	mes "What do you want?";
	next;
	mes "[Nine Tail]";
	mes "Have you come here for a ^FF3300 Fox Mask^000000?";
	next;
	menu "Yeah, Sure.",-,"No",M_EXIT;

	mes "[Nine Tail]";
	mes "Fine then. If I make one for you, will you go away?";
	mes "You realize that it requires 999 Nine Tails to make, do you?";
	next;
	menu "Sure.",M_MAKE,"Nah.",-;

	mes "[Nine Tail]";
	mes "Grrrr... I'll make one anyway but I hope my master gets you.";
	next;
M_MAKE:
	mes "[Nine Tail]";
	mes "Ok then, I shall make one for you.";
	next;

	if(countitem(1022) < 999) goto L_NOITEM;//Items: Nine Tails,
	delitem 1022,999;//Items: Nine Tails,
	getitem 5069,1;//Items: Fox Mask,
	mes "[Nine Tails]";
	mes "Have fun.";
	close;

L_NOITEM:
	mes "[Nine Tail]";
	mes "You do not have have enough Nine Tails.";
	mes "You need 999 of them.";
	close;

M_EXIT:
	mes "[Nine Tail]";
	mes "Then leave me alone... I am waiting for my master.";
	close;
}
