Package l2p.gameserver.clientpackets

Source Code of l2p.gameserver.clientpackets.CharacterRestore

package l2p.gameserver.clientpackets;

import l2p.gameserver.network.L2GameClient;
import l2p.gameserver.serverpackets.CharacterSelectionInfo;

public class CharacterRestore extends L2GameClientPacket
{
  // cd
  private int _charSlot;

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

  @Override
  public void runImpl()
  {
    L2GameClient client = getClient();
    try
    {
      client.markRestoredChar(_charSlot);
    }
    catch(Exception e)
    {
    }
    CharacterSelectionInfo cl = new CharacterSelectionInfo(client.getLoginName(), client.getSessionId().playOkID1);
    sendPacket(cl);
    client.setCharSelection(cl.getCharInfo());
  }
}
TOP

Related Classes of l2p.gameserver.clientpackets.CharacterRestore

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.