Package l2p.gameserver.clientpackets

Source Code of l2p.gameserver.clientpackets.RequestRecipeShopManageCancel

package l2p.gameserver.clientpackets;

import l2p.gameserver.model.L2Player;
import l2p.gameserver.serverpackets.RecipeShopSellList;

// Deprecated?
public class RequestRecipeShopManageCancel extends L2GameClientPacket
{
  @Override
  public void readImpl()
  {
  }

  @Override
  public void runImpl()
  {
    L2Player activeChar = getClient().getActiveChar();
    if(activeChar == null || activeChar.getTarget() == null)
    {
      return;
    }
    if(activeChar.getDuel() != null)
    {
      activeChar.sendActionFailed();
      return;
    }
    if(activeChar.isAlikeDead())
    {
      activeChar.sendActionFailed();
      return;
    }
    if(!activeChar.getTarget().isPlayer())
    {
      activeChar.sendActionFailed();
      return;
    }
    L2Player target = (L2Player) activeChar.getTarget();
    activeChar.sendPacket(new RecipeShopSellList(activeChar, target));
  }
}
TOP

Related Classes of l2p.gameserver.clientpackets.RequestRecipeShopManageCancel

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.