Package l2p.gameserver.clientpackets

Source Code of l2p.gameserver.clientpackets.RequestShortCutDel

package l2p.gameserver.clientpackets;

import l2p.gameserver.model.L2Player;

public class RequestShortCutDel extends L2GameClientPacket
{
  private int _slot;
  private int _page;

  /**
   * packet type id 0x3F
   * format:    cd
   */
  @Override
  public void readImpl()
  {
    int id = readD();
    _slot = id % 12;
    _page = id / 12;
  }

  @Override
  public void runImpl()
  {
    L2Player activeChar = getClient().getActiveChar();
    if(activeChar == null)
    {
      return;
    }
    // client dont needs confirmation. this packet is just to inform the server
    activeChar.deleteShortCut(_slot, _page);
  }
}
TOP

Related Classes of l2p.gameserver.clientpackets.RequestShortCutDel

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.