Examples of newQuestState()


Examples of l2p.gameserver.model.quest.Quest.newQuestState()

      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("magister_xenovia_q0140_09.htm"))
    {
View Full Code Here

Examples of l2p.gameserver.model.quest.Quest.newQuestState()

      if(q == null)
      {
        System.out.println("Quest " + quest + " not found!!!");
        return;
      }
      qs = q.newQuestState(this, Quest.CREATED);
    }
    if(qs == null || qs.isCompleted())
    {
      return;
    }
View Full Code Here

Examples of l2p.gameserver.model.quest.Quest.newQuestState()

    {
      Quest q1 = QuestManager.getQuest(_142_FallenAngelRequestOfDawn.class);
      if(q1 != null)
      {
        st.exitCurrentQuest(false);
        QuestState qs1 = q1.newQuestState(st.getPlayer(), STARTED);
        q1.notifyEvent("warehouse_chief_natools_q0141_01.htm", qs1, npc);
        return null;
      }
    }
    else if(event.equalsIgnoreCase("quest_accept_143"))
View Full Code Here

Examples of l2p.gameserver.model.quest.Quest.newQuestState()

    {
      Quest q1 = QuestManager.getQuest(_143_FallenAngelRequestOfDusk.class);
      if(q1 != null)
      {
        st.exitCurrentQuest(false);
        QuestState qs1 = q1.newQuestState(st.getPlayer(), STARTED);
        q1.notifyEvent("warehouse_chief_natools_q0141_01.htm", qs1, npc);
        return null;
      }
    }
    return htmltext;
View Full Code Here

Examples of lineage2.gameserver.model.quest.Quest.newQuestState()

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

Examples of lineage2.gameserver.model.quest.Quest.newQuestState()

      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

Examples of lineage2.gameserver.model.quest.Quest.newQuestState()

    {
      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;
View Full Code Here

Examples of lineage2.gameserver.model.quest.Quest.newQuestState()

    {
      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

Examples of lineage2.gameserver.model.quest.Quest.newQuestState()

    if ((player.getLevel() >= 82) && (qs == null))
    {
      useItem(player, 15537, 1);
      Functions.addItem(player, 15538, 1);
      final Quest q = QuestManager.getQuest(464);
      final QuestState st = q.newQuestState(player, Quest.CREATED);
      st.setState(Quest.STARTED);
      st.setCond(1);
    }
    else
    {
View Full Code Here

Examples of lineage2.gameserver.model.quest.Quest.newQuestState()

          {
            for (Quest element : qlst)
            {
              if (element == q)
              {
                qs = q.newQuestState(player, Quest.CREATED);
                if (qs.getQuest().notifyTalk(this, qs))
                {
                  return;
                }
                break;
View Full Code Here
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.