Package l2p.gameserver.clientpackets

Source Code of l2p.gameserver.clientpackets.SetPrivateStoreWholeMsg

package l2p.gameserver.clientpackets;

import l2p.gameserver.model.L2Player;
import l2p.gameserver.model.L2TradeList;
import l2p.gameserver.serverpackets.PrivateStoreMsgSell;

public class SetPrivateStoreWholeMsg extends L2GameClientPacket
{
  private String _storename;

  @Override
  public void readImpl()
  {
    _storename = readS(32);
  }

  @Override
  public void runImpl()
  {
    L2Player activeChar = getClient().getActiveChar();
    if(activeChar == null)
    {
      return;
    }
    L2TradeList tradeList = activeChar.getTradeList();
    if(tradeList != null)
    {
      tradeList.setSellStoreName(_storename);
      sendPacket(new PrivateStoreMsgSell(activeChar, true));
    }
  }
}
TOP

Related Classes of l2p.gameserver.clientpackets.SetPrivateStoreWholeMsg

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.