//====================================================//
//====================================================//
//== : С (SkyTwo) 99MaxEA==//
//== : 2009.02.04           ==//
//==ű : v2.5 ==//
//==ű : 99Max̵ϵͳ==//
//====//
//==֧Ԯ : è ==//
//== ںϽ ==//
//== Dino9021 ==//
//==                                                ==//
//==֧Ԯ : gg                       ==//
//====//
//==λת뱣ϣָм==//
//====================================================//
//====================================================//

function	script	Npc_Refine	{

	switch(select("","","ۿ¯","ǿ"))

	{	case 1:	callfunc "Npc_Refine_A";	end;
		case 2:	callfunc "Npc_Refine_B";	end;
		case 3:	callfunc "Npc_Refine_C";	end;
		case 4:	callfunc "Npc_Refine_D";	end;	}
}

//====================================================//

function	script	Npc_Refine_A	{

	switch(select(" - 30000z","֮ - 120000z","ƽ - 300000z"))

	{	case 1:
			if ( Zeny < 30000 )
			{	dispbottom "ĽǮ";	close;	end;	break;	}
			set Zeny, Zeny - 30000;
			getitem 986,1;
			close;	end;	break;
		case 2:
			if ( Zeny < 120000 )
			{	dispbottom "ĽǮ";	close;	end;	break;	}
			set Zeny, Zeny - 120000;
			getitem 987,1;
			close;	end;	break;
		case 3:
			if ( Zeny < 300000 )
			{	dispbottom "ĽǮ";	close;	end;	break;	}
			set Zeny, Zeny - 300000;
			getitem 988,1;
			close;	end;	break;	}
}

//====================================================//

function	script	Npc_Refine_B	{

	switch(select(" - 1000z","ƽ - 3000z","֮ - 5000z"))
	{
		case 1:
			if ( Zeny < 1000 )
			{	dispbottom "ĽǮ";	close;	end;	break;	}
			set Zeny, Zeny - 1000;
			getitem 613,1;
			close;	end;	break;
		case 2:
			if ( Zeny < 3000 )
			{	dispbottom "ĽǮ";	close;	end;	break;	}
			set Zeny, Zeny - 3000;
			getitem 614,1;
			close;	end;	break;
		case 3:
			if ( Zeny < 5000 )
			{	dispbottom "ĽǮ";	close;	end;	break;	}
			set Zeny, Zeny - 5000;
			getitem 615,1;
			close;	end;	break;	}
}

//====================================================//

function	script	Npc_Refine_C	{

	switch(select("Яۿ¯ - 150z"))

	{	case 1:
			set @input, 0;
			input @input;
			if ( ( @input < 1 )  || ( @input > 999 ) )
			{	dispbottom "С1999";	close;	end;	break;	}
			if ( Zeny < 150 * @input )
			{	dispbottom "ĽǮ";	close;	end;	break;	}
			set Zeny, Zeny - ( 150 * @input);
			getitem 612, @input;
			close;	end;	break;	}
}

//====================================================//

function	script	Npc_Refine_D	{

	switch(select("һǿ - 200z","ǿ - 1000z"))
	{	case 1:
			set @input, 0;
			input @input;
			if ( ( @input < 1 )  || ( @input > 999 ) )
			{	dispbottom "С1999";	close;	end;	break;	}
			if ( Zeny < 200 * @input )
			{	dispbottom "ĽǮ";	close;	end;	break;	}
			set Zeny, Zeny - ( 200 * @input);
			getitem 1010, @input;
			close;	end;	break;
		case 2:
			set @input, 0;
			input @input;
			if ( ( @input < 1 )  || ( @input > 999 ) )
			{	dispbottom "С1999";	close;	end;	break;	}
			if ( Zeny < 1000 * @input )
			{	dispbottom "ĽǮ";	close;	end;	break;	}
			set Zeny, Zeny - ( 1000 * @input);
			getitem 1011, @input;
			close;	end;	break;	}
}

//====================================================//

function	script	Npc_Books	{

	switch(select("ƾ - 100000z","ƿ - 100000z","ƿ - 100000z","ֲƿ - 100000z",
		"̴ƿ - 100000z","ҩ - 100000z","ϸҩˮ - 240000z","һҩˮ - 100000z"))
	{
		case 1:
			if ( Zeny < 100000 )
			{	dispbottom "ĽǮ";	close;	end;	break;	}
			set Zeny, Zeny - 100000;
			getitem 7127,1;
			close;	end;	break;
		case 2:
			if ( Zeny < 100000 )
			{	dispbottom "ĽǮ";	close;	end;	break;	}
			set Zeny, Zeny - 100000;
			getitem 7128,1;
			close;	end;	break;
		case 3:
			if ( Zeny < 100000 )
			{	dispbottom "ĽǮ";	close;	end;	break;	}
			set Zeny, Zeny - 100000;
			getitem 7129,1;
			close;	end;	break;
		case 4:
			if ( Zeny < 100000 )
			{	dispbottom "ĽǮ";	close;	end;	break;	}
			set Zeny, Zeny - 100000;
			getitem 7130,1;
			close;	end;	break;
		case 5:
			if ( Zeny < 100000 )
			{	dispbottom "ĽǮ";	close;	end;	break;	}
			set Zeny, Zeny - 100000;
			getitem 7131,1;
			close;	end;	break;
		case 6:
			if ( Zeny < 100000 )
			{	dispbottom "ĽǮ";	close;	end;	break;	}
			set Zeny, Zeny - 100000;
			getitem 7132,1;
			close;	end;	break;
		case 7:
			if ( Zeny < 240000 )
			{	dispbottom "ĽǮ";	close;	end;	break;	}
			set Zeny, Zeny - 240000;
			getitem 7133,1;
			close;	end;	break;
		case 8:
			if ( Zeny < 100000 )
			{	dispbottom "ĽǮ";	close;	end;	break;	}
			set Zeny, Zeny - 100000;
			getitem 7144,1;
			close;	end;	break;	}
}

//====================================================//