Examples of canDuel()


Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.canDuel()

    if(!activeChar.canDuel())
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.YOU_ARE_UNABLE_TO_REQUEST_A_DUEL_AT_THIS_TIME));
      return;
    }
    else if(!targetChar.canDuel())
    {
      activeChar.sendPacket(targetChar.getNoDuelReason());
      return;
    }
    // Players may not be too far apart
View Full Code Here

Examples of lineage2.gameserver.model.entity.events.impl.DuelEvent.canDuel()

      case -1:
        request.cancel();
        requestor.sendPacket(new SystemMessage2(SystemMsg.C1_IS_SET_TO_REFUSE_DUEL_REQUESTS_AND_CANNOT_RECEIVE_A_DUEL_REQUEST).addName(activeChar));
        break;
      case 1:
        if (!duelEvent.canDuel(requestor, activeChar, false))
        {
          request.cancel();
          return;
        }
        SystemMessage2 msg1,
View Full Code Here

Examples of lineage2.gameserver.model.entity.events.impl.DuelEvent.canDuel()

    DuelEvent duelEvent = EventHolder.getInstance().getEvent(EventType.PVP_EVENT, _duelType);
    if (duelEvent == null)
    {
      return;
    }
    if (!duelEvent.canDuel(player, target, true))
    {
      return;
    }
    if (target.isBusy())
    {
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.canDuel()

        if (!activeChar.canDuel())
        {
          activeChar.sendPacket(new SystemMessage(SystemMessageId.YOU_ARE_UNABLE_TO_REQUEST_A_DUEL_AT_THIS_TIME));
          return;
        }
        else if (!targetChar.canDuel())
        {
          activeChar.sendPacket(targetChar.getNoDuelReason());
          return;
        }
        // Players may not be too far apart
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.