Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.L2Clan.checkAllyJoinCondition()


      if(!(requestor.getRequest().getRequestPacket() instanceof RequestJoinAlly))
        return; // hax

      L2Clan clan = requestor.getClan();
      // we must double check this cause of hack
      if(clan.checkAllyJoinCondition(requestor, activeChar))
      {
        //TODO: Need correct message id
        requestor.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_SUCCEEDED_INVITING_FRIEND));
        activeChar.sendPacket(new SystemMessage(SystemMessageId.YOU_ACCEPTED_ALLIANCE));
        activeChar.getClan().setAllyId(clan.getAllyId());
View Full Code Here


    }

    L2PcInstance target = (L2PcInstance) L2World.getInstance().findObject(_id);
    L2Clan clan = activeChar.getClan();

    if(!clan.checkAllyJoinCondition(activeChar, target))
      return;

    if(!activeChar.getRequest().setRequest(target, this))
      return;
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.