//Produce NPC by kalen
//dl
//
//EftHg̍ޗ
//肽̌Q
//Ȃ瑮΂T
//PɂPO
//
//EɂẮA`FbNGɂȂ̂SŒ(XH)̂݃JEg܂B
//쐬镐SŒ(`FbNIDƓ)Ȃ̂ŁAA쐬A
//莝Ŋɑ킪肷ƁAޗƂĎgĂ܂\܂B
//Egetitem2̍Ō̂Qڂ̎I̓̃LIDɂ킹ĎgpĂB
//uNPC쐬vƂ̃L쐬ɂ킹ĎgƂł傤B
prontera.gat,129,191,0	script	쐬NPC	726,{
	set @ProduceID,0;
	set @ProduceOP,0;
	set @attr,0;
	set @star,0;
	mes "[쐬NPC]";
	mes "ł́A̍쐬Ă܂B";
	mes "ޗ͍肽2ŁA";
	mes "̏ꍇ^0000ff5^000000";
	mes "̏ꍇ^0000ff̂10^000000";
	mes "Ł1ƂȂ܂B";
	next;
	menu "^ff0000Kǂ݉B^000000",L0,"Zn",L1,"n",L2,"茕n",L3,"n",L7,"n",L4,"݊n",L5,"ibNn",L6;
L0:
	mes "[쐬NPC]";
	mes "{IɑSSŒ̂̂łȂ";
	mes "JEg܂B";
	mes "Ač쐬";
	mes "Oɍ̂";
	mes "ޗɂĂ܂܂B";
	next;
	mes "[쐬NPC]";
	mes "dvItemẤA";
	mes "Ȃ炸a邩";
	mes "J[gɓĂ炨肢܂";
	mes "ItemĂ⏞͂܂";
	mes "(L[M)Ȱ";
	close;
L1:
menu "iCt",L1_1,"Jb^[",L1_2,"}CS[V",L1_3,"_[N",L1_4,"_K[",L1_5,"XeBbg",L1_6,"OfBEX",L1_7,"_}XJX",L1_8;
L2:
menu "\[h",L2_1,"t@VI",L2_2,"uCh",L2_3,"CsA",L2_4,"V~^[",L2_5,"",L2_6,"cM",L2_7,"C",L2_8,"T[x",L2_9,"txWF",L2_10;
L3:
menu "J^i",L3_1,"XC[",L3_2,"oX^[h\[h",L3_3,"c[nh\[h",L3_4,"u[h\[h",L3_5,"NCA",L3_6;
L4:
menu "AbNX",L4_1,"ogAbNX",L4_2,"n}[",L4_3,"oX^[",L4_4,"c[nhAbNX",L4_5;
L5:
menu "Nu",L5_1,"CX",L5_2,"X}bV",L5_3,"tC",L5_4,"`FC",L5_5,"jOX^[",L5_6,"\[hCX",L5_7,"X^i[",L5_8;
L6:
menu "oOiE",L6_1,"ibN_X^[",L6_2,"z",L6_3,"tBXg",L6_4,"N[",L6_5,"tBK[",L6_6;
L7:
menu "Wx",L7_1,"XsA[",L7_2,"pCN",L7_3,"MU",L7_4,"OC",L7_5,"p`U",L7_6,"gCfg",L7_7,"no[h",L7_8,"X",L7_9;
L1_1: set @ProduceID,1201; goto Lcheck;
L1_2: set @ProduceID,1204; goto Lcheck;
L1_3: set @ProduceID,1207; goto Lcheck;
L1_4: set @ProduceID,1210; goto Lcheck;
L1_5: set @ProduceID,1213; goto Lcheck;
L1_6: set @ProduceID,1216; goto Lcheck;
L1_7: set @ProduceID,1219; goto Lcheck;
L1_8: set @ProduceID,1222; goto Lcheck;
L2_1: set @ProduceID,1101; goto Lcheck;
L2_2: set @ProduceID,1104; goto Lcheck;
L2_3: set @ProduceID,1107; goto Lcheck;
L2_4: set @ProduceID,1110; goto Lcheck;
L2_5: set @ProduceID,1113; goto Lcheck;
L2_6: set @ProduceID,1122; goto Lcheck;
L2_7: set @ProduceID,1119; goto Lcheck;
L2_8: set @ProduceID,1123; goto Lcheck;
L2_9: set @ProduceID,1126; goto Lcheck;
L2_10: set @ProduceID,1129; goto Lcheck;
L3_1: set @ProduceID,1116; goto Lcheck;
L3_2: set @ProduceID,1151; goto Lcheck;
L3_3: set @ProduceID,1154; goto Lcheck;
L3_4: set @ProduceID,1157; goto Lcheck;
L3_5: set @ProduceID,1160; goto Lcheck;
L3_6: set @ProduceID,1163; goto Lcheck;
L4_1: set @ProduceID,1301; goto Lcheck;
L4_2: set @ProduceID,1351; goto Lcheck;
L4_3: set @ProduceID,1354; goto Lcheck;
L4_4: set @ProduceID,1357; goto Lcheck;
L4_5: set @ProduceID,1360; goto Lcheck;
L5_1: set @ProduceID,1501; goto Lcheck;
L5_2: set @ProduceID,1504; goto Lcheck;
L5_3: set @ProduceID,1507; goto Lcheck;
L5_4: set @ProduceID,1510; goto Lcheck;
L5_5: set @ProduceID,1519; goto Lcheck;
L5_6: set @ProduceID,1513; goto Lcheck;
L5_7: set @ProduceID,1516; goto Lcheck;
L5_8: set @ProduceID,1522; goto Lcheck;
L6_1: set @ProduceID,1801; goto Lcheck;
L6_2: set @ProduceID,1803; goto Lcheck;
L6_3: set @ProduceID,1805; goto Lcheck;
L6_4: set @ProduceID,1807; goto Lcheck;
L6_5: set @ProduceID,1809; goto Lcheck;
L6_6: set @ProduceID,1811; goto Lcheck;
L7_1: set @ProduceID,1401; goto Lcheck;
L7_2: set @ProduceID,1404; goto Lcheck;
L7_3: set @ProduceID,1407; goto Lcheck;
L7_4: set @ProduceID,1451; goto Lcheck;
L7_5: set @ProduceID,1454; goto Lcheck;
L7_6: set @ProduceID,1457; goto Lcheck;
L7_7: set @ProduceID,1460; goto Lcheck;
L7_8: set @ProduceID,1463; goto Lcheck;
L7_9: set @ProduceID,1410; goto Lcheck;
Lcheck:
if (countitem(@ProduceID) < 2) goto LError;
	mes "[쐬NPC]";
	mes "͂ǂ܂H";
	mes "t^ꍇA";
	mes "^3355ff5^000000KvƂȂ܂B";
	next;
	menu "Ȃ",Loption2,"^ff0000Α^000000",LFire,"^0033ff^000000",LIce,"^996600y^000000",LEarth,"^00cc66^000000",LWind;
		LFire:
			if (countitem(994)<5) goto LError;
				set @ProduceOP,3;
				set @attr,994;
				goto Loption2;
		LIce:
			if (countitem(995)<5) goto LError;
				set @ProduceOP,1;
				set @attr,995;
				goto Loption2;
		LEarth:
			if (countitem(997)<5) goto LError;
				set @ProduceOP,2;
				set @attr,997;
				goto Loption2;
		LWind:
			if (countitem(996)<5) goto LError;
				set @ProduceOP,4;
				set @attr,996;
				goto Loption2;
Loption2:
	mes "[쐬NPC]";
	mes "͂ǂ܂H";
	mes "t^ꍇA";
	mes "^3355ff̂10^000000KvƂȂ܂B";
	next;
	if (@ProduceOP == 0) menu "Ȃ",Lproduce,"",LStar1,"",LStar2,"O",LStar3;
	menu "Ȃ",Lproduce,"",LStar1,"",LStar2;
		LStar1:
			if (countitem(1000)<10) goto LError;
				set @ProduceOP,@ProduceOP+1280;
				set @star,10;
				goto Lproduce;
		LStar2:
			if (countitem(1000)<20) goto LError;
				set @ProduceOP,@ProduceOP+2560;
				set @star,20;
				goto Lproduce;
		LStar3:
			if (countitem(1000)<30) goto LError;
				set @ProduceOP,@ProduceOP+3840;
				set @star,30;
				goto Lproduce;
Lproduce:
	mes "[쐬NPC]";
	mes "ł́A쐬܂B";
	next;
	delitem @ProduceID,2;
	delitem 1000,@star;
	delitem @attr,5;
	getitem2 @ProduceID,1,1,0,0,255,@ProduceOP,19051,2;
	mes "[쐬NPC]";
	mes "܂B";
	close;
LError:
	mes "[쐬NPC]";
	mes "ޗȂ悤ł";
	close;
Lend:
	mes "[쐬NPC]";
	mes "L܂";
	close;
}
