Package lineage2.gameserver.model.quest

Examples of lineage2.gameserver.model.quest.Quest$DeSpawnScheduleTimerTask


      Player player = cha.getPlayer();
     
      QuestState qs = player.getQuestState(_10301_ShadowOfTerrorBlackishRedFog.class);
      if(qs != null && qs.getCond() == 3 && player.getVar("instance10301") == null)
      {
        Quest q = QuestManager.getQuest(10301);
        player.processQuestEvent(q.getName(), "enterInstance", null);
        //player.setVar("instance10301", "true", -1);
        return;
      }
      if (!player.getVarB("@25_20_telzone_to_magmeld"))
      {
View Full Code Here


   * Method startTutorialQuest.
   * @param player Player
   */
  public static void startTutorialQuest(Player player)
  {
    Quest q = QuestManager.getQuest(255);
    if (q != null)
    {
      q.newQuestState(player, Quest.CREATED);
    }
  }
View Full Code Here

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Quest q = QuestManager.getQuest(255);
    if (q != null)
    {
      player.processQuestEvent(q.getName(), _bypass, null);
    }
  }
View Full Code Here

   * Method loadTutorial.
   * @param player Player
   */
  private void loadTutorial(Player player)
  {
    Quest q = QuestManager.getQuest(255);
    if (q != null)
    {
      player.processQuestEvent(q.getName(), "UC", null);
    }
  }
View Full Code Here

    }
    else if (event.equalsIgnoreCase("30895-09.htm"))
    {
      st.playSound(SOUND_FINISH);
      st.giveItems(ADENA_ID, 18775);
      Quest q = QuestManager.getQuest(_141_ShadowFoxPart3.class);
      if (q != null)
      {
        q.newQuestState(st.getPlayer(), STARTED);
      }
      st.exitCurrentQuest(false);
    }
    else if (event.equalsIgnoreCase("30912-07.htm"))
    {
View Full Code Here

      st.setCond(2);
      st.playSound(SOUND_MIDDLE);
    }
    else if (event.equalsIgnoreCase("Contract"))
    {
      Quest q1 = QuestManager.getQuest(_184_NikolasCooperationContract.class);
      if (q1 != null)
      {
        st.giveItems(ADENA_ID, 26866);
        QuestState qs1 = q1.newQuestState(player, STARTED);
        q1.notifyEvent("30621-01.htm", qs1, npc);
        st.playSound(SOUND_MIDDLE);
        st.exitCurrentQuest(false);
      }
      return null;
    }
    else if (event.equalsIgnoreCase("Consideration"))
    {
      Quest q2 = QuestManager.getQuest(_185_NikolasCooperationConsideration.class);
      if (q2 != null)
      {
        st.giveItems(ADENA_ID, 18100);
        QuestState qs2 = q2.newQuestState(st.getPlayer(), STARTED);
        q2.notifyEvent("30621-01.htm", qs2, npc);
        st.playSound(SOUND_MIDDLE);
        st.exitCurrentQuest(false);
      }
      return null;
    }
View Full Code Here

   * @return boolean
   */
  @Override
  protected boolean thinkActive()
  {
    final Quest q = QuestManager.getQuest(_024_InhabitantsOfTheForestOfTheDead.class);
    if (q != null)
    {
      for (Player player : World.getAroundPlayers(getActor(), 300, 200))
      {
        QuestState questState = player.getQuestState(_024_InhabitantsOfTheForestOfTheDead.class);
        if ((questState != null) && (questState.getCond() == 3))
        {
          q.notifyEvent("seePlayer", questState, getActor());
        }
      }
    }
    return super.thinkActive();
  }
View Full Code Here

   * @return boolean
   */
  @Override
  protected boolean thinkActive()
  {
    final Quest q = QuestManager.getQuest(_024_InhabitantsOfTheForestOfTheDead.class);
    if (q != null)
    {
      for (Player player : World.getAroundPlayers(getActor(), 300, 200))
      {
        QuestState questState = player.getQuestState(_024_InhabitantsOfTheForestOfTheDead.class);
        if ((questState != null) && (questState.getCond() == 3))
        {
          q.notifyEvent("seePlayer", questState, getActor());
        }
      }
    }
    return super.thinkActive();
  }
View Full Code Here

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Quest quest = QuestManager.getQuest(_questId);
    if (quest == null)
    {
      return;
    }
    QuestState state = player.getQuestState(quest.getClass());
    if (state == null)
    {
      return;
    }
    player.sendPacket(new ExQuestNpcLogList(state));
View Full Code Here

    {
      Player player = actor.getPlayer();
      if (player.getCurrentHpPercents() < 25)
      {
        player.removeListener(_tutorialShowListener);
        Quest q = QuestManager.getQuest(255);
        if (q != null)
        {
          player.processQuestEvent(q.getName(), "CE45", null);
        }
      }
      else if (player.getLevel() > 5)
      {
        player.removeListener(_tutorialShowListener);
View Full Code Here

TOP

Related Classes of lineage2.gameserver.model.quest.Quest$DeSpawnScheduleTimerTask

Copyright © 2018 www.massapicom. 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.