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);
}
}
}