
payon.gat,165,177,4	script	F#paym11	722,{
	set @GIDf1,getcastledata("payg_cas01.gat",1);
	if ($AgitStarted == 1) goto LAgitStarted;
	if (@GIDf1 != 0) goto LStartg;
		mes "[ wԤ  iO ]";
		mes " ";
		mes "1.";
		mes "ھڳo̪AwԤO";
		mes "o̤GASҦv";
		mes "Ka";
		next;
		mes " ";
		mes "2.";
		mes "ԳӦubo̪AiȪ礧";
		mes "}aRݪH!";
		mes "|礩";
		mes "g{Ҫ";
		mes "KaҦv!";
		close;
LStartg:
		if (getcharid(2) == @GIDf1) goto LStartg2;
		mes "[ wԤ  iO ]";
		mes " ";
		mes "1.";
		mes "ھڳo̪AwԤO";
		mes "o̳Q{w ^ff0000 " + GetGuildName(@GIDf1) + " ^000000u|";
		mes "p!";
		next;
		mes " ";
		mes "2.";
		mes "^ff0000 " + GetGuildName(@GIDf1) + " ^000000 u|DHO";
		mes "^ff0000 " + getguildmaster(@GIDf1) + " ^000000L׬O";
		mes "oƱN";
		mes "ЧA|_zCAۤvWAa!";
		close;
LStartg2:
		mes "[ wԤ  iO ]";
		mes "A{bNn";
		mes "iJu|";
		next;
		menu "O",-,"ݭn",Lclose;
			warp "payg_cas01.gat",86,44;end;
LAgitStarted:
		mes "[ wԤ  iO ]";
		mes "𫰾Ԥwg}lA";
		if (getcharid(2) == @GIDf1) mes "ઽǰeiJu|C";
		if (getcharid(2) == @GIDf1) mes "аWXoAO@AC";
		if (getcharid(2) != @GIDf1) mes "nASݤFA|_zCAۤvWAaC";
		close;
Lclose:
		close;
OnRecvCastleF01:
// [FlagEmblem GuildID]: Show EMBLEM of the GuildID to the FlagNPC(ClassID=722).
	FlagEmblem getcastledata("payg_cas01.gat",1);
	set $AgitStarted,0;
	end;
OnAgitStart:
	FlagEmblem getcastledata("payg_cas01.gat",1);
	set $AgitStarted,1;
	end;
OnAgitEnd:
	FlagEmblem getcastledata("payg_cas01.gat",1);
	set $AgitStarted,0;
	end;
}

payon.gat,165,165,4	script	#paym21	722,{
	set @GIDf2,getcastledata("payg_cas02.gat",1);
	if ($AgitStarted == 1) goto LAgitStarted;
	if (@GIDf2 != 0) goto LStartg;
		mes "[ wԤ  iO ]";
		mes " ";
		mes "1.";
		mes "ھڳo̪AwԤO";
		mes "o̤GASҦv";
		mes "Ka";
		next;
		mes " ";
		mes "2.";
		mes "ԳӦubo̪AiȪ礧";
		mes "}aRݪH!";
		mes "|礩";
		mes "g{Ҫ";
		mes "KaҦv!";
		close;
LStartg:
		if (getcharid(2) == @GIDf2) goto LStartg2;
		mes "[ wԤ  iO ]";
		mes " ";
		mes "1.";
		mes "ھڳo̪AwԤO";
		mes "o̳Q{w ^ff0000 " + GetGuildName(@GIDf2) + " ^000000u|";
		mes "p!";
		next;
		mes " ";
		mes "2.";
		mes "^ff0000 " + GetGuildName(@GIDf2) + " ^000000 u|DHO";
		mes "^ff0000 " + getguildmaster(@GIDf2) + " ^000000L׬O";
		mes "oƱN";
		mes "ЧA|_zCAۤvWAa!";
		close;
LStartg2:
		mes "[ wԤ  iO ]";
		mes "A{bNn";
		mes "iJu|";
		next;
		menu "O",-,"ݭn",Lclose;
			warp "payg_cas02.gat",252,265;end;
