
payon.gat,165,177,4	script	ͤ#paym11	722,{
	set @GIDf1,getcastledata("payg_cas01.gat",1);
	if ($AgitStarted == 1) goto LAgitStarted;
	if (@GIDf1 != 0) goto LStartg;
		mes "[ ¡   ]";
		mes " ";
		mes "1.";
		mes "ģ¡";
		mes "﹫ΪûʽȨ";
		mes "ܻ";
		next;
		mes " ";
		mes "2.";
		mes "սʤģµĿ֮";
		mes "ƻ!";
		mes "";
		mes "֤";
		mes "ܻȨ!";
		close;
LStartg:
		if (getcharid(2) == @GIDf1) goto LStartg2;
		mes "[ ¡   ]";
		mes " ";
		mes "1.";
		mes "ģ¡";
		mes "ﱻ϶Ϊ ^ff0000 " + GetGuildName(@GIDf1) + " ^000000";
		mes "˽!";
		next;
		mes " ";
		mes "2.";
		mes "^ff0000 " + GetGuildName(@GIDf1) + " ^000000 ";
		mes "^ff0000 " + getguildmaster(@GIDf1) + " ^000000˭";
		mes "";
		mes "ĽԼ!";
		close;
LStartg2:
		mes "[ ¡   ]";
		mes "ڽҪ";
		mes "빤Ǳ";
		next;
		menu "ǵ",-,"Ҫ",Lclose;
			warp "payg_cas01.gat",86,44;end;
LAgitStarted:
		mes "[ ¡   ]";
		mes "սѾʼ";
		if (getcharid(2) == @GIDf1) mes "ֱӴͽ빤Ǳ";
		if (getcharid(2) == @GIDf1) mes "ϳĳǱ";
		if (getcharid(2) != @GIDf1) mes "ҪԥˣĽԼɡ";
		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 "[ ¡   ]";
		mes " ";
		mes "1.";
		mes "ģ¡";
		mes "﹫ΪûʽȨ";
		mes "ܻ";
		next;
		mes " ";
		mes "2.";
		mes "սʤģµĿ֮";
		mes "ƻ!";
		mes "";
		mes "֤";
		mes "ܻȨ!";
		close;
LStartg:
		if (getcharid(2) == @GIDf2) goto LStartg2;
		mes "[ ¡   ]";
		mes " ";
		mes "1.";
		mes "ģ¡";
		mes "ﱻ϶Ϊ ^ff0000 " + GetGuildName(@GIDf2) + " ^000000";
		mes "˽!";
		next;
		mes " ";
		mes "2.";
		mes "^ff0000 " + GetGuildName(@GIDf2) + " ^000000 ";
		mes "^ff0000 " + getguildmaster(@GIDf2) + " ^000000˭";
		mes "";
		mes "ĽԼ!";
		close;
LStartg2:
		mes "[ ¡   ]";
		mes "ڽҪ";
		mes "빤Ǳ";
		next;
		menu "ǵ",-,"Ҫ",Lclose;
			warp "payg_cas02.gat",252,265;end;
LAgitStarted:
		mes "[ ¡   ]";
		mes "սѾʼ";
		if (getcharid(2) == @GIDf2) mes "ֱӴͽ빤Ǳ";
		if (getcharid(2) == @GIDf2) mes "ϳĳǱ";
		if (getcharid(2) != @GIDf2) mes "ҪԥˣĽԼɡ";
		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	#paym31	722,{
	set @GIDf3,getcastledata("payg_cas03.gat",1);
	if ($AgitStarted == 1) goto LAgitStarted;
	if (@GIDf3 != 0) goto LStartg;
		mes "[ ¡   ]";
		mes " ";
		mes "1.";
		mes "ģ¡";
		mes "﹫ΪûʽȨ";
		mes "ܻ";
		next;
		mes " ";
		mes "2.";
		mes "սʤģµĿ֮";
		mes "ƻ!";
		mes "";
		mes "֤";
		mes "ܻȨ!";
		close;
LStartg:
		if (getcharid(2) == @GIDf3) goto LStartg2;
		mes "[ ¡   ]";
		mes " ";
		mes "1.";
		mes "ģ¡";
		mes "ﱻ϶Ϊ ^ff0000 " + GetGuildName(@GIDf3) + " ^000000";
		mes "˽!";
		next;
		mes " ";
		mes "2.";
		mes "^ff0000 " + GetGuildName(@GIDf3) + " ^000000 ";
		mes "^ff0000 " + getguildmaster(@GIDf3) + " ^000000˭";
		mes "";
		mes "ĽԼ!";
		close;
