return;
}
final Player pcTarget = target.getPlayer();
if (pcTarget.isProcessingRequest() && pcTarget.getRequest().isTypeOf(L2RequestType.COUPLE_ACTION))
{
activeChar.sendPacket(new SystemMessage2(SystemMsg.C1_IS_ALREADY_PARTICIPATING_IN_A_COUPLE_ACTION_AND_CANNOT_BE_REQUESTED_FOR_ANOTHER_COUPLE_ACTION).addName(pcTarget));
return;
}
if (pcTarget.isProcessingRequest())
{
activeChar.sendPacket(new SystemMessage2(SystemMsg.C1_IS_ON_ANOTHER_TASK).addName(pcTarget));
return;
}
if (!activeChar.isInRange(pcTarget, 300) || activeChar.isInRange(pcTarget, 25) || (activeChar.getTargetId() == activeChar.getObjectId()) || !GeoEngine.canSeeTarget(activeChar, pcTarget, false))
{
activeChar.sendPacket(SystemMsg.THE_REQUEST_CANNOT_BE_COMPLETED_BECAUSE_THE_TARGET_DOES_NOT_MEET_LOCATION_REQUIREMENTS);
return;
}
if (!activeChar.checkCoupleAction(pcTarget))
{
activeChar.sendActionFailed();
return;
}
new Request(L2RequestType.COUPLE_ACTION, activeChar, pcTarget).setTimeout(10000L);
activeChar.sendPacket(new SystemMessage2(SystemMsg.YOU_HAVE_REQUESTED_A_COUPLE_ACTION_WITH_C1).addName(pcTarget));
pcTarget.sendPacket(new ExAskCoupleAction(activeChar.getObjectId(), action.value));
if (Config.ALT_SOCIAL_ACTION_REUSE)
{
ThreadPoolManager.getInstance().schedule(new SocialTask(activeChar), 2600);
activeChar.startParalyzed();