//===================================================================
//Ragnarok Online EP2.5 GVG Script	payg_cas03         by kalen
//===================================================================
-	script	gfpayC	722,{
callfunc "flagsc","payg_cas03.gat",2,0,0,0;
OnRecvCastleF03:
	FlagEmblem getcastledata("payg_cas03.gat",1);
	end;
}
pay_gld.gat,321,298,2	duplicate(gfpayC)	ギルドフラッグ#f3-1	722
pay_gld.gat,321,289,2	duplicate(gfpayC)	ギルドフラッグ#f3-2	722
pay_gld.gat,327,304,1	duplicate(gfpayC)	ギルドフラッグ#f3-3	722
pay_gld.gat,333,254,4	duplicate(gfpayC)	ギルドフラッグ#f3-4	722
payg_cas03.gat,236,54,2	duplicate(gfpayC)	ギルドフラッグ#f3-5	722
payg_cas03.gat,236,45,2	duplicate(gfpayC)	ギルドフラッグ#f3-6	722
payg_cas03.gat,259,66,4	duplicate(gfpayC)	ギルドフラッグ#f3-7	722
payg_cas03.gat,266,66,4	duplicate(gfpayC)	ギルドフラッグ#f3-8	722
payg_cas03.gat,34,31,4	duplicate(gfpayC)	ギルドフラッグ#f3-9	722
payg_cas03.gat,43,31,4	duplicate(gfpayC)	ギルドフラッグ#f3-10	722
//------------------------------カプラ--------------------------------
payg_cas03.gat,9,263,5	script	カプラ職員::kapra_payg03	117,{
	callfunc "gkfmenu","payg_cas03.gat";
	menu "倉庫サービス",L2,"空間移動サービス",L3,"カートサービス",L4,"終了",L7;
L2:
	callfunc "kfstorage",40;
L3:
	callfunc "gkfwarp","フェイヨン","payon.gat",82,128;
L4:
	callfunc "kfcart",800;
L7:
	callfunc "kfend";
}
//-------------------------------執事---------------------------------
payg_cas03.gat,50,261,3	script	ケリオ	55,{
	callfunc "Steward_menu0","payg_cas03.gat","ケリオ";
	menu "砦の状態を表示",L1,"商業発展に投資",L2,"砦の防衛に投資",L3,"ガーディアン設置",L4,"カプラとの契約 / 解雇",L5,"マスターの部屋に入る",L6,"アジトを放棄する",L7;
L1:
	callfunc "Steward_menu1","payg_cas03.gat","ケリオ";
L2:
	callfunc "Steward_menu2","payg_cas03.gat","ケリオ";
L3:
	callfunc "Steward_menu3","payg_cas03.gat","ケリオ";
L4:
	callfunc "Steward_menu4","payg_cas03.gat","ケリオ";
	if (@GDnum == 10) monster "payg_cas03.gat",245,37,"--ja--",1285,1,"Agit_C03::On_GDf31";
	if (@GDnum == 11) monster "payg_cas03.gat",269,51,"--ja--",1285,1,"Agit_C03::On_GDf32";
	if (@GDnum == 12) monster "payg_cas03.gat",36,39,"--ja--",1285,1,"Agit_C03::On_GDf33";
	if (@GDnum == 13) monster "payg_cas03.gat",41,39,"--ja--",1285,1,"Agit_C03::On_GDf34";
	if (@GDnum == 14) monster "payg_cas03.gat",39,65,"--ja--",1285,1,"Agit_C03::On_GDf35";
	if (@GDnum == 15) monster "payg_cas03.gat",19,276,"--ja--",1285,1,"Agit_C03::On_GDf36";
	if (@GDnum == 16) monster "payg_cas03.gat",37,277,"--ja--",1285,1,"Agit_C03::On_GDf37";
	if (@GDnum == 17) monster "payg_cas03.gat",268,244,"--ja--",1286,1,"Agit_C03::On_GDf38";
	mes "[執事ケリオ]";
	mes "ガーディアンが設置されました。";
	mes "ガーディアンは私達の城を";
	mes "敵から守ってくれるでしょう。";
	close;
L5:
	callfunc "Steward_menu5","payg_cas03.gat","ケリオ","kapra_payg03";
L6:
	callfunc "Steward_menu6","payg_cas03.gat","ケリオ",155,165;
L7:
	callfunc "Steward_menu7","payg_cas03.gat","ケリオ";
	callfunc "resetcastledata","payg_cas03.gat","::OnRecvCastleF03","kapra_payg03",@GID;
}
//-----------------------------スイッチ-------------------------------
payg_cas03.gat,163,167,0	script	　	111,{
callfunc "gdswitch","payg_cas03.gat",50,262;
}
//-----------------------------スイッチ2------------------------------
payg_cas03.gat,38,42,0	script	　	111,{
callfunc "gdswitch2","payg_cas03.gat","gld_dun01.gat",54,39;
}