Examples of newQuestState()


Examples of lineage2.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("start", qs1, npc);
        return null;
      }
    }
    else if (event.equalsIgnoreCase("dusk"))
View Full Code Here

Examples of lineage2.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("start", qs1, npc);
        return null;
      }
    }
    return htmltext;
View Full Code Here

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

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

Examples of net.sf.l2j.gameserver.model.quest.Quest.newQuestState()

                {
                    for (int i=0; i < qlst.length; i++)
                    {
                        if (qlst[i] == q)
                        {
                            qs = q.newQuestState(player);
                            //disabled by mr. becouse quest dialog only show on second click.
                            //if(qs.getState().getName().equalsIgnoreCase("completed"))
                            //{
                            if (!qs.getQuest().notifyTalk(this, qs))
                                return; // no need to show a window
View Full Code Here

Examples of net.sf.l2j.gameserver.model.quest.Quest.newQuestState()

      Quest q = QuestManager.getInstance().getQuest(quest);
      if (q == null)
      {
        return retval;
      }
      qs = q.newQuestState(this);
    }
    if (qs != null)
    {
      if (getLastQuestNpcObject() > 0)
      {
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.