* @param regMenu boolean
* @return boolean
*/
private boolean checkCond(Player player, boolean regMenu)
{
Clan clan = player.getClan();
ClanHall clanHall = getClanHall();
ClanHallTeamBattleEvent siegeEvent = clanHall.getSiegeEvent();
List<CTBSiegeClanObject> siegeClans = siegeEvent.getObjects(SiegeEvent.ATTACKERS);
SiegeClanObject siegeClan = siegeEvent.getSiegeClan(SiegeEvent.ATTACKERS, clan);
if (siegeEvent.isRegistrationOver())
{
showChatWindow(player, "quests/_655_AGrandPlanForTamingWildBeasts/farm_messenger_q0655_11.htm", "%siege_time%", TimeUtils.toSimpleFormat(clanHall.getSiegeDate()));
return false;
}
if (regMenu && (siegeClan != null))
{
return true;
}
if ((clan == null) || (player.getObjectId() != clan.getLeaderId()))
{
showChatWindow(player, "quests/_655_AGrandPlanForTamingWildBeasts/farm_messenger_q0655_03.htm");
return false;
}
if ((player.getObjectId() == clan.getLeaderId()) && (clan.getLevel() < 4))
{
showChatWindow(player, "quests/_655_AGrandPlanForTamingWildBeasts/farm_messenger_q0655_05.htm");
return false;
}
if (clan.getHasHideout() == clanHall.getId())
{
showChatWindow(player, "residence2/clanhall/farm_kel_mahum_messenger_22.htm");
return false;
}
if (clan.getHasHideout() > 0)
{
showChatWindow(player, "quests/_655_AGrandPlanForTamingWildBeasts/farm_messenger_q0655_04.htm");
return false;
}
if (siegeClans.size() >= 5)