Examples of newQuestState()


Examples of com.l2jfrozen.gameserver.model.quest.Quest.newQuestState()

    if(qs == null && !Config.ALT_DEV_NO_QUESTS){
      q = QuestManager.getInstance().getQuest("255_Tutorial");
    }
   
    if(q != null)
      q.newQuestState(player);
  }

  @Override
  public String getType()
  {
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.quest.Quest.newQuestState()

        // Check for start point
        for (Quest temp : getTemplate().getEventQuests(Quest.QuestEventType.QUEST_START))
        {
          if (temp == q)
          {
            qs = q.newQuestState(player);
            break;
          }
        }
      }
    }
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.quest.Quest.newQuestState()

      if(!Config.ALT_DEV_NO_QUESTS)
        q = QuestManager.getInstance().getQuest(quest);
     
      if(q == null)
        return retval;
      qs = q.newQuestState(this);
    }
    if(qs != null)
    {
      if(getLastQuestNpcObject() > 0)
      {
View Full Code Here

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

    QuestState qs = player.getQuestState(q.getClass());
    if(qs != null)
    {
      qs.exitCurrentQuest(true);
    }
    q.newQuestState(player, Quest.COMPLETED);
    if(player.getRace() == Race.kamael)
    {
      q = QuestManager.getQuest("_236_SeedsOfChaos");
      qs = player.getQuestState(q.getClass());
      if(qs != null)
View Full Code Here

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

      qs = player.getQuestState(q.getClass());
      if(qs != null)
      {
        qs.exitCurrentQuest(true);
      }
      q.newQuestState(player, Quest.COMPLETED);
    }
    else
    {
      q = QuestManager.getQuest("_235_MimirsElixir");
      qs = player.getQuestState(q.getClass());
View Full Code Here

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

      qs = player.getQuestState(q.getClass());
      if(qs != null)
      {
        qs.exitCurrentQuest(true);
      }
      q.newQuestState(player, Quest.COMPLETED);
    }
  }

  public void becomeNoble()
  {
View Full Code Here

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

      Quest q1 = QuestManager.getQuest(_184_NikolasCooperationContract.class);
      if(q1 != null)
      {
        st.giveItems(ADENA_ID, 18100);
        st.addExpAndSp(60000, 3000, true);
        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 l2p.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 l2p.gameserver.model.quest.Quest.newQuestState()

                    // check for start point
                    Quest[] qlst = getTemplate().getEventQuests(QuestEventType.QUEST_START);
                    if (qlst != null && qlst.length > 0) {
                        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

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

  public static void startTutorialQuest(L2Player player)
  {
    Quest q = QuestManager.getQuest(255);
    if(q != null)
    {
      q.newQuestState(player, Quest.CREATED);
    }
  }
}
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.