Package l2p.gameserver.serverpackets

Examples of l2p.gameserver.serverpackets.ExDuelAskStart


      }
      // 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()));
    }
View Full Code Here

TOP

Related Classes of l2p.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.