Examples of giveItems()


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

    final QuestState qs = killer.getPlayer().getQuestState(_288_HandleWithCare.class);
    if ((qs != null) && (qs.getCond() == 1))
    {
      if (_weeds < 5)
      {
        qs.giveItems(15497, 1);
        qs.setCond(3);
      }
      else
      {
        qs.giveItems(15498, 1);
View Full Code Here

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

        qs.giveItems(15497, 1);
        qs.setCond(3);
      }
      else
      {
        qs.giveItems(15498, 1);
        qs.setCond(2);
      }
    }
    _weeds = 0;
    if (!getActor().getReflection().isDefault())
View Full Code Here

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

              for (Player member : party.getPartyMembers())
              {
                QuestState qs = member.getQuestState(getClass());
                if ((qs != null) && qs.isStarted())
                {
                  qs.giveItems(DungeonLeaderMark, RewardMarksCount / party.getMemberCount());
                  qs.playSound(SOUND_ITEMGET);
                  qs.getPlayer().sendPacket(new SystemMessage(SystemMessage.THIS_DUNGEON_WILL_EXPIRE_IN_S1_MINUTES).addNumber(5));
                }
              }
            }
View Full Code Here

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

        else if ((step == 1) && (st.getQuestItemsCount(t.item) == 0) && (Ex <= 2))
        {
          if (st.getQuestItemsCount(BLUE_GEM) > 0)
          {
            st.takeItems(BLUE_GEM, st.getQuestItemsCount(BLUE_GEM));
            st.giveItems(t.item, 1);
            st.set("step", "2");
            qs.set("Ex", "3");
            st.startQuestTimer("TimerEx_NewbieHelper", 30000);
            qs.set("ucMemo", "3");
            if (isMage)
View Full Code Here

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

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

              }
            }
            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

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

    {
      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

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

          {
            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

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

      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

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

    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
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.