LAgitStarted:
		mes "[ wԤ  iO ]";
		mes "𫰾Ԥwg}lA";
		if (getcharid(2) == @GIDf2) mes "ઽǰeiJu|C";
		if (getcharid(2) == @GIDf2) mes "аWXoAO@AC";
		if (getcharid(2) != @GIDf2) mes "nASݤFA|_zCAۤvWAaC";
		close;
Lclose:
		close;
OnRecvCastleF02:
// [FlagEmblem GuildID]: Show EMBLEM of the GuildID to the FlagNPC(ClassID=722).
	FlagEmblem getcastledata("payg_cas02.gat",1);
	set $AgitStarted,0;
	end;
OnAgitStart:
	FlagEmblem getcastledata("payg_cas02.gat",1);
	set $AgitStarted,1;
	end;
OnAgitEnd:
	FlagEmblem getcastledata("payg_cas02.gat",1);
	set $AgitStarted,0;
	end;
}

payon.gat,165,161,4	script	˪L#paym31	722,{
	set @GIDf3,getcastledata("payg_cas03.gat",1);
	if ($AgitStarted == 1) goto LAgitStarted;
	if (@GIDf3 != 0) goto LStartg;
		mes "[ wԤ  iO ]";
		mes " ";
		mes "1.";
		mes "ھڳo̪AwԤO";
		mes "o̤GASҦv";
		mes "Ka";
		next;
		mes " ";
		mes "2.";
		mes "ԳӦubo̪AiȪ礧";
		mes "}aRݪH!";
		mes "|礩";
		mes "g{Ҫ";
		mes "KaҦv!";
		close;
LStartg:
		if (getcharid(2) == @GIDf3) goto LStartg2;
		mes "[ wԤ  iO ]";
		mes " ";
		mes "1.";
		mes "ھڳo̪AwԤO";
		mes "o̳Q{w ^ff0000 " + GetGuildName(@GIDf3) + " ^000000u|";
		mes "p!";
		next;
		mes " ";
		mes "2.";
		mes "^ff0000 " + GetGuildName(@GIDf3) + " ^000000 u|DHO";
		mes "^ff0000 " + getguildmaster(@GIDf3) + " ^000000L׬O";
		mes "oƱN";
		mes "ЧA|_zCAۤvWAa!";
		close;
LStartg2:
		mes "[ wԤ  iO ]";
		mes "A{bNn";
		mes "iJu|";
		next;
		menu "O",-,"ݭn",Lclose;
			warp "payg_cas03.gat",28,253;end;
LAgitStarted:
		mes "[ wԤ  iO ]";
		mes "𫰾Ԥwg}lA";
		if (getcharid(2) == @GIDf3) mes "ઽǰeiJu|C";
		if (getcharid(2) == @GIDf3) mes "аWXoAO@AC";
		if (getcharid(2) != @GIDf3) mes "nASݤFA|_zCAۤvWAaC";
		close;
Lclose:
		close;
OnRecvCastleF03:
// [FlagEmblem GuildID]: Show EMBLEM of the GuildID to the FlagNPC(ClassID=722).
	FlagEmblem getcastledata("payg_cas03.gat",1);
	set $AgitStarted,0;
	end;
OnAgitStart:
	FlagEmblem getcastledata("payg_cas03.gat",1);
	set $AgitStarted,1;
	end;
OnAgitEnd:
	FlagEmblem getcastledata("payg_cas03.gat",1);
	set $AgitStarted,0;
	end;
}

payon.gat,165,173,4	script	Ѿ#paym41	722,{
	set @GIDf4,getcastledata("payg_cas04.gat",1);
	if ($AgitStarted == 1) goto LAgitStarted;
	if (@GIDf4 != 0) goto LStartg;
		mes "[ wԤ  iO ]";
		mes " ";
		mes "1.";
		mes "ھڳo̪AwԤO";
		mes "o̤GASҦv";
		mes "Ka";
		next;
		mes " ";
		mes "2.";
		mes "ԳӦubo̪AiȪ礧";
		mes "}aRݪH!";
		mes "|礩";
		mes "g{Ҫ";
		mes "KaҦv!";
		close;
