{
activeChar.sendMessage(new CustomMessage("l2p.gameserver.clientpackets.RequestOustAlly.ApprenticeAlreadyHasSponsor", activeChar));
return;
}
sponsor.setApprentice(apprentice.getObjectId());
clan.broadcastToOnlineMembers(new PledgeShowMemberListUpdate(apprentice));
clan.broadcastToOnlineMembers(new SystemMessage(SystemMessage.S2_HAS_BEEN_DESIGNATED_AS_THE_APPRENTICE_OF_CLAN_MEMBER_S1).addString(sponsor.getName()).addString(apprentice.getName()));
}
else
{
if(!sponsor.hasApprentice())
{
activeChar.sendMessage(new CustomMessage("l2p.gameserver.clientpackets.RequestOustAlly.MemberHasNoApprentice", activeChar));
return;
}
sponsor.setApprentice(0);
clan.broadcastToOnlineMembers(new PledgeShowMemberListUpdate(apprentice));
clan.broadcastToOnlineMembers(new SystemMessage(SystemMessage.S2_CLAN_MEMBER_S1S_APPRENTICE_HAS_BEEN_REMOVED).addString(sponsor.getName()).addString(apprentice.getName()));
}
if(apprentice.isOnline())
{
apprentice.getPlayer().broadcastUserInfo(true);