Package l2p.gameserver.clientpackets

Source Code of l2p.gameserver.clientpackets.RequestPledgeCrestLarge

package l2p.gameserver.clientpackets;

import l2p.gameserver.cache.CrestCache;
import l2p.gameserver.model.L2Player;
import l2p.gameserver.serverpackets.ExPledgeCrestLarge;

public class RequestPledgeCrestLarge extends L2GameClientPacket
{
  // format: chd
  private int _crestId;

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

  @Override
  public void runImpl()
  {
    L2Player activeChar = getClient().getActiveChar();
    if(activeChar == null)
    {
      return;
    }
    if(_crestId == 0)
    {
      return;
    }
    byte[] data = CrestCache.getPledgeCrestLarge(_crestId);
    if(data != null)
    {
      ExPledgeCrestLarge pcl = new ExPledgeCrestLarge(_crestId, data);
      sendPacket(pcl);
    }
  }
}
TOP

Related Classes of l2p.gameserver.clientpackets.RequestPledgeCrestLarge

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.