LStartg:
		if (getcharid(2) == @GIDf4) goto LStartg2;
		mes "[ wԤ  iO ]";
		mes " ";
		mes "1.";
		mes "ھڳo̪AwԤO";
		mes "o̳Q{w ^ff0000 " + GetGuildName(@GIDf4) + " ^000000u|";
		mes "p!";
		next;
		mes " ";
		mes "2.";
		mes "^ff0000 " + GetGuildName(@GIDf4) + " ^000000 u|DHO";
		mes "^ff0000 " + getguildmaster(@GIDf4) + " ^000000L׬O";
		mes "oƱN";
		mes "ЧA|_zCAۤvWAa!";
		close;
LStartg2:
		mes "[ wԤ  iO ]";
		mes "A{bNn";
		mes "iJu|";
		next;
		menu "O",-,"ݭn",Lclose;
			warp "payg_cas04.gat",74,261;end;
LAgitStarted:
		mes "[ wԤ  iO ]";
		mes "𫰾Ԥwg}lA";
		if (getcharid(2) == @GIDf4) mes "ઽǰeiJu|C";
		if (getcharid(2) == @GIDf4) mes "аWXoAO@AC";
		if (getcharid(2) != @GIDf4) mes "nASݤFA|_zCAۤvWAaC";
		close;
Lclose:
		close;
OnRecvCastleF04:
// [FlagEmblem GuildID]: Show EMBLEM of the GuildID to the FlagNPC(ClassID=722).
	FlagEmblem getcastledata("payg_cas04.gat",1);
	set $AgitStarted,0;
	end;
OnAgitStart:
	FlagEmblem getcastledata("payg_cas04.gat",1);
	set $AgitStarted,1;
	end;
OnAgitEnd:
	FlagEmblem getcastledata("payg_cas04.gat",1);
	set $AgitStarted,0;
	end;
}

payon.gat,165,169,4	script	v#paym52	722,{
	set @GIDf5,getcastledata("payg_cas05.gat",1);
	if ($AgitStarted == 1) goto LAgitStarted;
	if (@GIDf5 != 0) goto LStartg;
		mes "[ wԤ  iO ]";
		mes " ";
		mes "1.";
		mes "ھڳo̪AwԤO";
		mes "o̤GASҦv";
		mes "Ka";
		next;
		mes " ";
		mes "2.";
		mes "ԳӦubo̪AiȪ礧";
		mes "}aRݪH!";
		mes "|礩";
		mes "g{Ҫ";
		mes "KaҦv!";
		close;
LStartg:
		if (getcharid(2) == @GIDf5) goto LStartg2;
		mes "[ wԤ  iO ]";
		mes " ";
		mes "1.";
		mes "ھڳo̪AwԤO";
		mes "o̳Q{w ^ff0000 " + GetGuildName(@GIDf5) + " ^000000u|";
		mes "p!";
		next;
		mes " ";
		mes "2.";
		mes "^ff0000 " + GetGuildName(@GIDf5) + " ^000000 u|DHO";
		mes "^ff0000 " + getguildmaster(@GIDf5) + " ^000000L׬O";
		mes "oƱN";
		mes "ЧA|_zCAۤvWAa!";
		close;
LStartg2:
		mes "[ wԤ  iO ]";
		mes "A{bNn";
		mes "iJu|";
		next;
		menu "O",-,"ݭn",Lclose;
			warp "payg_cas05.gat",282,21;end;
LAgitStarted:
		mes "[ wԤ  iO ]";
		mes "𫰾Ԥwg}lA";
		if (getcharid(2) == @GIDf5) mes "ઽǰeiJu|C";
		if (getcharid(2) == @GIDf5) mes "аWXoAO@AC";
		if (getcharid(2) != @GIDf5) mes "nASݤFA|_zCAۤvWAaC";
		close;
Lclose:
		close;
OnRecvCastleF05:
// [FlagEmblem GuildID]: Show EMBLEM of the GuildID to the FlagNPC(ClassID=722).
	FlagEmblem getcastledata("payg_cas05.gat",1);
	set $AgitStarted,0;
	end;
OnAgitStart:
	FlagEmblem getcastledata("payg_cas05.gat",1);
	set $AgitStarted,1;
	end;
OnAgitEnd:
	FlagEmblem getcastledata("payg_cas05.gat",1);
	set $AgitStarted,0;
	end;
}


