Package lineage2.gameserver.model.quest

Examples of lineage2.gameserver.model.quest.QuestState.giveItems()


            st.startQuestTimer("TimerEx_NewbieHelper", 30000);
            qs.set("ucMemo", "3");
            if (isMage)
            {
              st.playTutorialVoice("tutorial_voice_027");
              st.giveItems(SPIRITSHOT_NOVICE, 100);
              htmltext = t.htmlfiles[2];
              if (htmltext.isEmpty())
              {
                htmltext = "<html><body>" + (npc.getTitle().isEmpty() ? "" : npc.getTitle() + " ") + npc.getName() + "<br>I am sorry. I only help warriors. Please go to another Newbie Helper who may assist you.</body></html>";
              }
View Full Code Here


              }
            }
            else
            {
              st.playTutorialVoice("tutorial_voice_026");
              st.giveItems(SOULSHOT_NOVICE, 200);
              htmltext = t.htmlfiles[1];
              if (htmltext.isEmpty())
              {
                htmltext = "<html><body>" + (npc.getTitle().isEmpty() ? "" : npc.getTitle() + " ") + npc.getName() + "<br>I am sorry. I only help mystics. Please go to another Newbie Helper who may assist you.</body></html>";
              }
View Full Code Here

    {
      return null;
    }
    if (Rnd.chance(_chance))
    {
      st.giveItems(Rnd.chance(Urn_Chance) ? Ancient_Ash_Urn : Ancient_Porcelain, 1);
      st.playSound(SOUND_ITEMGET);
    }
    return null;
  }
 
View Full Code Here

          {
            QuestState pst = pmember.getQuestState(_149_PrimalMotherIstina.class);
            if ((pst != null) && (pst.getCond() == 1))
            {
              pst.setCond(2);
              pst.giveItems(_ShilensMark, 1);
              pst.playSound("SOUND_MIDDLE");
            }
          }
        }
      }
View Full Code Here

      return;
    }
    long count = qs.getQuestItemsCount(item);
    if (count < maxcount)
    {
      qs.giveItems(item, 1);
      if (count == (maxcount - 1))
      {
        qs.playSound(SOUND_MIDDLE);
      }
      else
View Full Code Here

    int cond = st.getCond();
    if ((npcId == STONES) && (cond == 17))
    {
      st.playSound(SOUND_MIDDLE);
      st.takeItems(DETECTOR, 1);
      st.giveItems(DETECTOR2, 1);
      st.setCond(18);
      player.sendPacket(new ExShowScreenMessage(NpcString.THE_RADIO_SIGNAL_DETECTOR_IS_RESPONDING_A_SUSPICIOUS_PILE_OF_STONES_CATCHES_YOUR_EYE, 4500, ScreenMessageAlign.TOP_CENTER));
    }
    return "";
  }
View Full Code Here

          {
            QuestState pst = pmember.getQuestState("_181_DevilsStrikeBackAdventOfBalok");
            if ((pst != null) && (pst.getCond() == 1))
            {
              pst.setCond(2);
              pst.giveItems(CON3, 1);
              pst.playSound(SOUND_MIDDLE);
            }
          }
        }
      }
View Full Code Here

      nextNpc.setRunning();
      nextNpc.setOwner(player);
      QuestState st = player.getQuestState("_020_BringUpWithLove");
      if ((st != null) && !st.isCompleted() && Rnd.chance(5) && (st.getQuestItemsCount(7185) == 0))
      {
        st.giveItems(7185, 1);
        st.setCond(2);
      }
      st = player.getQuestState("_655_AGrandPlanForTamingWildBeasts");
      if ((st != null) && !st.isCompleted() && (st.getCond() == 1))
      {
View Full Code Here

      st = player.getQuestState("_655_AGrandPlanForTamingWildBeasts");
      if ((st != null) && !st.isCompleted() && (st.getCond() == 1))
      {
        if (st.getQuestItemsCount(8084) < 10)
        {
          st.giveItems(8084, 1);
        }
      }
    }
    else
    {
View Full Code Here

            QuestState qs = member.getQuestState(getClass());
            if(qs != null && qs.isStarted())
            {
              if(st.getQuestItemsCount(Deadmans_Flesh) < 40)
              {
                qs.giveItems(Deadmans_Flesh, 1);
                qs.playSound(SOUND_ITEMGET);
                if(doneKill && st.getQuestItemsCount(Deadmans_Flesh) == 40)
                {
                  st.setCond(2);
                }
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.