LStartg2:
		mes "[ ¡   ]";
		mes "ڽҪ";
		mes "빤Ǳ";
		next;
		menu "ǵ",-,"Ҫ",Lclose;
			warp "payg_cas03.gat",28,253;end;
LAgitStarted:
		mes "[ ¡   ]";
		mes "սѾʼ";
		if (getcharid(2) == @GIDf3) mes "ֱӴͽ빤Ǳ";
		if (getcharid(2) == @GIDf3) mes "ϳĳǱ";
		if (getcharid(2) != @GIDf3) mes "ҪԥˣĽԼɡ";
		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 "[ ¡   ]";
		mes " ";
		mes "1.";
		mes "ģ¡";
		mes "﹫ΪûʽȨ";
		mes "ܻ";
		next;
		mes " ";
		mes "2.";
		mes "սʤģµĿ֮";
		mes "ƻ!";
		mes "";
		mes "֤";
		mes "ܻȨ!";
		close;
LStartg:
		if (getcharid(2) == @GIDf4) goto LStartg2;
		mes "[ ¡   ]";
		mes " ";
		mes "1.";
		mes "ģ¡";
		mes "ﱻ϶Ϊ ^ff0000 " + GetGuildName(@GIDf4) + " ^000000";
		mes "˽!";
		next;
		mes " ";
		mes "2.";
		mes "^ff0000 " + GetGuildName(@GIDf4) + " ^000000 ";
		mes "^ff0000 " + getguildmaster(@GIDf4) + " ^000000˭";
		mes "";
		mes "ĽԼ!";
		close;
LStartg2:
		mes "[ ¡   ]";
		mes "ڽҪ";
		mes "빤Ǳ";
		next;
		menu "ǵ",-,"Ҫ",Lclose;
			warp "payg_cas04.gat",74,261;end;
LAgitStarted:
		mes "[ ¡   ]";
		mes "սѾʼ";
		if (getcharid(2) == @GIDf4) mes "ֱӴͽ빤Ǳ";
		if (getcharid(2) == @GIDf4) mes "ϳĳǱ";
		if (getcharid(2) != @GIDf4) mes "ҪԥˣĽԼɡ";
		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	Ӱ#paym52	722,{
	set @GIDf5,getcastledata("payg_cas05.gat",1);
	if ($AgitStarted == 1) goto LAgitStarted;
	if (@GIDf5 != 0) goto LStartg;
		mes "[ ¡   ]";
		mes " ";
		mes "1.";
		mes "ģ¡";
		mes "﹫ΪûʽȨ";
		mes "ܻ";
		next;
		mes " ";
		mes "2.";
		mes "սʤģµĿ֮";
		mes "ƻ!";
		mes "";
		mes "֤";
		mes "ܻȨ!";
		close;
LStartg:
		if (getcharid(2) == @GIDf5) goto LStartg2;
		mes "[ ¡   ]";
		mes " ";
		mes "1.";
		mes "ģ¡";
		mes "ﱻ϶Ϊ ^ff0000 " + GetGuildName(@GIDf5) + " ^000000";
		mes "˽!";
		next;
		mes " ";
		mes "2.";
		mes "^ff0000 " + GetGuildName(@GIDf5) + " ^000000 ";
		mes "^ff0000 " + getguildmaster(@GIDf5) + " ^000000˭";
		mes "";
		mes "ĽԼ!";
		close;
LStartg2:
		mes "[ ¡   ]";
		mes "ڽҪ";
		mes "빤Ǳ";
		next;
		menu "ǵ",-,"Ҫ",Lclose;
			warp "payg_cas05.gat",282,21;end;
LAgitStarted:
		mes "[ ¡   ]";
		mes "սѾʼ";
		if (getcharid(2) == @GIDf5) mes "ֱӴͽ빤Ǳ";
		if (getcharid(2) == @GIDf5) mes "ϳĳǱ";
		if (getcharid(2) != @GIDf5) mes "ҪԥˣĽԼɡ";
		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;
}


