Package l2p.gameserver.clientpackets

Source Code of l2p.gameserver.clientpackets.RequestHennaItemInfo

package l2p.gameserver.clientpackets;

import l2p.gameserver.model.L2Player;
import l2p.gameserver.model.instances.L2HennaInstance;
import l2p.gameserver.serverpackets.HennaItemInfo;
import l2p.gameserver.tables.HennaTable;
import l2p.gameserver.templates.L2Henna;

public class RequestHennaItemInfo extends L2GameClientPacket
{
  // format  cd
  private int SymbolId;

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

  @Override
  public void runImpl()
  {
    L2Player activeChar = getClient().getActiveChar();
    if(activeChar == null)
    {
      return;
    }
    L2Henna template = HennaTable.getInstance().getTemplate(SymbolId);
    if(template != null)
    {
      activeChar.sendPacket(new HennaItemInfo(new L2HennaInstance(template), activeChar));
    }
  }
}
TOP

Related Classes of l2p.gameserver.clientpackets.RequestHennaItemInfo

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.