Package l2p.gameserver.model.quest

Examples of l2p.gameserver.model.quest.QuestState


    {
      if(cond == 0 && st.getQuestItemsCount(DRESS_SHOES_BOX) == 0)
      {
        if(st.getPlayer().getLevel() >= 60)
        {
          QuestState fwear = st.getPlayer().getQuestState(_037_PleaseMakeMeFormalWear.class);
          if(fwear != null && fwear.getCond() == 7)
          {
            htmltext = "30838-0.htm";
          }
          else
          {
View Full Code Here


    }
    if(player.getParty() != null)
    {
      for(L2Player mem : player.getParty().getPartyMembers())
      {
        QuestState qs = mem.getQuestState(questId);
        if(qs != null && (qs.isStarted() || qs.isCompleted()) && mem.getInventory().getItemByItemId(oldBrooch) == null)
        {
          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

      if(st.getPlayer().getLevel() < 76)
      {
        htmltext = "<html>This quest for 76 level characters.</html>";
        st.exitCurrentQuest(true);
      }
      QuestState qs = player.getQuestState(_124_MeetingTheElroki.class);
      if(qs == null || !qs.isCompleted())
      {
        return null;
      }
      if(cond == 0)
      {
View Full Code Here

    }
    writeH(quests.length);
    for(Quest q : quests)
    {
      writeD(q.getQuestIntId());
      QuestState qs = _cha.getQuestState(q.getName());
      writeD(qs == null ? 0 : qs.getInt("cond"));
    }
    writeH(0); //количество элементов типа: ddQd , как-то связано с предметами
  }
View Full Code Here

    {
      if(cond == 0 && st.getQuestItemsCount(MYSTERIOUS_CLOTH) == 0)
      {
        if(st.getPlayer().getLevel() >= 60)
        {
          QuestState fwear = st.getPlayer().getQuestState(_037_PleaseMakeMeFormalWear.class);
          if(fwear != null && fwear.getInt("cond") == 6)
          {
            htmltext = "30088-0.htm";
          }
          else
          {
View Full Code Here

    int npcId = npc.getNpcId();
    int cond = st.getCond();
    L2Player player = st.getPlayer();
    if(npcId == LEKON)
    {
      QuestState qs = player.getQuestState(_10273_GoodDayToFly.class);
      if((qs != null) && (qs.getState() == 2) && (st.getState() == 0) && (player.getLevel() >= 75))
      {
        htmltext = "32557-01.htm";
      }
      else if(cond == 1)
      {
View Full Code Here

      st.giveItems(ADENA, 12 * st.getQuestItemsCount(ORC_AMULET) + 20 * st.getQuestItemsCount(ORC_NECKLACE) + 25 * st.getQuestItemsCount(WEREWOLF_FANG), false);
      if(st.getPlayer().getClassId().getLevel() == 1 && !st.getPlayer().getVarB("p1q2"))
      {
        st.getPlayer().setVar("p1q2", "1");
        st.getPlayer().sendPacket(new ExShowScreenMessage("Acquisition of Soulshot for beginners complete.\n                  Go find the Newbie Guide.", 5000, ScreenMessageAlign.TOP_CENTER, true));
        QuestState qs = st.getPlayer().getQuestState(_255_Tutorial.class);
        if(qs != null && qs.getInt("Ex") != 10)
        {
          st.showQuestionMark(26);
          qs.set("Ex", "10");
          if(st.getPlayer().getClassId().isMage())
          {
            st.playTutorialVoice("tutorial_voice_027");
            st.giveItems(5790, 3000);
          }
View Full Code Here

    int cond = st.getInt("cond");
    if(npcId == Innocentin)
    {
      if(cond == 0)
      {
        QuestState TragedyInVonHellmannForest = st.getPlayer().getQuestState(_022_TragedyInVonHellmannForest.class);
        if(TragedyInVonHellmannForest != null)
        {
          if(TragedyInVonHellmannForest.isCompleted())
          {
            htmltext = "31328-01.htm";
          }
          else
          {
View Full Code Here

        if(player.getLevel() < 79)
        {
          st.exitCurrentQuest(true);
          return "30191-00.htm";
        }
        QuestState qs = player.getQuestState(_192_SevenSignSeriesOfDoubt.class);
        if(qs == null || !qs.isCompleted())
        {
          st.exitCurrentQuest(true);
          return "noquest";
        }
        return "30191-01.htm";
View Full Code Here

      htmltext = "sentry_krpion_q0265_05.htm";
      if(st.getPlayer().getClassId().getLevel() == 1 && !st.getPlayer().getVarB("p1q2"))
      {
        st.getPlayer().setVar("p1q2", "1");
        st.getPlayer().sendPacket(new ExShowScreenMessage("Acquisition of Soulshot for beginners complete.\n                  Go find the Newbie Guide.", 5000, ScreenMessageAlign.TOP_CENTER, true));
        QuestState qs = st.getPlayer().getQuestState(_255_Tutorial.class);
        if(qs != null && qs.getInt("Ex") != 10)
        {
          st.showQuestionMark(26);
          qs.set("Ex", "10");
          if(st.getPlayer().getClassId().isMage())
          {
            st.playTutorialVoice("tutorial_voice_027");
            st.giveItems(5790, 3000);
          }
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.quest.QuestState

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.