//============================= ĤGB|Xm ==============================================


payon.gat,90,322,4	script	F#paym12	722,{
	set @GIDf1,getcastledata("payg_cas01.gat",1);
	if ($AgitStarted == 1) goto LAgitStarted;
	if (@GIDf1 != 0) goto LStartg;
		mes "[ wԤ  iO ]";
		mes " ";
		mes "1.";
		mes "ھڳo̪AwԤO";
		mes "o̤GASҦv";
		mes "Ka";
		next;
		mes " ";
		mes "2.";
		mes "ԳӦubo̪AiȪ礧";
		mes "}aRݪH!";
		mes "|礩";
		mes "g{Ҫ";
		mes "KaҦv!";
		close;
LStartg:
		if (getcharid(2) == @GIDf1) goto LStartg2;
		mes "[ wԤ  iO ]";
		mes " ";
		mes "1.";
		mes "ھڳo̪AwԤO";
		mes "o̳Q{w ^ff0000 " + GetGuildName(@GIDf1) + " ^000000u|";
		mes "p!";
		next;
		mes " ";
		mes "2.";
		mes "^ff0000 " + GetGuildName(@GIDf1) + " ^000000 u|DHO";
		mes "^ff0000 " + getguildmaster(@GIDf1) + " ^000000L׬O";
		mes "oƱN";
		mes "ЧA|_zCAۤvWAa!";
		close;
LStartg2:
		mes "[ wԤ  iO ]";
		mes "A{bNn";
		mes "iJu|";
		next;
		menu "O",-,"ݭn",Lclose;
			warp "payg_cas01.gat",86,44;end;
LAgitStarted:
		mes "[ wԤ  iO ]";
		mes "𫰾Ԥwg}lA";
		if (getcharid(2) == @GIDf1) mes "ઽǰeiJu|C";
		if (getcharid(2) == @GIDf1) mes "аWXoAO@AC";
		if (getcharid(2) != @GIDf1) mes "nASݤFA|_zCAۤvWAaC";
		close;
Lclose:
		close;
OnRecvCastleF01:
// [FlagEmblem GuildID]: Show EMBLEM of the GuildID to the FlagNPC(ClassID=722).
	FlagEmblem getcastledata("payg_cas01.gat",1);
	set $AgitStarted,0;
	end;
OnAgitStart:
	FlagEmblem getcastledata("payg_cas01.gat",1);
	set $AgitStarted,1;
	end;
OnAgitEnd:
	FlagEmblem getcastledata("payg_cas01.gat",1);
	set $AgitStarted,0;
	end;
}

payon.gat,118,322,4	script	#paym22	722,{
	set @GIDf2,getcastledata("payg_cas02.gat",1);
	if ($AgitStarted == 1) goto LAgitStarted;
	if (@GIDf2 != 0) goto LStartg;
		mes "[ wԤ  iO ]";
		mes " ";
		mes "1.";
		mes "ھڳo̪AwԤO";
		mes "o̤GASҦv";
		mes "Ka";
		next;
		mes " ";
		mes "2.";
		mes "ԳӦubo̪AiȪ礧";
		mes "}aRݪH!";
		mes "|礩";
		mes "g{Ҫ";
		mes "KaҦv!";
		close;
LStartg:
		if (getcharid(2) == @GIDf2) goto LStartg2;
		mes "[ wԤ  iO ]";
		mes " ";
		mes "1.";
		mes "ھڳo̪AwԤO";
		mes "o̳Q{w ^ff0000 " + GetGuildName(@GIDf2) + " ^000000u|";
		mes "p!";
		next;
		mes " ";
		mes "2.";
		mes "^ff0000 " + GetGuildName(@GIDf2) + " ^000000 u|DHO";
		mes "^ff0000 " + getguildmaster(@GIDf2) + " ^000000L׬O";
		mes "oƱN";
		mes "ЧA|_zCAۤvWAa!";
		close;
LStartg2:
		mes "[ wԤ  iO ]";
		mes "A{bNn";
		mes "iJu|";
		next;
		menu "O",-,"ݭn",Lclose;
			warp "payg_cas02.gat",252,265;end;
