Examples of QuestState


Examples of lineage2.gameserver.model.quest.QuestState

    switch (npcId)
    {
      case WOOD:
        if (cond == 0)
        {
          QuestState qs = player.getQuestState(_198_SevenSignsEmbryo.class);
          if ((player.getLevel() >= 81) && (qs != null) && qs.isCompleted())
          {
            htmltext = "priest_wood_q10292_0.htm";
          }
          else
          {
View Full Code Here

Examples of lineage2.gameserver.model.quest.QuestState

  public String onTalk(NpcInstance npc, QuestState st)
  {
    String htmltext = "noquest";
    int npcId = npc.getNpcId();
    int cond = st.getCond();
    QuestState InSearchOfTheNest = st.getPlayer().getQuestState(_109_InSearchOfTheNest.class);
    if (npcId == KAHMAN)
    {
      if (cond == 0)
      {
        if (st.getPlayer().getLevel() >= 81)
        {
          if ((InSearchOfTheNest != null) && InSearchOfTheNest.isCompleted())
          {
            htmltext = "merc_kahmun_q0146_0101.htm";
          }
          else
          {
View Full Code Here

Examples of lineage2.gameserver.model.quest.QuestState

      for(NpcInstance n : getNpcs())
        n.deleteMe();
      //Movie + quest update
      for(Player p : getPlayers())
      {
        QuestState qs = p.getQuestState(_10286_ReunionWithSirra.class);
        if(qs != null && qs.getCond() == 6)
          qs.setCond(7);
        p.showQuestMovie(ExStartScenePlayer.SCENE_BOSS_FREYA_ENDING_A);
      }
      ThreadPoolManager.getInstance().schedule(new ConclusionMovie(), 16200L); // 16 secs for movie
    }
View Full Code Here

Examples of lineage2.gameserver.model.quest.QuestState

    int cond = st.getCond();
    if (npcId == Asamah)
    {
      if (cond == 0)
      {
        QuestState qs = st.getPlayer().getQuestState(_125_InTheNameOfEvilPart1.class);
        if ((st.getPlayer().getLevel() >= 77) && (qs != null) && qs.isCompleted())
        {
          htmltext = "asamah_q126_1.htm";
        }
        else
        {
View Full Code Here

Examples of lineage2.gameserver.model.quest.QuestState

    {
      switch (st.getState())
      {
        case CREATED:
        {
          QuestState qs = st.getPlayer().getQuestState(_10282_ToTheSeedOfAnnihilation.class);
          if ((st.getPlayer().getLevel() >= 84) && (qs != null) && qs.isCompleted())
          {
            if (st.isNowAvailableByTime())
            {
              htmltext = "klemis_q453_01.htm";
            }
View Full Code Here

Examples of lineage2.gameserver.model.quest.QuestState

    }
    if (player.getParty() != null)
    {
      for (Player mem : player.getParty().getPartyMembers())
      {
        QuestState qs = mem.getQuestState(questId);
        if ((qs != null) && (qs.isStarted() || qs.isCompleted()) && (mem.getInventory().getItemByItemId(oldBrooch) == null) && player.isInRange(mem, 700))
        {
          Functions.addItem(mem, cupId, 1);
        }
      }
    }
    else
    {
      QuestState qs = player.getQuestState(questId);
      if ((qs != null) && (qs.isStarted() || qs.isCompleted()) && (player.getInventory().getItemByItemId(oldBrooch) == null))
      {
        Functions.addItem(player, cupId, 1);
      }
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.quest.QuestState

    int cond = st.getCond();
    if (npcId == Rafforty)
    {
      if (cond == 0)
      {
        QuestState qs = st.getPlayer().getQuestState(_10285_MeetingSirra.class);
        if ((st.getPlayer().getLevel() >= 82) && (qs != null) && qs.isCompleted())
        {
          htmltext = "rafforty_q10286_01.htm";
        }
        else
        {
View Full Code Here

Examples of lineage2.gameserver.model.quest.QuestState

  public String onTalk(NpcInstance npc, QuestState st)
  {
    String htmltext = "noquest";
    int npcId = npc.getNpcId();
    int cond = st.getCond();
    QuestState GoodDayToFly = st.getPlayer().getQuestState(_10273_GoodDayToFly.class);
    if (npcId == Orbyu)
    {
      if (cond == 0)
      {
        if ((st.getPlayer().getLevel() >= 75) && (GoodDayToFly != null) && GoodDayToFly.isCompleted())
        {
          htmltext = "orbyu_q700_1.htm";
        }
        else
        {
View Full Code Here

Examples of lineage2.gameserver.model.quest.QuestState

  }
 
  @Override
  public String onFirstTalk(NpcInstance npc, Player player)
  {
    QuestState qs = player.getQuestState(_184_NikolasCooperationContract.class);
    if ((qs != null) && qs.isCompleted() && (player.getQuestState(getClass()) == null))
    {
      newQuestState(player, STARTED);
    }
    return "";
  }
View Full Code Here

Examples of lineage2.gameserver.model.quest.QuestState

    int cond = st.getCond();
    if (npcId == Rafforty)
    {
      if (cond == 0)
      {
        QuestState qs = st.getPlayer().getQuestState(_10283_RequestOfIceMerchant.class);
        if ((st.getPlayer().getLevel() >= 82) && (qs != null) && qs.isCompleted())
        {
          htmltext = "rafforty_q10284_01.htm";
        }
        else
        {
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.