Package l2p.gameserver.model.quest

Examples of l2p.gameserver.model.quest.QuestState


    {
      if(qs.getInt("cond") == 0)
      {
        qs.setState(STARTED);
      }
      QuestState qs_24 = qs.getPlayer().getQuestState(_024_InhabitantsOfTheForestOfTheDead.class);
      if(qs_24 == null || !qs_24.isCompleted())
      {
        qs.set("cond", "1");
        return "31349-02.htm";
      }
      qs.playSound(SOUND_ACCEPT);
View Full Code Here


        activeChar.sendMessage("Этот квест нельзя отменить.");
        activeChar.sendPacket(new QuestList(activeChar));
        return;
      }
    }
    QuestState qs = activeChar.getQuestState(QuestManager.getQuest(_QuestID).getName());
    if(qs != null && !qs.isCompleted())
    {
      qs.abortQuest();
      activeChar.sendPacket(new SystemMessage(SystemMessage.S1_IS_ABORTED).addString(QuestManager.getQuest(_QuestID).getDescr(activeChar)));
    }
  }
View Full Code Here

    L2Player player = qs.getRandomPartyMember(STARTED, Config.ALT_PARTY_DISTRIBUTION_RANGE);
    if(player == null)
    {
      return null;
    }
    QuestState st = player.getQuestState(qs.getQuest().getName());
    long CURSED_DOLL_COUNT = st.getQuestItemsCount(CURSED_DOLL);
    if(CURSED_DOLL_COUNT < 180 && Rnd.chance(CURSED_DOLL_Chance))
    {
      st.giveItems(CURSED_DOLL, 1);
      if(CURSED_DOLL_COUNT == 179)
      {
        st.playSound(SOUND_MIDDLE);
        st.set("cond", "2");
      }
      else
      {
        st.playSound(SOUND_ITEMGET);
      }
    }
    return null;
  }
View Full Code Here

          htmltext = "fisher_linneaus_q0030_0102.htm";
          st.exitCurrentQuest(true);
        }
        else
        {
          QuestState LinnaeusSpecialBait = st.getPlayer().getQuestState(_053_LinnaeusSpecialBait.class);
          if(LinnaeusSpecialBait != null)
          {
            if(LinnaeusSpecialBait.isCompleted())
            {
              htmltext = "fisher_linneaus_q0030_0101.htm";
            }
            else
            {
View Full Code Here

    {
      htmltext = "32557-0a.htm";
    }
    else if(id == CREATED)
    {
      QuestState qs = st.getPlayer().getQuestState(_10273_GoodDayToFly.class);
      if(qs != null && qs.isCompleted() && st.getPlayer().getLevel() >= 75)
      {
        htmltext = "32557-01.htm";
      }
      else
      {
View Full Code Here

          htmltext = "fisher_lanosco_q0027_0101.htm";
          st.exitCurrentQuest(true);
        }
        else
        {
          QuestState LanoscosSpecialBait = st.getPlayer().getQuestState(_050_LanoscosSpecialBait.class);
          if(LanoscosSpecialBait != null)
          {
            if(LanoscosSpecialBait.isCompleted())
            {
              htmltext = "fisher_lanosco_q0027_0101.htm";
            }
            else
            {
View Full Code Here

      {
        if(party.isLeader(player))
        {
          for(L2Player member : player.getParty().getPartyMembers())
          {
            QuestState qsp = member.getQuestState(this._name);
            if(qsp != null && qsp.getCond() == 2)
            {
              qsp.giveItems(13776 + inst.rewardType, 1);
              qsp.exitCurrentQuest(true);
            }
          }
          player.getReflection().startCollapseTimer(60 * 1000);
          mSoI.breakThroughTheHallOfSuffering.remove(refId);
          htmltext = "ai_is_time_attack_reward_q0695_13.htm";
View Full Code Here

          player.sendMessage("Проходить Break Through The Hall Of Suffering могут параллельно не более" + Config.BreakThroughTheHallOfSufferingCount + " групп.");
          return null;
        }
        for(L2Player member : party.getPartyMembers())
        {
          QuestState qsm = member.getQuestState(this.getName());
          if(qsm == null || qsm.getCond() != 1)
          {
            party.broadcastToPartyMembers(new SystemMessage("У персонажа " + member.getName() + ", не взят квест для входа."));
            return null;
          }
        }
View Full Code Here

        inst.RessTask.cancel(true);
      }
      inst.timer.stop();
      for(L2Player member : player.getParty().getPartyMembers())
      {
        QuestState qsp = member.getQuestState(this._name);
        if(qsp != null && qsp.getCond() == 1)
        {
          qsp.setCond(2);
        }
      }
      addSpawnToInstance(mSoI.npcTepios2, mSoI.Center, 0, refId);
      mSoI.setStage(2);
    }
View Full Code Here

    {
      return null;
    }
    if(player != null)
    {
      QuestState sts = player.getQuestState(st.getQuest().getName());
      if(sts != null && Rnd.chance(DROP_RATE))
      {
        st.giveItems(EVIL, 1);
        st.playSound(SOUND_ITEMGET);
      }
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.