LAgitStarted:
		mes "[ wԤ  iO ]";
		mes "𫰾Ԥwg}lA";
		if (getcharid(2) == @GIDf2) mes "ઽǰeiJu|C";
		if (getcharid(2) == @GIDf2) mes "аWXoAO@AC";
		if (getcharid(2) != @GIDf2) mes "nASݤFA|_zCAۤvWAaC";
		close;
Lclose:
		close;
OnRecvCastleF02:
// [FlagEmblem GuildID]: Show EMBLEM of the GuildID to the FlagNPC(ClassID=722).
	FlagEmblem getcastledata("payg_cas02.gat",1);
	set $AgitStarted,0;
	end;
OnAgitStart:
	FlagEmblem getcastledata("payg_cas02.gat",1);
	set $AgitStarted,1;
	end;
OnAgitEnd:
	FlagEmblem getcastledata("payg_cas02.gat",1);
	set $AgitStarted,0;
	end;
}

payon.gat,125,322,4	script	˪L#paym32	722,{
	set @GIDf3,getcastledata("payg_cas03.gat",1);
	if ($AgitStarted == 1) goto LAgitStarted;
	if (@GIDf3 != 0) goto LStartg;
		mes "[ wԤ  iO ]";
		mes " ";
		mes "1.";
		mes "ھڳo̪AwԤO";
		mes "o̤GASҦv";
		mes "Ka";
		next;
		mes " ";
		mes "2.";
		mes "ԳӦubo̪AiȪ礧";
		mes "}aRݪH!";
		mes "|礩";
		mes "g{Ҫ";
		mes "KaҦv!";
		close;
LStartg:
		if (getcharid(2) == @GIDf3) goto LStartg2;
		mes "[ wԤ  iO ]";
		mes " ";
		mes "1.";
		mes "ھڳo̪AwԤO";
		mes "o̳Q{w ^ff0000 " + GetGuildName(@GIDf3) + " ^000000u|";
		mes "p!";
		next;
		mes " ";
		mes "2.";
		mes "^ff0000 " + GetGuildName(@GIDf3) + " ^000000 u|DHO";
		mes "^ff0000 " + getguildmaster(@GIDf3) + " ^000000L׬O";
		mes "oƱN";
		mes "ЧA|_zCAۤvWAa!";
		close;
LStartg2:
		mes "[ wԤ  iO ]";
		mes "A{bNn";
		mes "iJu|";
		next;
		menu "O",-,"ݭn",Lclose;
			warp "payg_cas03.gat",28,253;end;
LAgitStarted:
		mes "[ wԤ  iO ]";
		mes "𫰾Ԥwg}lA";
		if (getcharid(2) == @GIDf3) mes "ઽǰeiJu|C";
		if (getcharid(2) == @GIDf3) mes "аWXoAO@AC";
		if (getcharid(2) != @GIDf3) mes "nASݤFA|_zCAۤvWAaC";
		close;
Lclose:
		close;
OnRecvCastleF03:
// [FlagEmblem GuildID]: Show EMBLEM of the GuildID to the FlagNPC(ClassID=722).
	FlagEmblem getcastledata("payg_cas03.gat",1);
	set $AgitStarted,0;
	end;
OnAgitStart:
	FlagEmblem getcastledata("payg_cas03.gat",1);
	set $AgitStarted,1;
	end;
OnAgitEnd:
	FlagEmblem getcastledata("payg_cas03.gat",1);
	set $AgitStarted,0;
	end;
}

payon.gat,98,322,4	script	Ѿ#paym42	722,{
	set @GIDf4,getcastledata("payg_cas04.gat",1);
	if ($AgitStarted == 1) goto LAgitStarted;
	if (@GIDf4 != 0) goto LStartg;
		mes "[ wԤ  iO ]";
		mes " ";
		mes "1.";
		mes "ھڳo̪AwԤO";
		mes "o̤GASҦv";
		mes "Ka";
		next;
		mes " ";
		mes "2.";
		mes "ԳӦubo̪AiȪ礧";
		mes "}aRݪH!";
		mes "|礩";
		mes "g{Ҫ";
		mes "KaҦv!";
		close;