//============================= ڶλ ==============================================


payon.gat,90,322,4	script	ͤ#paym12	722,{
	set @GIDf1,getcastledata("payg_cas01.gat",1);
	if ($AgitStarted == 1) goto LAgitStarted;
	if (@GIDf1 != 0) goto LStartg;
		mes "[ ¡   ]";
		mes " ";
		mes "1.";
		mes "ģ¡";
		mes "﹫ΪûʽȨ";
		mes "ܻ";
		next;
		mes " ";
		mes "2.";
		mes "սʤģµĿ֮";
		mes "ƻ!";
		mes "";
		mes "֤";
		mes "ܻȨ!";
		close;
LStartg:
		if (getcharid(2) == @GIDf1) goto LStartg2;
		mes "[ ¡   ]";
		mes " ";
		mes "1.";
		mes "ģ¡";
		mes "ﱻ϶Ϊ ^ff0000 " + GetGuildName(@GIDf1) + " ^000000";
		mes "˽!";
		next;
		mes " ";
		mes "2.";
		mes "^ff0000 " + GetGuildName(@GIDf1) + " ^000000 ";
		mes "^ff0000 " + getguildmaster(@GIDf1) + " ^000000˭";
		mes "";
		mes "ĽԼ!";
		close;
LStartg2:
		mes "[ ¡   ]";
		mes "ڽҪ";
		mes "빤Ǳ";
		next;
		menu "ǵ",-,"Ҫ",Lclose;
			warp "payg_cas01.gat",86,44;end;
LAgitStarted:
		mes "[ ¡   ]";
		mes "սѾʼ";
		if (getcharid(2) == @GIDf1) mes "ֱӴͽ빤Ǳ";
		if (getcharid(2) == @GIDf1) mes "ϳĳǱ";
		if (getcharid(2) != @GIDf1) mes "ҪԥˣĽԼɡ";
		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 "[ ¡   ]";
		mes " ";
		mes "1.";
		mes "ģ¡";
		mes "﹫ΪûʽȨ";
		mes "ܻ";
		next;
		mes " ";
		mes "2.";
		mes "սʤģµĿ֮";
		mes "ƻ!";
		mes "";
		mes "֤";
		mes "ܻȨ!";
		close;
LStartg:
		if (getcharid(2) == @GIDf2) goto LStartg2;
		mes "[ ¡   ]";
		mes " ";
		mes "1.";
		mes "ģ¡";
		mes "ﱻ϶Ϊ ^ff0000 " + GetGuildName(@GIDf2) + " ^000000";
		mes "˽!";
		next;
		mes " ";
		mes "2.";
		mes "^ff0000 " + GetGuildName(@GIDf2) + " ^000000 ";
		mes "^ff0000 " + getguildmaster(@GIDf2) + " ^000000˭";
		mes "";
		mes "ĽԼ!";
		close;
LStartg2:
		mes "[ ¡   ]";
		mes "ڽҪ";
		mes "빤Ǳ";
		next;
		menu "ǵ",-,"Ҫ",Lclose;
			warp "payg_cas02.gat",252,265;end;
LAgitStarted:
		mes "[ ¡   ]";
		mes "սѾʼ";
		if (getcharid(2) == @GIDf2) mes "ֱӴͽ빤Ǳ";
		if (getcharid(2) == @GIDf2) mes "ϳĳǱ";
		if (getcharid(2) != @GIDf2) mes "ҪԥˣĽԼɡ";
		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	#paym32	722,{
	set @GIDf3,getcastledata("payg_cas03.gat",1);
	if ($AgitStarted == 1) goto LAgitStarted;
	if (@GIDf3 != 0) goto LStartg;
		mes "[ ¡   ]";
		mes " ";
		mes "1.";
		mes "ģ¡";
		mes "﹫ΪûʽȨ";
		mes "ܻ";
		next;
		mes " ";
		mes "2.";
		mes "սʤģµĿ֮";
		mes "ƻ!";
		mes "";
		mes "֤";
		mes "ܻȨ!";
		close;
