Package net.sf.l2j.gameserver.serverpackets

Examples of net.sf.l2j.gameserver.serverpackets.ExDuelAskStart


      // Send request to targetChar's party leader
      if (!partyLeader.isProcessingRequest())
      {
        activeChar.onTransactionRequest(partyLeader);
        partyLeader.sendPacket(new ExDuelAskStart(activeChar.getName(), _partyDuel));

        if (Config.DEBUG)
              _log.fine(activeChar.getName() + " requested a duel with " + partyLeader.getName());

        SystemMessage msg = new SystemMessage(SystemMessageId.S1S_PARTY_HAS_BEEN_CHALLENGED_TO_A_DUEL);
        msg.addString(partyLeader.getName());
        activeChar.sendPacket(msg);

        msg = new SystemMessage(SystemMessageId.S1S_PARTY_HAS_CHALLENGED_YOUR_PARTY_TO_A_DUEL);
        msg.addString(activeChar.getName());
        targetChar.sendPacket(msg);
      }
      else
      {
        SystemMessage msg = new SystemMessage(SystemMessageId.S1_IS_BUSY_TRY_LATER);
        msg.addString(partyLeader.getName());
        activeChar.sendPacket(msg);
      }
    }
    else // 1vs1 duel
    {
      if (!targetChar.isProcessingRequest())
      {
        activeChar.onTransactionRequest(targetChar);
        targetChar.sendPacket(new ExDuelAskStart(activeChar.getName(), _partyDuel));

        if (Config.DEBUG)
              _log.fine(activeChar.getName() + " requested a duel with " + targetChar.getName());

        SystemMessage msg = new SystemMessage(SystemMessageId.S1_HAS_BEEN_CHALLENGED_TO_A_DUEL);
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.serverpackets.ExDuelAskStart

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.