Package l2p.gameserver.clientpackets

Source Code of l2p.gameserver.clientpackets.RequestTutorialPassCmdToServer

package l2p.gameserver.clientpackets;

import l2p.gameserver.instancemanager.QuestManager;
import l2p.gameserver.model.L2Player;
import l2p.gameserver.model.quest.Quest;

public class RequestTutorialPassCmdToServer extends L2GameClientPacket
{
  // format: cS
  String _bypass = null;

  @Override
  public void readImpl()
  {
    _bypass = readS();
  }

  @Override
  public void runImpl()
  {
    L2Player player = getClient().getActiveChar();
    if(player == null)
    {
      return;
    }
    Quest tutorial = QuestManager.getQuest(255);
    if(tutorial != null)
    {
      player.processQuestEvent(tutorial.getName(), _bypass, null);
    }
  }
}
TOP

Related Classes of l2p.gameserver.clientpackets.RequestTutorialPassCmdToServer

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.