//====================================================================
// Event Oni
//====================================================================
//p^[(Ԑlq)
//@˃tFCnt˂ˋ̖
//ܕi̓W[Xe(΂Ȃ)
//͓KɃ_]dl
//hPrAAg({́AScriptg)Ȃ͖̂{IlłB
payon.gat,93,75,4	script	x	708,{
	cutin "pay_soldier",2;
	if (event_oni == 1) goto Lfinal;
	mes "[x]";
	mes "A̒͂Ă܂B";
	mes "ccZSɏPꂽ̂łI";
	mes "A`̂悤ɋSP";
	mes "Ƃcc";
	mes "ł͒肫";
	mes "Ƃ͂łȂł傤cc";
	next;
	mes "[x]";
	mes "́cc";
	mes "ȂoLȖ`҂";
	mes "ł肢܂B";
	mes "͂ĂȂł傤H";
	next;
	menu "킩܂A󂯂܂傤I",L1,"ɂ͖łB",-;
		mes "[x]";
		mes "łAcOłcc";
		mes "͂Aǂ悤cc";
		cutin "pay_soldier",255;
		close;
L1:
		mes "[x]";
		mes "{ł!?";
		mes "肪Ƃ܂I";
		mes "Ă߂ɂ";
		mes "܂SɂĒmĂȂƁcc";
		next;
		mes "[x]";
		mes "̒̉ɂ|̑ɁA";
		mes "mȂ񂪂܂B";
		mes "SɂĂڂƎv܂̂";
		mes "xb𕷂Ă݂Ă";
		mes "ł傤H";
		next;
		mes "[x]";
		mes "APꂽZ";
		mes "قɂ܂B";
		mes "ǂ낵肢܂B";
		cutin "pay_soldier",255;
		close;
Lfinal:
	mes "[x]";
	mes "AǂɍsĂꂽ̂łH";
	mes "ccH";
	mes "łÁH";
	mes "_Ȃłcc";
	mes "HSĂ!?";
	mes "hPr͂ŐlP̂łˁI";
	next;
	mes "[x]";
	mes "cc";
	mes "!?P̂̓hPrȂH";
	mes "cc";
	mes "łB";
	mes "̐́AP̂A";
	mes "AgƂScc";
	next;
	mes "[x]";
	mes "ł́A`";
	mes "ԈĂ̂ccB";
	mes "ȂƁcc";
	next;
	mes "[x]";
	mes "A܂B";
	mes "͂ƂA";
	mes "{ɂ肪Ƃ܂B";
	next;
	mes "[x]";
	mes "A͂̕mȂ";
	mes "SɂĐq˂ĂȂ̂Ƃ";
	mes "SzĂ悤ȂłB";
	mes "ǂȂ̌CȎp";
	mes "ĂĂ炦܂񂩁H";
	cutin "pay_soldier",255;
	close;
}
//====================================================================
pay_arche.gat,140,30,4	script		120,{
	if ((event_oni == 1) && (countitem(1501)>=1)) goto Levent;
	mes "[m肶]";
	mes "H";
	mes "Ȃ񂶂H";
	mes "悤ȁH";
	next;
	menu "SɂĒm肽",L1,"ɗp͂Ȃł",-;
		mes "[m肶]";
		mes "cc";
		close;
	L1:
		mes "[m肶]";
		mes "cc";
		mes "SɂĒm肽ƂȁB";
		mes "ccӂށcc";
		mes "ł͘bƂ悤́B";
		next;
		mes "[m肶]";
		mes "́ASƐlԂ͒ǂ̂B";
		mes "푰̎q́AꏏɗV";
		mes "B";
		mes "Ȃ̂ƂA";
		mes "S̎qƗVԂ߂ɏoq";
		mes "₵ɋAĂ̂B";
		next;
		mes "[m肶]";
		mes "b𕷂ƁAȂ";
		mes "ꂽ炵B";
		mes "ācc";
		mes "S̎qpȂȂĂ";
		mes "A`҂XƏP";
		mes "NB";
		next;
		mes "[m肶]";
		mes "`ҒB͋SɏPꂽƌB";
		mes "̐lX͋A˘f";
		mes "₪āAƋS̎qp";
		mes "Ɋ֌Ŵł͂Ȃ";
		mes "l悤ɂȂ񂶂B";
		next;
		mes "[m肶]";
		mes "̎";
		mes "Z͏WsB";
		mes "̌ʁAƏZ̈S";
		mes "邽߂ɒOo";
		mes "֎~邱ƂɂB";
		next;
		mes "[m肶]";
		mes "āA̖B";
		mes "PAr炳ꂽcc";
		next;
		mes "[m肶]";
		mes "KAǂ̉Ƃl";
		mes "oȂ̂́A̖";
		mes "̐lSƘb";
		mes "ɂ͋S̑Ղ";
		mes "cĂB";
		next;
		mes "[m肶]";
		mes "lX́A܂ł̎";
		mes "P̂́A͂S̎dƂ";
		mes "f̂B";
		mes "̎SƂ͌𗬂";
		mes "ȂȂĂ܂cc";
		next;
		mes "[m肶]";
		mes "܂A킵mĂ̂";
		mes "̂炢ȁB";
		close;
Levent:
	mes "[m肶]";
	mes "ccSzB";
	mes "ŜƂ֌ƕĂȁB";
	mes "ႪAӂށccŉB";
	mes "ĂǂH";
	mes "S́H";
	mes "AS|̂H";
	next;
	mes "[m肶]";
	mes "قÁcc";
	mes "_ȁH";
	mes "Ŝ̂́H";
	mes "Ɓcc";
	mes "S|Ăꂽ̂ȁI";
	mes "悤Ăꂽ̂B";
	next;
	mes "[m肶]";
	mes "cc";
	mes "ӂށB";
	mes "cc";
	mes "ȂƁI";
	mes "lP̂̓hPrł";
	mes "ȂƂ̂I";
	next;
	mes "[m肶]";
	mes "AgƂS";
	mes "ĂƁcc";
	mes "cc";
	mes "́Â";
	mes "dƂƁB";
	next;
	mes "[m肶]";
	mes "m񂩂cc";
	mes "ɂSƂ́cc";
	mes "ccƂƂB";
	mes "킵́A܂łƂłȂ";
	mes "ԈႢĂ̂cc";
	next;
	mes "[m肶]";
	mes "킵́cc";
	mes "킵́AԃhPrłB";
	mes "ǂė؂̂A";
	mes "̎AȂ킵̑O";
	mes "̂Ɓcc";
	next;
	mes "[m肶]";
	mes "cc";
	mes "Ȃɋ`̐l̎qƂ";
	mes "킵̂B";
	mes "킵́AhPrɗ؂ꂽ";
	mes "ƎvĂB";
	mes "cc";
	next;
	mes "[m肶]";
	mes "؂̂́A";
	mes "AMĂȂ̂";
	mes "킵̂ق񂶂ȁB";
	mes "킵͍Ă܂B";
	mes "hPrłĂ";
	mes "dȂ̂cc";
	next;
	mes "[m肶]";
	mes "cc";
	mes "킵͂ǂ΂񂶂";
	mes "ǂ΁cc";
	mes "cc";
	next;
	mes "[m肶]";
	mes "Ȃ񂶂!?";
	mes "hPŕA킵";
	mes "łȂƂ̂B";
	mes "ǂ납A";
	mes "킵ƗVׂȂ̂";
	mes "߂Ɓc";
	next;
	mes "[m肶]";
	mes "cc";
	mes "cc";
	mes "܂xȂ̂cc";
	next;
	mes "[m肶]";
	mes "悯΁cc";
	mes "̞_A킵ɂ炦񂩂́B";
	mes "qɁA̎b";
	mes "Ă肽񂶂B";
	next;
	menu "AǂI",Le_1,"łB",-;
		mes "[m肶]";
		mes "AcOcc";
		close;
Le_1:
		mes "[m肶]";
		mes "肪ƂB";
		mes "ȂȂ΁A";
		mes "킵͂ꂩƃhPr";
		mes "ł낤B";
		mes "ȂƂ炢cc";
		next;
		mes "[m肶]";
		mes "A킵͂ȕ";
		mes "ĂʂAǂ";
		mes "󂯎ĂB";
		mes "ق̐S΂̂炶B";
		next;
		mes "[m肶]";
		mes "tFCōĂ镨";
		mes "̂ɗǂƕ]Ȃ񂶂B";
		mes "ǂgĂcc";
		next;
		set @jijirand,rand(4);
		set event_oni,0;
		delitem 1501,1;
		if (@jijirand == 1) goto Lrand1;
		if (@jijirand == 2) goto Lrand2;
		if (@jijirand == 3) goto Lrand3;
			getitem 531,1;goto Lrandend;
	Lrand1:
			getitem 532,1;goto Lrandend;
	Lrand2:
			getitem 533,1;goto Lrandend;
	Lrand3:
			getitem 534,1;
Lrandend:
		mes "[m肶]";
		mes "Ȃ畷^́A";
		mes "֓`ĂƂ悤B";
		mes "AȂ̂Ƃȁcc";
		close;
}
payon.gat,100,135,4	script	q	706,{
	mes "[̏N]";
	mes "|`II";
	mes "lSɂׂꂿႤ̂Ȃcc";
	close;
}
//====================================================================
payon.gat,45,130,4	script	Z	50,{
	mes "[̒j]";
	mes "̐́ASɏPꂽƂ";
	mes "`͖{̂I";
	mes "ǂ΂񂾁B";
	next;
	mes "[̒j]";
	mes "΁cc";
	mes "cAQOɂ悭";
	mes "Š`𕷂ꂽ񂾁B";
	mes "̐́Aɂ͕K";
	mes "^ff0000tFCnt^000000uĂȁB";
	mes "e͖ƌĂcc";
	close;
}
//====================================================================
payon.gat,153,163,4	script	Z	75,{
	mes "[̏]";
	mes "lSɏPꂽłāI";
	mes "`̂悤";
	mes "ɋŜł傤H";
	close;
}
//====================================================================
payon_in01.gat,177,49,2	script	𕉂l	48,{
	mes "[𕉂l]";
	mes "`ɂS{ɂ񂾁I";
	mes "̓Ax^炱̒֋Ar";
	mes "SɏPĐ[𕉂񂾁B";
	mes "ƂAĂꂽcc";
	mes "̉䂶ᓖOɂ͂łȂc";
	next;
	menu "ǂŋSɏPꂽ́H",L1,"ǂē!?",L2,;
L1:
	mes "[𕉂l]";
	mes "Sꏊ";
	mes "Ax^ƃtFC";
	mes "傤ǒԂ炢B";
	mes "ʂƂɂ͏\";
	mes "Ccc";
	close;
L2:
	mes "[𕉂l]";
	mes "KA悭oĂȂ";
	mes "Ăς";
	mes "񂾁B";
	next;
	mes "[𕉂l]";
	mes "Ɓcc^ff0000A̖A";
	mes "\[hAK[hAAbNX^000000cc";
	mes "ɂmȂǁcc";
	mes "oĂȂȂB";
	close;
}
//====================================================================
payon_in01.gat,171,138,2	script	N	59,{
	mes "[N]";
	mes "ɔꂽX^[ɂ";
	mes "Iȗ͂ʗpȂ񂾁A";
	mes "ʓIɑގɂ";
	mes "uCv܂́u@vƌ";
	mes "_Iȗ͂B";
	close;
}
//====================================================================
pay_fild02.gat,105,244,4	script	@	1407,{close;}
pay_fild02.gat,105,244,4	script	hPr	111,{
	mes "[hPr]";
	mes "IjAijJEJH";
	next;
	menu "O|ɗI",L1,"ȂłȂB",-;
		mes "[hPr]";
		mes "\Jcc";
		close;
L1:
		mes "[hPr]";
		mes "i[_H";
		mes "I^`AijJV^JH";
		mes "cc";
		mes "I^`AqgAI\EH";
		mes "\AiCB";
		next;
		mes "[hPr]";
		mes "IAqgAJVAiJVB";
		mes "C}AA\oiCA";
		mes "fALCiCB";
		next;
		mes "[hPr]";
		mes "qgAI\EA^uAAgB";
		mes "IAAgAI\^B";
		mes "AgACAfcCB";
		mes "I^`AjQ^B";
		mes "_JAqgAA\xiNi^B";
		mes "qgAA\xiCAIAJiVCcc";
		next;
		menu "Ag|ĂI",L1_1,"킢ɁB",-;
			mes "[hPr]";
			mes "IJiVCcc";
			mes "}^AA\r^Ccc";
			close;
		L1_1:
			mes "[hPr]";
			mes "\JccAgA`JNCcc";
			mes "AgALPAcCB";
			mes "AgA`JdNANiCB";
			next;
			mes "[hPr]";
			mes "^ff0000J^CJ^000000AgINA";
			mes "ucPAC`oB";
			mes "^ff0000t^c^000000AeNACCB";
			mes "JVAiQ^A";
			mes "AgAC^K^B";
			mes "ccVkicc";
			close;
}
//====================================================================
pay_fild02.gat,53,128,4	script	@	1301,{close;}
pay_fild02.gat,53,128,4	script	Ag	111,{
	set @ammut,0;
	if ((countitem(1751)>=1) && (countitem(1089)>=1) && (countitem(935)>=2)) goto Lquest;
	mes "̂܂܂ł͏ĂɂȂcc";
	mes "_TKv肻B";
	close;
Lquest:
	delitem 1751,1;
	delitem 1089,1;
	delitem 935,2;
	mes "[Ag]";
	mes "ccjQcc";
	mes "ijVjL^";
	mes "hPrcc";
	mes "jQcc";
	mes "LCI";
	mes "jQ^IXII";
	next;
	mes "AgˑRP|Ă!!";
	next;
	mes "Ag̓AhibV";
	mes "gB";
	mes "Ag̍UxB";
	mes "AgAUd|ĂB";
	mes "ǂ!?";
	next;
	menu "",L1_1,"h䂷",L1_2,"󂯗",L1_3;
L1_1:
	mes "Xbcc";
	mes " ";
	mes "܂邱ƂłB";
	mes "ǂH";
	goto L2menu;
L1_2:
	mes "Kbcc";
	mes " ";
	mes "ƂςB";
	mes "ǂH";
	set @ammut,1;
	goto L2menu;
L1_3:
	mes "hKbcc";
	mes " ";
	mes "󂯗ƂɎsB";
	mes "_[W󂯂I";
	mes "ǂH";
	set @ammut,2;
L2menu:
	next;
	menu "tFCntԂ܂",L2_1,"̖nʂɎhB",L2_2,"𓊂B",L2_3;
L2_1:
	mes "oVbcc";
	mes " ";
	mes "Agɉt̂B";
	mes "Ag͂ꂵłB";
	mes "ǂʂ悤cc";
	goto Lmemmer;
L2_2:
	mes "hXbcc";
	mes " ";
	mes "NȂcc";
	mes "ăAg";
	mes "PP΂ĂB";
	set @ammut,@ammut+10;
	goto Lmemmer;
L2_3:
	mes "rcc";
	mes " ";
	mes "Ag͂Ƃɂ悯B";
	mes "ɂI";
	mes "_[W^ȂB";
	set @ammut,@ammut+20;
Lmemmer:
	next;
	mes "Ag̍UI";
	mes "Ag̓}[iCgg";
	mes "UĂB";
	next;
	set @ammutrand2,rand(100);
	if (@ammutrand2<= 40) goto Lmemmer2;
	if (@ammutrand2>= 80) goto Lmemmer3;
	if (@ammut==0) goto Lmemmer3;
		mes "YKKKbcc";
		mes " ";
		mes "鎖ł";
		mes "_[W󂯂I";
		mes "ӎ̂Ăcc";
		close2;
		warp "payon_in01.gat",170,45;end;
	Lmemmer2:
		mes "Xbcc";
		mes " ";
		mes "^ǂ邱ƂłB";
		mes "I";
		goto L3rdmenu;
	Lmemmer3:
		mes "YKbcc";
		mes " ";
		mes "݂";
		mes "邱ƂłȂB";
		mes "I";
L3rdmenu:
	next;
	menu "tFCnt",L3_1,"̖œ˂B",L3_2,"𓊂B",L3_3;
L3_1:
	mes "SNSNcc";
	mes " ";
	mes "nt񂾏u";
	mes "̂ჂI";
	goto Lkonbou;
L3_2:
	mes "Vbcc";
	mes " ";
	mes "AgɓːiȂ";
	mes "œ˂";
	mes "Ă܂I";
	set @ammut,@ammut+100;
	goto Lkonbou;
L3_3:
	mes "oVbcc";
	mes " ";
	mes "AAgɖB";
	mes "ɂĂI";
	set @ammut,@ammut+200;
Lkonbou:
	next;
	mes "Ag̍UI";
	mes "Ag͎Ă鞞_";
	mes "͂ςU񂵂";
	mes "ɓ˂łB";
	next;
	if (@ammut==200) goto Lkonbou3;
	if (@ammut==100) goto Lkonbou4;
	set @ammutrand3,rand(100);
	if (@ammutrand3<= 40) goto Lkonbou3;
	if (@ammutrand3>= 80) goto Lkonbou4;
	Lkonbou2:
		mes "hKKKbcc";
		mes " ";
		mes "܂̖ҍUɑς؂ꂸ";
		mes "hƂĂ܂B";
		mes "ɋȈꌂI";
		mes "Sg̗͂Ăcc";
		close2;
		warp "payon_in01.gat",165,140;end;
	Lkonbou3:
		mes "KKbcc";
		mes " ";
		mes "h䂷邱Ƃɐ";
		mes "܂З͂";
		mes "_[W󂯂Ă܂B";
		mes "I";
		goto L4thmenu;
	Lkonbou4:
		mes "hebcc";
		mes " ";
		mes "AAg";
		mes "Uۂɓ]񂾁B";
		mes "I";
L4thmenu:
		next;
	menu "tFCnt𓊂B",L4_1,"̖𓊂",L4_2,"𓊂B",L4_3;
L4_1:
	mes "KVbcc";
	mes " ";
	mes "rŎǂ";
	mes "AgɂƂǂȂcc";
	goto Lfinal;
L4_2:
	mes "hXbcc";
	mes " ";
	mes "́AAg";
	mes "˂_[W^I";
	set @ammut,@ammut+1000;
	goto Lfinal;
L4_3:
	mes "KSbcc";
	mes " ";
	mes "Ag͎Ă";
	mes "_ŔeԂB";
	mes "ł悯ꂸ";
	mes "_[W󂯂I";
	set @ammut,@ammut+2000;
Lfinal:
	next;
	if (@ammut==1200) goto Lsucsess;
	set @ammutrand4,rand(100);
	if (@ammutrand4 >= 80) goto Lsucsess;
	mes "hSbcc";
	mes " ";
	mes "ȑ̓II";
	mes "Agǂl߂";
	mes "̂Ƃ";
	mes "󂯂Ă܂I";
	mes "ڂ̑OÂȂĂcc";
	close2;
	warp "payon_in01.gat",165,140;end;
Lsucsess:
	set event_oni,1;
	getitem 1501,1;
	mes "Ag炵߂II";
	mes "ڂ̑OŃAgC₵ĂB";
	mes "AgĂ";
	mes "_ɓꂽB";
	next;
	mes "S|؋Ƃ";
	mes "ɂċA낤B";
	close2;
	warp "payon.gat",90,30;end;
}

