Package l2p.gameserver.clientpackets

Source Code of l2p.gameserver.clientpackets.RequestTutorialQuestionMark

package l2p.gameserver.clientpackets;

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

public class RequestTutorialQuestionMark extends L2GameClientPacket
{
  // format: cd
  int _number = 0;

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

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

Related Classes of l2p.gameserver.clientpackets.RequestTutorialQuestionMark

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.