LStartg:
		if (getcharid(2) == @GIDf4) goto LStartg2;
		mes "[ wԤ  iO ]";
		mes " ";
		mes "1.";
		mes "ھڳo̪AwԤO";
		mes "o̳Q{w ^ff0000 " + GetGuildName(@GIDf4) + " ^000000u|";
		mes "p!";
		next;
		mes " ";
		mes "2.";
		mes "^ff0000 " + GetGuildName(@GIDf4) + " ^000000 u|DHO";
		mes "^ff0000 " + getguildmaster(@GIDf4) + " ^000000L׬O";
		mes "oƱN";
		mes "ЧA|_zCAۤvWAa!";
		close;
LStartg2:
		mes "[ wԤ  iO ]";
		mes "A{bNn";
		mes "iJu|";
		next;
		menu "O",-,"ݭn",Lclose;
			warp "payg_cas04.gat",74,261;end;
LAgitStarted:
		mes "[ wԤ  iO ]";
		mes "𫰾Ԥwg}lA";
		if (getcharid(2) == @GIDf4) mes "ઽǰeiJu|C";
		if (getcharid(2) == @GIDf4) mes "аWXoAO@AC";
		if (getcharid(2) != @GIDf4) mes "nASݤFA|_zCAۤvWAaC";
		close;
Lclose:
		close;
OnRecvCastleF04:
// [FlagEmblem GuildID]: Show EMBLEM of the GuildID to the FlagNPC(ClassID=722).
	FlagEmblem getcastledata("payg_cas04.gat",1);
	set $AgitStarted,0;
	end;
OnAgitStart:
	FlagEmblem getcastledata("payg_cas04.gat",1);
	set $AgitStarted,1;
	end;
OnAgitEnd:
	FlagEmblem getcastledata("payg_cas04.gat",1);
	set $AgitStarted,0;
	end;
}

payon.gat,112,322,4	script	v#paym51	722,{
	set @GIDf5,getcastledata("payg_cas05.gat",1);
	if ($AgitStarted == 1) goto LAgitStarted;
	if (@GIDf5 != 0) goto LStartg;
		mes "[ wԤ  iO ]";
		mes " ";
		mes "1.";
		mes "ھڳo̪AwԤO";
		mes "o̤GASҦv";
		mes "Ka";
		next;
		mes " ";
		mes "2.";
		mes "ԳӦubo̪AiȪ礧";
		mes "}aRݪH!";
		mes "|礩";
		mes "g{Ҫ";
		mes "KaҦv!";
		close;
LStartg:
		if (getcharid(2) == @GIDf5) goto LStartg2;
		mes "[ wԤ  iO ]";
		mes " ";
		mes "1.";
		mes "ھڳo̪AwԤO";
		mes "o̳Q{w ^ff0000 " + GetGuildName(@GIDf5) + " ^000000u|";
		mes "p!";
		next;
		mes " ";
		mes "2.";
		mes "^ff0000 " + GetGuildName(@GIDf5) + " ^000000 u|DHO";
		mes "^ff0000 " + getguildmaster(@GIDf5) + " ^000000L׬O";
		mes "oƱN";
		mes "ЧA|_zCAۤvWAa!";
		close;
LStartg2:
		mes "[ wԤ  iO ]";
		mes "A{bNn";
		mes "iJu|";
		next;
		menu "O",-,"ݭn",Lclose;
			warp "payg_cas05.gat",282,21;end;
LAgitStarted:
		mes "[ wԤ  iO ]";
		mes "𫰾Ԥwg}lA";
		if (getcharid(2) == @GIDf5) mes "ઽǰeiJu|C";
		if (getcharid(2) == @GIDf5) mes "аWXoAO@AC";
		if (getcharid(2) != @GIDf5) mes "nASݤFA|_zCAۤvWAaC";
		close;
Lclose:
		close;
OnRecvCastleF05:
// [FlagEmblem GuildID]: Show EMBLEM of the GuildID to the FlagNPC(ClassID=722).
	FlagEmblem getcastledata("payg_cas05.gat",1);
	set $AgitStarted,0;
	end;
OnAgitStart:
	FlagEmblem getcastledata("payg_cas05.gat",1);
	set $AgitStarted,1;
	end;
OnAgitEnd:
	FlagEmblem getcastledata("payg_cas05.gat",1);
	set $AgitStarted,0;
	end;
}
