Package l2p.gameserver.clientpackets

Source Code of l2p.gameserver.clientpackets.RequestExMPCCShowPartyMembersInfo

package l2p.gameserver.clientpackets;

import l2p.gameserver.model.L2ObjectsStorage;
import l2p.gameserver.model.L2Player;
import l2p.gameserver.serverpackets.ExMPCCShowPartyMemberInfo;

/**
* Format: ch d
* Пример пакета:
* D0 2E 00 4D 90 00 10
*
* @author SYS
*/
public class RequestExMPCCShowPartyMembersInfo extends L2GameClientPacket
{
  private int _objectId;

  @Override
  public void readImpl()
  {
    _objectId = readD();
  }

  @Override
  public void runImpl()
  {
    L2Player activeChar = getClient().getActiveChar();
    if(activeChar == null || !activeChar.isInParty() || !activeChar.getParty().isInCommandChannel())
    {
      return;
    }
    L2Player partyLeader = L2ObjectsStorage.getPlayer(_objectId);
    if(partyLeader != null)
    {
      activeChar.sendPacket(new ExMPCCShowPartyMemberInfo(partyLeader));
    }
  }
}
TOP

Related Classes of l2p.gameserver.clientpackets.RequestExMPCCShowPartyMembersInfo

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.