Package lineage2.gameserver.model.quest

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(_topShilensMark, 1);
              pst.playSound("SOUND_MIDDLE");
            }
          }
        }
      }
View Full Code Here


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

      case HelpingS:
        if (npcId == Helping && cond == 16) //Aden Castle
        {
          ItemFunctions.removeItem(st.getPlayer(), HelpingSeed, 1L, true);
          /*NpcInstance mob =*/ st.addSpawn(HelpingTree, 148216, 14856, -1393);
          st.giveItems(Ashes, 1);
          st.playSound("ItemSound.quest_middle");
          st.setCond(17);
        }
        break;
      case Trower:
View Full Code Here

        }
        break;
      case Trower:
        if ((st.getCond() == 10) && (npcId == FlameFlower&& !npc.isDead())
        {
          st.giveItems(EnergyOfFire, 1);
          st.playSound("ItemSound.quest_itemget");
          npc.doDie(player);
        }
        if ((st.getQuestItemsCount(EnergyOfFire) >= 5))
        {
View Full Code Here

      {
        bookTaken = true;
        player.sendPacket(new ExShowScreenMessage(NpcString.WATCH_OUT_YOU_ARE_BEING_ATTACKED, 4500, ScreenMessageAlign.TOP_CENTER));
        htmltext = "2-2.htm";
        st.takeAllItems(book);
        st.giveItems(book, 1, false);
        st.setCond(2);
        st.startQuestTimer("attak", 5000);
        st.startQuestTimer("spawnas", 50);
      }
      else
View Full Code Here

              for (Player member : party.getPartyMembers())
              {
                QuestState qs = member.getQuestState(getClass());
                if ((qs != null) && qs.isStarted())
                {
                  qs.giveItems(FragmentOfTheDungeonLeaderMark, 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

    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

        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

              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

        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

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.