LStartg:
		if (getcharid(2) == @GIDf3) goto LStartg2;
		mes "[ ¡   ]";
		mes " ";
		mes "1.";
		mes "ģ¡";
		mes "ﱻ϶Ϊ ^ff0000 " + GetGuildName(@GIDf3) + " ^000000";
		mes "˽!";
		next;
		mes " ";
		mes "2.";
		mes "^ff0000 " + GetGuildName(@GIDf3) + " ^000000 ";
		mes "^ff0000 " + getguildmaster(@GIDf3) + " ^000000˭";
		mes "";
		mes "ĽԼ!";
		close;
LStartg2:
		mes "[ ¡   ]";
		mes "ڽҪ";
		mes "빤Ǳ";
		next;
		menu "ǵ",-,"Ҫ",Lclose;
			warp "payg_cas03.gat",28,253;end;
LAgitStarted:
		mes "[ ¡   ]";
		mes "սѾʼ";
		if (getcharid(2) == @GIDf3) mes "ֱӴͽ빤Ǳ";
		if (getcharid(2) == @GIDf3) mes "ϳĳǱ";
		if (getcharid(2) != @GIDf3) mes "ҪԥˣĽԼɡ";
		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 "[ ¡   ]";
		mes " ";
		mes "1.";
		mes "ģ¡";
		mes "﹫ΪûʽȨ";
		mes "ܻ";
		next;
		mes " ";
		mes "2.";
		mes "սʤģµĿ֮";
		mes "ƻ!";
		mes "";
		mes "֤";
		mes "ܻȨ!";
		close;
LStartg:
		if (getcharid(2) == @GIDf4) goto LStartg2;
		mes "[ ¡   ]";
		mes " ";
		mes "1.";
		mes "ģ¡";
		mes "ﱻ϶Ϊ ^ff0000 " + GetGuildName(@GIDf4) + " ^000000";
		mes "˽!";
		next;
		mes " ";
		mes "2.";
		mes "^ff0000 " + GetGuildName(@GIDf4) + " ^000000 ";
		mes "^ff0000 " + getguildmaster(@GIDf4) + " ^000000˭";
		mes "";
		mes "ĽԼ!";
		close;
LStartg2:
		mes "[ ¡   ]";
		mes "ڽҪ";
		mes "빤Ǳ";
		next;
		menu "ǵ",-,"Ҫ",Lclose;
			warp "payg_cas04.gat",74,261;end;
LAgitStarted:
		mes "[ ¡   ]";
		mes "սѾʼ";
		if (getcharid(2) == @GIDf4) mes "ֱӴͽ빤Ǳ";
		if (getcharid(2) == @GIDf4) mes "ϳĳǱ";
		if (getcharid(2) != @GIDf4) mes "ҪԥˣĽԼɡ";
		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	Ӱ#paym51	722,{
	set @GIDf5,getcastledata("payg_cas05.gat",1);
	if ($AgitStarted == 1) goto LAgitStarted;
	if (@GIDf5 != 0) goto LStartg;
		mes "[ ¡   ]";
		mes " ";
		mes "1.";
		mes "ģ¡";
		mes "﹫ΪûʽȨ";
		mes "ܻ";
		next;
		mes " ";
		mes "2.";
		mes "սʤģµĿ֮";
		mes "ƻ!";
		mes "";
		mes "֤";
		mes "ܻȨ!";
		close;
LStartg:
		if (getcharid(2) == @GIDf5) goto LStartg2;
		mes "[ ¡   ]";
		mes " ";
		mes "1.";
		mes "ģ¡";
		mes "ﱻ϶Ϊ ^ff0000 " + GetGuildName(@GIDf5) + " ^000000";
		mes "˽!";
		next;
		mes " ";
		mes "2.";
		mes "^ff0000 " + GetGuildName(@GIDf5) + " ^000000 ";
		mes "^ff0000 " + getguildmaster(@GIDf5) + " ^000000˭";
		mes "";
		mes "ĽԼ!";
		close;
LStartg2:
		mes "[ ¡   ]";
		mes "ڽҪ";
		mes "빤Ǳ";
		next;
		menu "ǵ",-,"Ҫ",Lclose;
			warp "payg_cas05.gat",282,21;end;
LAgitStarted:
		mes "[ ¡   ]";
		mes "սѾʼ";
		if (getcharid(2) == @GIDf5) mes "ֱӴͽ빤Ǳ";
		if (getcharid(2) == @GIDf5) mes "ϳĳǱ";
		if (getcharid(2) != @GIDf5) mes "ҪԥˣĽԼɡ";
		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;
}
