Package l2p.gameserver.clientpackets

Source Code of l2p.gameserver.clientpackets.RequestSaveBookMarkSlot

package l2p.gameserver.clientpackets;

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

/**
* SdS
*/
public class RequestSaveBookMarkSlot extends L2GameClientPacket
{
  private String name, acronym;
  private int icon;

  @Override
  public void readImpl()
  {
    name = readS(32);
    icon = readD();
    acronym = readS(4);
  }

  @Override
  public void runImpl()
  {
    L2Player activeChar = getClient().getActiveChar();
    if(activeChar != null && activeChar.bookmarks.add(name, acronym, icon))
    {
      activeChar.sendPacket(new ExGetBookMarkInfo(activeChar));
    }
  }
}
TOP

Related Classes of l2p.gameserver.clientpackets.RequestSaveBookMarkSlot

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.