Package l2p.gameserver.model.quest

Examples of l2p.gameserver.model.quest.QuestState


        st.giveItems(ADENA_ID, adena);
        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


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

    {
      htmltext = "32640-10.htm";
    }
    else if(id == CREATED)
    {
      QuestState ImTheOnlyOneYouCan = st.getPlayer().getQuestState("_240_ImTheOnlyOneYouCanTrust");
      if(ImTheOnlyOneYouCan != null && ImTheOnlyOneYouCan.isCompleted() && st.getPlayer().getLevel() >= 81)
      {
        htmltext = "32640-1.htm";
      }
      else
      {
View Full Code Here

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

  @Override
  public String onFirstTalk(L2NpcInstance npc, L2Player player)
  {
    String htmltext = "noquest";
    QuestState st = player.getQuestState(getName());
    if(st == null || st.isCompleted())
    {
      return htmltext;
    }
    int npcId = npc.getNpcId();
    int cond = st.getInt("cond");
    if(npcId == TINSPECTOR)
    {
      if(cond == 2)
      {
        htmltext = "32507-01.htm";
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.defendTheHallofSuffering.remove(refId);
          htmltext = "ai_is_time_attack_reward_q0695_13.htm";
View Full Code Here

          player.sendMessage("Проходить Defend The Hall Of Suffering могут параллельно не более" + Config.DefendTheHallofSuffering + " групп.");
          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, player.getReflectionId());
      mSoI.setStage(1);
    }
View Full Code Here

    int cond = st.getCond();
    if(npcId == Atra)
    {
      if(id == CREATED)
      {
        QuestState qs1 = st.getPlayer().getQuestState(_308_ReedFieldMaintenance.class);
        if(qs1 != null && qs1.isStarted())
        {
          return "32647-17.htm";
        } // нельзя брать оба квеста сразу
        if(st.getPlayer().getLevel() < 82)
        {
View Full Code Here

    int cond = st.getInt("cond");
    if(cond == 0 && st.getQuestItemsCount(SEWING_KIT) == 0)
    {
      if(st.getPlayer().getLevel() >= 60)
      {
        QuestState fwear = st.getPlayer().getQuestState(_037_PleaseMakeMeFormalWear.class);
        if(fwear != null && fwear.getState() == STARTED)
        {
          if(fwear.getCond() == 6)
          {
            htmltext = "head_blacksmith_ferris_q0036_0101.htm";
          }
          else
          {
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.