}
// Send request to target's party leader
if(!targetLeader.isInTransaction())
{
new Transaction(TransactionType.DUEL, activeChar, targetLeader, 10000);
targetLeader.sendPacket(new ExDuelAskStart(activeChar.getName(), _duelType));
SystemMessage msg = new SystemMessage(SystemMessage.S1S_PARTY_HAS_BEEN_CHALLENGED_TO_A_DUEL);
msg.addString(targetLeader.getName());
activeChar.sendPacket(msg);
msg = new SystemMessage(SystemMessage.S1S_PARTY_HAS_CHALLENGED_YOUR_PARTY_TO_A_DUEL);
msg.addString(activeChar.getName());
targetChar.sendPacket(msg);
}
else
{
activeChar.sendPacket(new SystemMessage(SystemMessage.S1_IS_BUSY_PLEASE_TRY_AGAIN_LATER).addString(targetLeader.getName()));
}
}
else if(!targetChar.isInTransaction())
{
Transaction transaction = new Transaction(TransactionType.DUEL, activeChar, targetChar, 10000);
activeChar.setTransaction(transaction);
targetChar.setTransaction(transaction);
SystemMessage msg = new SystemMessage(SystemMessage.S1_HAS_BEEN_CHALLENGED_TO_A_DUEL);
msg.addString(targetChar.getName());
activeChar.sendPacket(msg);
msg = new SystemMessage(SystemMessage.S1_HAS_CHALLENGED_YOU_TO_A_DUEL);
msg.addString(activeChar.getName());
targetChar.sendPacket(new ExDuelAskStart(activeChar.getName(), _duelType), msg);
}
else
{
activeChar.sendPacket(new SystemMessage(SystemMessage.S1_IS_BUSY_PLEASE_TRY_AGAIN_LATER).addString(targetChar.getName()));
}