Package l2p.gameserver.clientpackets

Source Code of l2p.gameserver.clientpackets.RequestSSQStatus

package l2p.gameserver.clientpackets;

import l2p.gameserver.model.L2Player;
import l2p.gameserver.model.entity.SevenSigns;
import l2p.gameserver.serverpackets.SSQStatus;

/**
* Seven Signs Record Update Request
* packet type id 0xc8
* format: cc
*/
public class RequestSSQStatus extends L2GameClientPacket
{
  private int _page;

  @Override
  public void readImpl()
  {
    _page = readC();
  }

  @Override
  public void runImpl()
  {
    L2Player activeChar = getClient().getActiveChar();
    if(activeChar == null)
    {
      return;
    }
    if((SevenSigns.getInstance().isSealValidationPeriod() || SevenSigns.getInstance().isCompResultsPeriod()) && _page == 4)
    {
      return;
    }
    sendPacket(new SSQStatus(activeChar, _page));
  }
}
TOP

Related Classes of l2p.gameserver.clientpackets.RequestSSQStatus

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.